/* Saba Private School — colors taken from the logo: royal blue, sun gold, ink. */

@font-face { font-family: 'Noto Naskh'; src: url(/fonts/naskh-arabic-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C, U+061B, U+061F, U+0640; }
@font-face { font-family: 'Noto Naskh'; src: url(/fonts/naskh-arabic-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C, U+061B, U+061F, U+0640; }
@font-face { font-family: 'Noto Naskh'; src: url(/fonts/naskh-latin-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Noto Naskh'; src: url(/fonts/naskh-latin-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --blue: #2F80E4;
  --blue-600: #1B5FB8;
  --blue-800: #0F3B78;
  --blue-900: #0A2550;
  --sky: #EAF3FE;
  --gold: #F5C400;
  --gold-600: #D9A800;
  --gold-50: #FFF8DB;
  --ink: #16202E;
  --text: #2E3A4B;
  --muted: #64748B;
  --line: #E3E8EF;
  --bg: #FFFFFF;
  --bg-tint: #F6F9FD;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 59, 120, .06), 0 8px 24px rgba(15, 59, 120, .08);
  --font: 'Noto Naskh', 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Naskh letters run small for their size, so Arabic pages are scaled up a little. */
html[lang=ar] { font-size: 112.5%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.8; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.5; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ───── Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .6em 1.4em; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10, 37, 80, .18); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: .35em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 16px rgba(245, 196, 0, .35); }
.btn-gold:hover { background: #FFD21F; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { color: var(--blue-600); border-color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--sky); }
.btn-whatsapp { background: #25D366; color: #fff; margin-top: 12px; }
.btn-whatsapp:hover { background: #1EBE5A; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-block; transition: color .15s, transform .15s; }
.link-arrow:hover { color: var(--blue-800); text-decoration: underline; text-underline-offset: 4px; transform: translateX(-3px); }
[dir=ltr] .link-arrow:hover { transform: translateX(3px); }
.link-arrow::after { content: ' ←'; }
[dir=ltr] .link-arrow::after { content: ' →'; }
.link-back { display: inline-block; margin-bottom: 12px; font-weight: 700; text-decoration: none; transition: color .15s; }
.link-back:hover { color: var(--blue-800); text-decoration: underline; text-underline-offset: 4px; }
.link-back::before { content: '→ '; }
[dir=ltr] .link-back::before { content: '← '; }

/* ───── Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); } }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; flex: 0 1 auto; overflow: hidden; }
.brand img { width: 44px; height: auto; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand strong { font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { font-weight: 700; text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--blue-600); font-size: .92rem; }
.lang:hover { background: var(--sky); }
.nav-menu { position: relative; order: 3; }
.nav-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); }
.nav-menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ''; }
.burger::before { position: absolute; top: -6px; }
.burger::after { position: absolute; top: 6px; }
.nav-menu ul { list-style: none; margin: 0; padding: 8px; position: absolute; inset-inline-end: 0; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 210px; }
.nav-menu a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-menu a:hover, .nav-menu a[aria-current=page] { background: var(--sky); color: var(--blue-600); }
.nav-menu a.menu-cta { background: var(--gold); color: var(--ink); text-align: center; margin-top: 6px; }
.nav .btn-gold { display: none; }

.nav-desktop { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-desktop a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-desktop a:hover, .nav-desktop a[aria-current=page] { background: var(--sky); color: var(--blue-600); }
@media (min-width: 1180px) {
  .nav-desktop { display: flex; }
  .nav-menu { display: none; }
  .nav .btn-gold { display: inline-flex; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .brand strong { font-size: .98rem; }
  .brand img { width: 40px; }
}
@media (max-width: 380px) {
  .header-row { gap: 8px; }
  .nav { gap: 6px; }
  .lang { padding: 6px 9px; font-size: .82rem; }
  .nav-menu summary { width: 40px; height: 40px; }
  .brand strong { white-space: normal; overflow: visible; line-height: 1.25; font-size: .95rem; }
}

/* ───── Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--blue-600) 0%, var(--blue-800) 70%, var(--blue-900) 100%); padding: 56px 0 84px; isolation: isolate; }
.hero::after { content: ''; position: absolute; inset: auto 0 -1px 0; height: 48px; background: var(--bg); clip-path: ellipse(70% 100% at 50% 100%); z-index: 2; }

/* Building photo slideshow behind the hero (site.js rotates .is-active) */
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-slide.is-active img { animation: hero-zoom 9s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 37, 80, .5) 0%, rgba(10, 37, 80, .62) 55%, rgba(10, 37, 80, .8) 100%); }
@media (min-width: 860px) {
  .hero-overlay { background: linear-gradient(to left, rgba(10, 37, 80, .9) 0%, rgba(15, 59, 120, .72) 50%, rgba(15, 59, 120, .35) 100%); }
  [dir=ltr] .hero-overlay { background: linear-gradient(to right, rgba(10, 37, 80, .9) 0%, rgba(15, 59, 120, .72) 50%, rgba(15, 59, 120, .35) 100%); }
}
.hero-dots { position: absolute; z-index: 3; bottom: 58px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots span { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.hero-dots span.is-active { width: 24px; background: var(--gold); }

.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; z-index: 1; }
.hero h1 { color: #fff; margin-top: 14px; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.hero .lead { font-size: 1.12rem; color: rgba(255, 255, 255, .92); max-width: 34em; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.pill { display: inline-block; background: rgba(10, 37, 80, .5); color: var(--gold); border: 1px solid rgba(245, 196, 0, .55); padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-ghost { background: rgba(10, 37, 80, .35); }
.hero-media { position: relative; }
.hero-photo { border-radius: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 4px solid rgba(255, 255, 255, .15); }
.hero-emblem { display: grid; place-items: center; }
.hero-emblem img { width: min(300px, 56vw); box-shadow: 0 24px 48px rgba(0, 0, 0, .28); background: #fff; border-radius: 32px; padding: 14px; }
@media (min-width: 860px) {
  .hero { padding: 96px 0 120px; min-height: 560px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

/* ───── Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }
.section-head.row { display: flex; align-items: baseline; justify-content: space-between; text-align: start; max-width: none; gap: 16px; }
.eyebrow { display: inline-block; color: var(--gold-600); font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.eyebrow::before { content: ''; display: inline-block; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; vertical-align: middle; margin-inline-end: 8px; }

.cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

.stage { position: relative; overflow: hidden; border-top: 5px solid var(--blue); }
.stage-basic { border-top-color: var(--gold); }
.stage-sec { border-top-color: var(--blue-800); }
.stage-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--sky); font-size: 1.6rem; margin-bottom: 14px; }
.stage-basic .stage-icon { background: var(--gold-50); }
.stage p { color: var(--muted); margin: 0; }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr .9fr; } }
.vision-card { position: relative; background: linear-gradient(150deg, var(--blue-600), var(--blue-800)); color: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); overflow: hidden; }
.vision-card::before { content: '”'; position: absolute; top: -30px; inset-inline-end: 18px; font-size: 9rem; color: var(--gold); opacity: .35; line-height: 1; font-family: Georgia, serif; }
.vision-card h3 { color: var(--gold); }
.vision-card p { font-size: 1.12rem; margin: 0; position: relative; }
.rounded-img { border-radius: var(--radius); margin-bottom: 20px; width: 100%; }
.prose p { font-size: 1.06rem; }

/* ───── Stats */
.stats { background: var(--gold); padding: 36px 0; }
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 72px; text-align: center; }
.stat { min-width: 140px; }
.stat strong { display: block; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--blue-900); line-height: 1.2; }
.stat span { color: var(--blue-900); font-weight: 600; }

/* ───── Chairman */
.chairman { display: grid; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .chairman { grid-template-columns: 220px 1fr; padding: 44px; } }
.chairman-photo { width: 180px; height: 180px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #fff; border: 6px solid var(--gold-50); box-shadow: 0 0 0 3px var(--gold); display: grid; place-items: center; }
.chairman-photo img { width: 100%; height: 100%; object-fit: cover; }
.chairman-photo .chairman-ph { width: 62%; height: auto; object-fit: contain; }
.chairman blockquote { margin: 8px 0 16px; font-size: 1.08rem; }
.sig { display: flex; flex-direction: column; border-inline-start: 4px solid var(--gold); padding-inline-start: 12px; margin: 0; }
.sig strong { color: var(--ink); font-size: 1.1rem; }
.sig span { color: var(--muted); }

/* ───── Branches */
.branches { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .branches { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .branches { grid-template-columns: repeat(5, 1fr); } }
.branches > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .branches > :last-child:nth-child(odd) { grid-column: auto; } }
.branch { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.branch h3 { margin: 10px 0 4px; }
.branch p { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.branch a { font-weight: 700; text-decoration: none; }
.branch a:hover { text-decoration: underline; text-underline-offset: 4px; }
.branch-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; font-size: 1.15rem; }

/* ───── News & gallery */
.news-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s; }
.news-card:hover { transform: translateY(-3px); }
.news-card img, .news-ph { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-ph { background: var(--sky); display: grid; place-items: center; }
.news-ph img { width: 70px; aspect-ratio: auto; opacity: .5; }
.news-body { padding: 18px 20px 22px; }
.news-body time { color: var(--muted); font-size: .88rem; }
.news-body h3 { margin: 4px 0 0; }
.article-title { margin-top: 6px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.albums { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .albums { grid-template-columns: repeat(4, 1fr); } }
.album { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--sky); text-decoration: none; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album:hover img { transform: scale(1.05); }
.album-label { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(10, 37, 80, .85)); color: #fff; display: flex; flex-direction: column; line-height: 1.4; }
.album-label small { opacity: .85; }
.photos { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .photos { grid-template-columns: repeat(4, 1fr); } }
.photo img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 12px; }

/* ───── Reviews */
.review { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; flex: 1; color: var(--text); white-space: pre-line; }
.review figcaption { display: flex; flex-direction: column; border-inline-start: 3px solid var(--gold); padding-inline-start: 10px; }
.review figcaption strong { color: var(--ink); }
.review figcaption span { color: var(--muted); font-size: .9rem; }
.stars { color: #F5B400; font-size: 1.2rem; letter-spacing: 2px; }
.stars-off { color: #D5DDE8; }
.center { text-align: center; margin-top: 24px; }
/* Star picker: radios in DOM order 5→1, shown 1→5; checking one lights it and every lower star. */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.2rem; line-height: 1; color: #D5DDE8; cursor: pointer; transition: color .15s, transform .15s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #F5B400; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 3px solid var(--blue); border-radius: 6px; }

/* ───── Page head, CTA band, footer */
.page-head { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--blue-600), var(--blue-800)); color: #fff; padding: 48px 0 44px; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { margin: 6px 0 0; color: rgba(255, 255, 255, .85); }

.cta-band { position: relative; overflow: hidden; background: var(--blue-900); color: #fff; padding: 56px 0; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }

.site-footer { background: #08193A; color: rgba(255, 255, 255, .78); padding: 52px 0 0; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #fff; }
.site-footer .muted { color: rgba(255, 255, 255, .6); }
.brand-light { color: #fff; margin-bottom: 12px; }
.brand-light small { color: var(--gold); white-space: normal; }
.brand-light img { background: #fff; border-radius: 12px; padding: 4px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { text-decoration: none; display: inline-block; padding: 2px 0; transition: color .15s, transform .15s; }
.footer-links a:hover { color: var(--gold); transform: translateX(-4px); }
[dir=ltr] .footer-links a:hover { transform: translateX(4px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 18px; padding-bottom: 22px; font-size: .9rem; color: rgba(255, 255, 255, .55); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.site-footer .footer-bottom a { color: rgba(255, 255, 255, .45); text-decoration: none; }
.site-footer .footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.site-footer .contact-list small { color: rgba(255, 255, 255, .55); }
.contact-list a { font-weight: 700; text-decoration: none; transition: color .15s; }
.contact-list a:hover { color: var(--blue-800); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .contact-list a:hover { color: var(--gold); }
.contact-list li:hover .ic { transform: scale(1.08); }
.ic { transition: transform .15s; }
.ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--sky) center / 20px no-repeat; }
.site-footer .ic { background-color: rgba(255, 255, 255, .1); }
.ic-phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232F80E4'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.ic-whatsapp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325D366'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.8s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.3 0 .5l-.3.5-.4.4c-.1.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1.1c.2-.3.4-.2.7-.1l2 1c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E"); }
.ic-facebook { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231877F2'%3E%3Cpath d='M22 12a10 10 0 1 0-11.6 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7A10 10 0 0 0 22 12z'/%3E%3C/svg%3E"); }
.ic-email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232F80E4'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }

/* ───── Forms */
.notice { background: var(--gold-50); border: 1px solid #F3DE85; border-inline-start: 5px solid var(--gold); padding: 16px 18px; border-radius: 14px; margin-bottom: 24px; color: var(--ink); }
.notice-error { background: #FDECEC; border-color: #F5B5B5; border-inline-start-color: #D93636; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 8px; margin: 0 0 22px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 600px) { .form fieldset { padding: 28px 28px 14px; } }
.form legend { font-weight: 700; font-size: 1.15rem; color: var(--ink); padding: 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .95rem; }
.grid { display: grid; gap: 0 18px; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } .field.full, .grid > .repeat { grid-column: 1 / -1; } }
.field { margin-bottom: 16px; min-width: 0; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); font-size: .97rem; }
.req { color: #D93636; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #FBFCFE; border: 1.5px solid #D5DDE8; border-radius: 12px; padding: 11px 14px; min-height: 50px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 22px; background-position: left 10px center; padding-left: 38px; }
[dir=ltr] select { background-position: right 10px center; padding-left: 14px; padding-right: 38px; }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 128, 228, .15); background: #fff; }
input[type=file] { font: inherit; width: 100%; padding: 12px; border: 1.5px dashed #C3CFDF; border-radius: 12px; background: #FBFCFE; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #D5DDE8; border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 600; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--sky); }
.choice input { width: 18px; height: 18px; accent-color: var(--blue); }

.repeat-item { border: 1px dashed #C3CFDF; border-radius: 14px; padding: 16px 16px 2px; margin-bottom: 14px; background: var(--bg-tint); }
.repeat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.repeat > .btn { margin-bottom: 16px; }
.link-btn { background: none; border: 0; color: #D93636; font: inherit; font-weight: 600; cursor: pointer; padding: 4px 8px; }
.grade-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-grid; place-items: center; min-width: 48px; height: 40px; padding: 0 10px; border: 1.5px solid #D5DDE8; border-radius: 10px; background: #fff; font-weight: 600; font-size: .92rem; direction: ltr; }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); }
.skills { padding-inline-start: 26px; margin: 0 0 16px; display: grid; gap: 10px; }
.skills li::marker { font-weight: 700; color: var(--blue-600); }
.branch-pick { border: 2px solid var(--blue) !important; background: var(--sky) !important; }
.branch-pick select { font-size: 1.05rem; font-weight: 700; background-color: #fff; }
.after-branch { transition: opacity .35s ease; scroll-margin-top: 90px; }
.after-branch.is-waiting { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: center; padding-top: 30px; padding-bottom: 30px; }
.thanks-icon { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: linear-gradient(150deg, var(--blue), var(--blue-800)); box-shadow: 0 0 0 8px var(--sky); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cta-band { display: none; } }
