:root {
  --primary: #6d28d9;
  --primary-dark: #5b21b6;
  --primary-light: #ede9fe;
  --accent: #f59e0b;
  --bg: #f6f5fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e7e5ef;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(76, 29, 149, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 120px;
}

.hidden { display: none !important; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 60%, var(--accent) 140%);
  color: #fff;
  padding: 38px 20px 56px;
  text-align: center;
  border-radius: 0 0 32px 32px;
  box-shadow: var(--shadow);
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-badge {
  width: 92px; height: 92px;
  margin: 0 auto 14px;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.hero-badge img { width: 86%; height: 86%; object-fit: contain; }
.hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.hero-meta { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}

/* ---------------- Layout ---------------- */
.container { max-width: 640px; margin: -32px auto 0; padding: 0 16px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card-title { font-size: 17px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }

/* ---------------- Fields ---------------- */
.field { display: block; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.label b { color: var(--danger); }

input[type="text"], input[type="tel"], input[type="number"], textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fbfaff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
textarea { resize: vertical; }

.hint { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.note { font-size: 13px; color: var(--accent); margin-top: 8px; font-weight: 500; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------------- Radio pills ---------------- */
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row + input,
.radio-row + .note + input { margin-top: 12px; }
.radio-pill {
  position: relative; cursor: pointer;
  flex: 1; min-width: 120px;
}
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: block; text-align: center;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-weight: 500; font-size: 15px;
  background: #fbfaff;
  transition: all .15s;
}
.radio-pill input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

/* ---------------- Toggle (participation type) ---------------- */
.toggle { display: flex; gap: 12px; margin-bottom: 4px; }
.toggle-opt { flex: 1; cursor: pointer; }
.toggle-opt input { position: absolute; opacity: 0; }
.toggle-opt span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 18px 10px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-weight: 700; font-size: 16px;
  background: #fbfaff;
  transition: all .15s;
}
.toggle-opt span small { font-weight: 400; font-size: 12px; color: var(--muted); }
.toggle-opt input:checked + span {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.15);
}

.subblock { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }

/* ---------------- Option cards (rooms / dayuse) ---------------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt-card {
  cursor: pointer; position: relative;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  background: #fbfaff;
  text-align: center;
  transition: all .15s;
}
.opt-card input { position: absolute; opacity: 0; }
.opt-card .oc-icon { font-size: 24px; }
.opt-card .oc-title { font-weight: 700; font-size: 15px; margin-top: 6px; }
.opt-card .oc-price {
  margin-top: 8px;
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700; font-size: 14px;
  padding: 4px 12px; border-radius: 999px;
}
.opt-card.selected {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.18);
  transform: translateY(-2px);
}
.opt-card.selected .oc-price { background: var(--primary); color: #fff; }

/* ---------------- Stepper / counters ---------------- */
.counter {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.counter:last-of-type { border-bottom: none; }
.counter-info { display: flex; flex-direction: column; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper input {
  width: 52px; text-align: center; padding: 8px 0;
  border-radius: 10px; font-weight: 700; font-size: 16px;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.step {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  background: #fff; border-radius: 12px;
  font-size: 22px; font-weight: 700; color: var(--primary);
  cursor: pointer; line-height: 1;
  transition: all .12s;
}
.step:hover { background: var(--primary-light); border-color: var(--primary); }
.step:active { transform: scale(0.92); }
.step:disabled { opacity: .35; cursor: not-allowed; background: #fff; border-color: var(--border); }
.step:disabled:hover { background: #fff; border-color: var(--border); }

/* ---------------- Total bar ---------------- */
.total-bar {
  position: fixed; bottom: 0; right: 0; left: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(76, 29, 149, 0.1);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 14px;
  max-width: 672px; margin: 0 auto;
}
.total-info { display: flex; flex-direction: column; flex: 1; }
.total-label { font-size: 12px; color: var(--muted); }
.total-value { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.total-sub { font-size: 12px; color: var(--accent); font-weight: 500; }
.submit-btn {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff; border: none;
  padding: 15px 26px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  border-radius: 14px; cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.3);
  transition: transform .12s, box-shadow .12s;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(109, 40, 217, 0.4); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------------- Error ---------------- */
.form-error {
  background: #fef2f2; color: var(--danger);
  border: 1px solid #fecaca; border-radius: 12px;
  padding: 14px 16px; font-weight: 500; font-size: 14px;
}
.form-error ul { margin: 0; padding-right: 18px; }

/* ---------------- Success overlay ---------------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(31, 41, 55, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 50;
  backdrop-filter: blur(3px);
}
.success-card {
  background: #fff; border-radius: 24px;
  padding: 36px 28px; text-align: center;
  max-width: 380px; width: 100%;
  animation: pop .3s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-icon {
  width: 70px; height: 70px; line-height: 70px;
  margin: 0 auto 18px;
  background: var(--success); color: #fff;
  border-radius: 50%; font-size: 38px; font-weight: 700;
}
.success-card h2 { font-size: 22px; margin-bottom: 10px; }
.success-card p { color: var(--muted); margin-bottom: 8px; }
.success-total { color: var(--text); font-size: 16px; margin: 16px 0 22px; }
.success-total b { color: var(--primary-dark); font-size: 20px; }

.info-banner { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 16px;
               padding: 18px 20px; margin-bottom: 20px; }
.info-banner-title { font-size: 15px; font-weight: 800; color: #92400e; margin-bottom: 14px; }
.info-banner-contacts { display: flex; flex-direction: column; gap: 10px; }
.info-contact { display: flex; justify-content: space-between; align-items: center;
                background: #fff; border: 1px solid #fde68a; border-radius: 12px;
                padding: 12px 16px; text-decoration: none; gap: 12px; cursor: pointer;
                transition: background .15s, box-shadow .15s; }
.info-contact:hover, .info-contact:active { background: #fefce8; box-shadow: 0 2px 8px rgba(146,64,14,.15); }
.info-name  { font-size: 15px; font-weight: 700; color: #1f2937; }
.info-phone { font-size: 14px; font-weight: 700; color: #b45309; letter-spacing: 0.3px;
              display: flex; align-items: center; gap: 5px; }
.phone-icon { font-size: 15px; }

#companions-inputs { display: flex; flex-direction: column; gap: 10px; }
#companions-inputs input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 15px; color: var(--text); background: var(--bg); }
#companions-inputs input:focus { outline: none; border-color: var(--primary); background: #fff; }

@media (max-width: 420px) {
  .hero h1 { font-size: 23px; }
  .total-value { font-size: 19px; }
  .submit-btn { padding: 14px 18px; font-size: 15px; }
}
