/* visit.html and sponsorship.html (23 Nov 2026): the page and its form (features/apply.js). Builds on features/interns.css
   (the same page frame, fields, chips and thank-you card) and cms/forms.css (.req fields). Phone rules are in features/mobile.css. */
.apply .wrap { max-width: 880px; }
.apply .kicker { display: block; margin-top: 4px; }
.apply h1 { margin-top: 8px; }
.apply .lede { max-width: 62ch; }

/* three short facts under the intro, each with a small mark */
.apply .in-facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: start; }
.apply .in-facts li > svg { grid-row: span 2; width: 26px; height: 26px; color: var(--teal); margin-top: 2px; }
.apply .in-facts b { margin-bottom: 0; }

/* the form: numbered groups */
.ap-form { gap: 0; padding: 0; overflow: hidden; }
.ap-group { padding: clamp(20px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.ap-gh { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: clamp(19px, 2vw, 22px); font-weight: 800; color: var(--ink); }
html[data-lang="en"] .ap-gh { font-style: normal; text-transform: none; letter-spacing: 0; }
.ap-gh b { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #00243A; font: 900 14px/1 "Lato", sans-serif; }
html[data-theme="light"] .ap-gh b { color: #FFFFFF; }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.ap-grid > * { grid-column: 1 / -1; }
.ap-grid > .half { grid-column: auto; }
.ap-f[hidden] { display: none !important; }
.ap-form .in-chip span { min-height: 44px; }
.ap-form .in-err { display: block; }
.ap-form .in-f.bad select, .ap-form .in-f.bad .ap-file { border-color: #ff9d8a; }

/* selects look like the site's inputs */
.req select { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--f-ink); background: rgba(255,255,255,.04); border: 1px solid var(--f-line); border-radius: 10px; padding: 12px 14px; min-height: 50px; }
.req select:focus { outline: 2px solid var(--f-accent); outline-offset: 1px; border-color: transparent; }
.req select option { background: var(--deep, #001A2B); color: var(--ink, #fff); }
.req input[type="number"] { direction: ltr; text-align: start; }
html[dir="rtl"] .req input[type="number"] { text-align: right; }

/* the PDF picker */
.ap-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; background: rgba(255,255,255,.02); }
.ap-file.has { border-style: solid; border-color: var(--teal); }
.ap-file-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.req .ap-file-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 10px; border: 1px solid var(--teal); color: var(--ink); font-family: var(--display); font-size: 15px; font-weight: 700; cursor: pointer; }
.ap-file-btn svg { width: 20px; height: 20px; color: var(--teal); }
.ap-file-btn:hover { background: rgba(74, 213, 253, .08); }
.ap-file-in:focus-visible + .ap-file-btn { outline: 2px solid var(--teal); outline-offset: 2px; }
.ap-file-name { color: var(--ink); font-size: 14.5px; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.ap-file-x { min-height: 44px; padding: 6px 12px; background: none; border: 0; color: var(--dim); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ap-file-x:hover { color: var(--ink); }

/* the foot: consent line (cms/forms.js), send button, status */
.ap-form > .req-consent { margin: 0; padding: 20px clamp(20px, 3vw, 34px) 0; }
.ap-form > .in-fail { margin: 18px clamp(20px, 3vw, 34px) 0; }
.ap-form > .in-fail a { color: var(--teal); }
.ap-form > .req-foot { padding: 16px clamp(20px, 3vw, 34px) clamp(20px, 3vw, 30px); }
.ap-form .req-foot .btn { min-height: 50px; }
.ap-busy { color: var(--soft); font-size: 14px; }
.ap-busy:empty { display: none; }
html[data-theme="light"] .ap-form .in-err { color: #B3392F; }
html[data-theme="light"] .ap-file { background: #FFFFFF; }
html[data-theme="light"] .req select { background: #FFFFFF; }
html[data-theme="light"] .req select option { background: #FFFFFF; color: #00243A; }

/* the other way in (the link between the two pages and to the home page's consultation) */
.ap-alt { margin: 28px 0 0; color: var(--dim); font-size: 15px; line-height: 1.7; }
.ap-alt a { color: var(--teal); text-underline-offset: 3px; }
