:root {
  --sand: #FFFAF0;
  --sand-deep: #FFE9CC;
  --ink: #33293f;
  --ink-soft: #6b5c68;
  --nile: #17b3a3;
  --nile-deep: #0f8577;
  --gold: #ff8a3d;
  --gold-bright: #ffc947;
  --error: #e65a46;
  --line: rgba(51, 41, 63, 0.14);
  --radius: 22px;
  --shadow: 0 16px 34px rgba(255, 110, 60, 0.20);
  --font-display: "Baloo Bhaijaan 2", "Cairo", sans-serif;
  --font-body: "Cairo", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ---------- Hero — نفس روح الغروب الدافئة المستخدمة في فورم مدينة ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #ff8a3d 0%, #ff5f6d 48%, #17b3a3 100%);
  color: #fff8ea;
  border-radius: 0 0 32px 32px;
  padding: 44px 28px 40px;
  margin: 0 -20px 28px;
  text-align: center;
  overflow: hidden;
}

.hero__logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6), 0 10px 24px rgba(0, 0, 0, 0.18);
  margin: 0 auto 16px;
  display: block;
  position: relative;
}

.hero__eyebrow {
  position: relative;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #fff3da;
  margin: 0 0 10px;
}

.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px;
}

.hero__subtitle {
  position: relative;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: #fff6ea;
  margin: 0;
}

/* ---------- Card / form ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 24px 24px;
}

.section {
  border: none;
  border-bottom: 2px dotted var(--line);
  padding: 22px 0;
  margin: 0;
}

.section:last-of-type { border-bottom: none; }

.section__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--nile-deep);
  padding: 0;
  margin-bottom: 16px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field:last-child { margin-bottom: 0; }

.field__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--nile-deep);
}

.field__label em {
  color: var(--error);
  font-style: normal;
  margin-inline-start: 2px;
}

.field__hint {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--sand);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

input:invalid:not(:placeholder-shown) { border-color: var(--error); }

select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b5c68' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; }

.terms-box {
  background: var(--sand-deep);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  white-space: pre-line;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.checkbox input {
  margin-top: 3px;
  width: 19px;
  height: 19px;
  accent-color: var(--nile);
  flex-shrink: 0;
}

.checkbox em { color: var(--error); font-style: normal; }

/* ---------- Payment ---------- */
.section--payment { }

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: var(--sand-deep);
  border: 2px dashed var(--gold);
  border-radius: 16px;
  padding: 16px 18px;
}

.price-row span { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.price-row strong { font-size: 28px; color: var(--nile-deep); font-family: var(--font-display); }

.price-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 10px 2px 0;
}

.error {
  background: #fdeeea;
  color: var(--error);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  margin: 18px 0 0;
}

/* ---------- Submit ---------- */
.submit-btn {
  width: 100%;
  margin-top: 22px;
  padding: 17px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #4a2a0a;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255, 138, 61, 0.4);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255, 138, 61, 0.48); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .hero__title { font-size: 30px; }
  .card { padding: 4px 16px 18px; }
  .section { padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .submit-btn { transition: none; }
}
