:root {
  --green-900: #14532d;
  --green-700: #2f855a;
  --green-600: #38a169;
  --green-100: #eafaf1;
  --orange-500: #f6ad55;
  --orange-600: #ed8936;
  --cream: #fffaf0;
  --ink: #22302a;
  --muted: #5b6b62;
  --border: #dfe9e2;
  --danger: #e53e3e;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(20, 83, 45, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Tahoma", "Segoe UI", "Cairo", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  direction: rtl;
}

a { color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 22px;
  color: var(--green-900);
  text-decoration: none;
}

.brand .logo-emoji {
  font-size: 28px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
  color: var(--muted);
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--green-700); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}

.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 133, 90, 0.3);
}
.btn-primary:hover { background: var(--green-900); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: #fff;
  color: var(--green-700);
  border: 2px solid var(--green-700);
}
.btn-secondary:hover { background: var(--green-100); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  background: radial-gradient(circle at 85% -10%, #d8f3e1 0%, transparent 55%),
              radial-gradient(circle at 10% 110%, #fdebd3 0%, transparent 50%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.35;
  margin: 0 0 16px;
  color: var(--green-900);
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  font-size: 90px;
  border: 1px solid var(--border);
}

.hero-art .sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}

/* How it works */
.section { padding: 56px 0; }
.section-title {
  text-align: center;
  font-size: 28px;
  color: var(--green-900);
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.step-card .num {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: bold;
  margin: 0 auto 14px;
}

.step-card h3 { margin: 0 0 8px; font-size: 18px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* Box preview cards on landing */
.boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.box-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.box-card .emoji { font-size: 46px; margin-bottom: 10px; }
.box-card h3 { margin: 0 0 6px; color: var(--green-900); }
.box-card .capacity { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.box-card .price { font-size: 26px; font-weight: bold; color: var(--orange-600); margin-bottom: 4px; }
.box-card .price small { font-size: 14px; color: var(--muted); font-weight: normal; }

footer.site-footer {
  background: var(--green-900);
  color: #d9ead9;
  padding: 30px 0;
  margin-top: 30px;
  font-size: 14px;
  text-align: center;
}

/* Form page */
.form-wrap {
  max-width: 720px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.progress-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.progress-step {
  flex: 1;
  text-align: center;
}

.progress-step .dot {
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--muted);
  font-weight: bold;
  margin: 0 auto 6px;
  transition: all .2s ease;
}

.progress-step.active .dot,
.progress-step.done .dot {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.progress-step .label { font-size: 13px; color: var(--muted); }
.progress-step.active .label, .progress-step.done .label { color: var(--green-900); font-weight: bold; }

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: -22px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.card h2 { margin-top: 0; color: var(--green-900); font-size: 22px; }
.card p.hint { color: var(--muted); font-size: 14px; margin-top: -6px; margin-bottom: 24px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 14.5px;
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--ink);
}

.field label .req { color: var(--danger); }

.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.15);
}

.field .error-msg {
  color: var(--danger);
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }

.section-heading {
  font-size: 16px;
  font-weight: bold;
  color: var(--green-700);
  margin: 22px 0 4px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}

/* Box selection */
.box-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 10px 0 24px;
}

.box-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}

.box-option:hover { border-color: var(--green-600); }

.box-option.selected {
  border-color: var(--green-700);
  background: var(--green-100);
}

.box-option input[type="radio"] {
  position: absolute;
  top: 12px;
  left: 12px;
}

.box-option .emoji { font-size: 38px; }
.box-option h4 { margin: 8px 0 4px; color: var(--green-900); }
.box-option .capacity { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.box-option .price { font-size: 22px; font-weight: bold; color: var(--orange-600); }
.box-option .price small { font-size: 12px; color: var(--muted); font-weight: normal; }

.summary-box {
  background: var(--green-100);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  color: var(--green-900);
  margin-top: 10px;
}

/* Confirmation */
.confirm-wrap {
  text-align: center;
  padding: 30px 10px;
}
.confirm-wrap .big-emoji { font-size: 64px; margin-bottom: 14px; }
.confirm-wrap h2 { color: var(--green-900); }
.confirm-wrap .ref { font-size: 15px; color: var(--muted); margin-top: 10px; }
.confirm-wrap .ref b { color: var(--green-700); }

.top-alert {
  background: #fdecea;
  border: 1px solid #f5b5ae;
  color: #8a2b23;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  display: none;
}
.top-alert.show { display: block; }

/* Admin page */
.admin-wrap {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.admin-login {
  max-width: 420px;
  margin: 80px auto;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 14px;
}

table.admin-table th, table.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}

table.admin-table th {
  background: var(--green-100);
  color: var(--green-900);
}

table.admin-table tbody tr:hover { background: #fafdfb; }

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12.5px;
  font-weight: bold;
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .steps-grid, .boxes-grid, .box-options { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
