/*
 * Mindset Growth Hub: Booking page (Arabic, RTL).
 * Every <style> block of tpl-booking in final.html, in its original order.
 */

:root {
  --primary: #3A66AE; --primary-dark: #2B4F8C; --navy: #14244B; --navy-deep: #0E1A3A;
  --amber: #F6AB1C; --amber-hover: #FFBB33; --sky: #BCD6EC; --sky-soft: #E4EFF9;
  --bg: #F4F7FC; --surface: #fff; --text: #14244B; --muted: #55627F; --line: #DDE6F2; --field: #FBFCFE;
  --r: 18px; --shadow: 0 14px 36px -18px rgba(20,36,75,.25); --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Tajawal, "Segoe UI", Tahoma, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, 1010px); margin-inline: auto; }
.ico { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; text-align: center; padding: 48px 0 120px;
  background:
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(120deg, #2B4F8C 0%, #1B3366 38%, #14244B 70%, #0E1A3A 100%); overflow: hidden; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; color: var(--bg); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 700; font-size: .88rem; }
.back:hover { color: var(--amber-hover); }
.back .ico { width: 15px; height: 15px; }
.tag { display: table; margin: 18px auto 0; padding: 4px 14px; border-radius: 999px; background: rgba(246,171,28,.14); border: 1px solid rgba(246,171,28,.55); color: var(--amber); font-weight: 700; font-size: .85rem; }
.hero h1 { margin-top: 16px; font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; line-height: 1.35; }
.hero p { margin: 18px auto 0; max-width: 40em; color: #DCE6F6; font-size: clamp(.98rem, 1.4vw, 1.08rem); line-height: 1.8; }

/* ---------- Layout ---------- */
.main { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; padding-bottom: 92px; }

/* ---------- Form card ---------- */
.form-card { background: var(--surface); border: 1px solid #E6ECF5; border-radius: var(--r); box-shadow: var(--shadow); padding: 30px 34px 32px; }
.q { font-weight: 700; font-size: .95rem; }
.tabs { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #F1F5FB; border: 1px solid var(--line); border-radius: 12px; }
.tabs button { min-height: 44px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 500; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tabs button:hover { color: var(--navy); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--primary-dark); font-weight: 700; box-shadow: 0 4px 12px -6px rgba(20,36,75,.3); }
.fields { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.f { display: flex; flex-direction: column; gap: 8px; }
.f--full { grid-column: 1 / -1; }
.f[hidden] { display: none; }
.f label { font-weight: 700; font-size: .9rem; }
.f label small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.f input, .f select, .f textarea { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; font-size: .95rem; }
.f textarea { min-height: 112px; padding: 14px 16px; resize: vertical; line-height: 1.7; }
.f input::placeholder, .f textarea::placeholder { color: #9AA6BD; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(58,102,174,.12); }
.f input[dir="ltr"] { text-align: right; }
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; padding-left: 40px; cursor: pointer; }
.sel .chev { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--navy); pointer-events: none; }
.f.invalid input, .f.invalid select, .f.invalid textarea { border-color: #C2410C; background: #FFF8F5; }
.err { color: #B4360A; font-size: .8rem; display: none; }
.f.invalid .err { display: block; }
.consent { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .88rem; cursor: pointer; }
.consent input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }
.consent.invalid { border-color: #C2410C; background: #FFF8F5; }
.actions { margin-top: 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-send { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 10px 22px -12px rgba(20,36,75,.8); transition: background .2s, transform .2s; }
.btn-send:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-send .ico { color: var(--amber); }
.note { flex: 1 1 220px; color: var(--muted); font-size: .85rem; }
.done { text-align: center; padding: 34px 10px 10px; }
.done[hidden] { display: none; }
.done .badge { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); color: var(--primary); }
.done .badge .ico { width: 30px; height: 30px; }
.done h2 { font-size: 1.35rem; font-weight: 800; }
.done p { margin-top: 8px; color: var(--muted); }
.done button { margin-top: 20px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Info column ---------- */
.side { display: grid; gap: 14px; }
.info { display: flex; align-items: flex-start; gap: 16px; background: var(--surface); border: 1px solid #E6ECF5; border-radius: 14px; padding: 18px 18px 18px 22px; box-shadow: 0 6px 18px -14px rgba(20,36,75,.3); }
.info .ib { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(140deg, var(--primary), var(--navy)); color: var(--amber); box-shadow: 0 8px 16px -10px rgba(20,36,75,.8); }
.info .ib .ico { width: 18px; height: 18px; }
.info h3 { font-size: 1rem; font-weight: 800; }
.info p { margin-top: 2px; color: var(--muted); font-size: .9rem; }
.copy { margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--primary-dark); font-weight: 700; font-size: .8rem; cursor: pointer; }
.copy .ico { width: 13px; height: 13px; }
.copy:hover { color: var(--primary); }

.map { position: relative; height: 246px; border-radius: 14px; overflow: hidden; border: 1px solid #E6ECF5; background: #EEF2F8; }
.map svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin-label { position: absolute; left: 47%; top: 26%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.pin-label::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--navy); transform: translateX(-50%) rotate(45deg); }
.open-map { position: absolute; right: 12px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; background: #fff; color: var(--navy); font-weight: 700; font-size: .86rem; box-shadow: 0 6px 16px -8px rgba(20,36,75,.35); }
.open-map:hover { color: var(--primary); }
.open-map .ico { width: 15px; height: 15px; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; color: #D5E0F3; border-top: 3px solid var(--amber);
  background: linear-gradient(120deg, #1B3366 0%, #14244B 55%, #0E1A3A 100%); font-size: .9rem; }
.foot-mark { position: absolute; top: 10px; left: -40px; width: 380px; opacity: .06; pointer-events: none; filter: brightness(0) invert(1); }
.foot-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 36px; padding: 44px 0 30px; }
.foot-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 7px 12px; }
.foot-logo img { height: 40px; width: auto; display: block; }
.foot-about { margin-top: 16px; line-height: 1.9; max-width: 25em; }
.social { margin-top: 18px; display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(246,171,28,.6); display: grid; place-items: center; color: var(--amber); transition: background .2s, color .2s; }
.social a:hover { background: var(--amber); color: var(--navy); }
.social .ico { width: 16px; height: 16px; }
.foot h3 { display: inline-block; color: var(--amber); font-size: 1.05rem; font-weight: 800; padding-left: 10px; border-left: 3px solid var(--amber); margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-links a { display: inline-flex; align-items: flex-start; gap: 6px; line-height: 1.6; }
.foot-links a::before { content: "‹"; color: var(--amber); font-weight: 700; }
.foot-links a:hover { color: #fff; }
.foot-contact li { display: flex; align-items: center; gap: 8px; }
.foot-contact .ico { width: 15px; height: 15px; color: var(--amber); }
.foot-contact a:hover { color: #fff; }
.foot-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #B9C6DE; }
.foot-bottom nav { display: flex; gap: 22px; }
.foot-bottom a:hover { color: #fff; }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; left: 20px; bottom: 20px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; border: 2px solid var(--amber); box-shadow: 0 12px 26px -12px rgba(0,0,0,.6); transition: transform .2s; }
.wa:hover { transform: scale(1.06); }
.wa .ico { width: 26px; height: 26px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main { grid-template-columns: 1fr; margin-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 36px 0 96px; }
  .form-card { padding: 22px 18px 24px; }
  .fields { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn-send { justify-content: center; }
  .consent { border-radius: 14px; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { justify-content: center; text-align: center; padding-bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

.sf-bottom{padding-left:72px}@media(max-width:560px){.sf-bottom{padding-left:0;padding-bottom:70px}}

/* Page header — same look as the courses page header */
.xh { background: #EEF6FE; position: relative; overflow: hidden; font-family: Tajawal, "Segoe UI", Tahoma, sans-serif; }
.xh::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(to bottom, rgba(244,247,252,0), #F4F7FC); pointer-events: none; }
.xh-photo { position: absolute; left: 0; top: 0; width: min(48vw, 640px); aspect-ratio: 520 / 244; z-index: 0; }
.xh-photo img { width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 12%), linear-gradient(to top, transparent 0, #000 18%); -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to left, transparent 0, #000 12%), linear-gradient(to top, transparent 0, #000 18%); mask-composite: intersect; }
.xh-in { width: min(100% - 40px, 1200px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: 290px; padding: 34px 0 76px; position: relative; z-index: 1; text-align: right; }
.xh-crumbs { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: #55627F; margin: 0 0 14px; }
.xh-crumbs a { color: inherit; text-decoration: none; }
.xh-crumbs a:hover { color: #3A66AE; }
.xh-crumbs [aria-current] { color: #14244B; font-weight: 500; }
.xh h1 { margin: 0; max-width: none; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.3; letter-spacing: 0; color: #14244B; }
.xh p { margin: 14px 0 0; max-width: 34em; font-size: clamp(1rem, 1.5vw, 1.2rem); color: #3B4A6B; line-height: 1.9; }
@media (max-width: 860px) {
  .xh-in { grid-template-columns: 1fr; padding: 0 0 64px; min-height: 0; }
  .xh-photo { position: relative; width: 100%; }
  .xh-photo img { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 25%); mask-image: linear-gradient(to top, transparent 0, #000 25%); }
}

/* "Custom program / other" field (opens under the course list). */
.f-other.f-in { animation: otherIn .3s ease both; }
@keyframes otherIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .f-other.f-in { animation: none; } }
