/* Internship application page.
   Layout copied from the /socials page of innovationhub.uwc.ac.za (TTO inner-page design):
   blue breadcrumb strip, gold bar above headings, blue footer. */
:root {
  --uwc-blue: #0a1a5c;
  --uwc-gold: #bd9a4f;
  --uwc-gold-dark: #8c6e2e;
  --uwc-red: #8b1538;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --line: rgba(10, 26, 92, 0.18);
  --tint: #f4f6fb;
  --ok: #1e6b45;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { font-size: 15px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  min-width: 320px;
}
img { max-width: 100%; }
a { color: var(--uwc-blue); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--uwc-gold); color: #fff; padding: 10px 16px; font-weight: 600; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* --- Blue breadcrumb strip --- */
.nav-strip { background: var(--uwc-blue); min-height: 56px; display: flex; align-items: center; }
.nav-strip-content { max-width: 1140px; margin: 0 auto; padding: 8px 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.nav-strip-left { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-family: 'Poppins', sans-serif; font-size: 0.96rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); }
.nav-strip-left a { display: flex; align-items: center; color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.nav-strip-left a:hover { color: var(--uwc-gold); }
.nav-strip-home-icon { height: 15px; width: auto; filter: brightness(0) invert(1); }
.nav-strip-sep { color: rgba(255, 255, 255, 0.5); margin: 0 4px; }
.nav-strip-contact-btn { display: inline-block; flex: none; padding: 6px 20px; background: var(--uwc-gold); color: #ffffff; font-family: 'Poppins', sans-serif; font-size: 0.75rem; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px; transition: background 0.2s ease; }
.nav-strip-contact-btn:hover { background: #a8873f; color: #fff; }

/* --- Content area --- */
.page-main { max-width: 1140px; margin: 0 auto; padding: 2rem 15px 3rem; }

.section-header { margin-bottom: 1.25rem; position: relative; padding-top: 12px; }
.section-header::before { content: ''; position: absolute; left: 0; top: 0; width: 82px; height: 4px; background: var(--uwc-gold); border-radius: 2px; }
.kicker { font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--uwc-gold-dark); }
h1 { font-family: 'Poppins', sans-serif; font-size: 1.75rem; font-weight: 600; color: var(--uwc-blue); line-height: 1.25; }
h2 { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--uwc-blue); position: relative; padding-top: 10px; margin-bottom: 0.9rem; line-height: 1.3; }
h2::before { content: ''; position: absolute; left: 0; top: 0; width: 54px; height: 3px; background: var(--uwc-gold); border-radius: 2px; }
h3 { font-family: 'Poppins', sans-serif; font-size: 0.98rem; font-weight: 700; color: var(--uwc-blue); line-height: 1.35; margin-bottom: 4px; }

.intro { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin: 0 0 1.5rem; max-width: 900px; }
.block { margin-bottom: 2.25rem; }
.block p, .block li { color: var(--text-secondary); }
.block p { margin-bottom: 0.8rem; }
.block ul { margin: 0 0 0.8rem; padding-left: 1.3rem; }
.block li { margin-bottom: 0.35rem; }
.columns { display: grid; grid-template-columns: 1fr; gap: 0 3rem; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 2.25rem; }
.facts div { background: #ffffff; border: 1px solid var(--line); border-bottom: 3px solid var(--uwc-gold); padding: 10px 14px; }
.facts dt { font-family: 'Poppins', sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--uwc-gold-dark); font-weight: 600; }
.facts dd { margin-top: 2px; color: var(--uwc-blue); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.86rem; line-height: 1.4; }

/* --- Advert page: reads like the Word letter --- */
.sheet { max-width: 900px; margin: 0 auto; background: #ffffff; border: 1px solid var(--line); border-top: 4px solid var(--uwc-blue); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07); padding: 18px 20px 26px; }
.sheet__logo { text-align: center; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.sheet__logo img { width: 100%; max-width: 440px; height: auto; }
.sheet__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.sheet h1 { font-size: 1.45rem; font-weight: 700; flex: 1 1 320px; }
.sheet h2 { font-size: 1.15rem; font-weight: 700; padding-top: 0; margin: 1.8rem 0 0.6rem; }
.sheet h2::before { display: none; }
.sheet h3 { font-size: 1rem; margin: 1.1rem 0 0.4rem; }
.sheet p, .sheet li, .sheet td { color: var(--text-secondary); }
.sheet p { margin-bottom: 0.8rem; text-align: justify; }
.sheet p.lead { font-weight: 600; color: var(--text-primary); text-align: left; }
.sheet ul { margin: 0 0 0.6rem; padding-left: 1.4rem; }
.sheet li { margin-bottom: 0.3rem; }
.sheet ul ul { margin-top: 0.35rem; list-style: circle; }

.details { border-collapse: collapse; margin: 0 0 1.4rem; width: 100%; max-width: 640px; }
.details th, .details td { text-align: left; vertical-align: top; padding: 7px 0; font-size: 0.95rem; border-bottom: 1px solid #eceef4; }
.details th { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--text-primary); width: 11rem; padding-right: 16px; white-space: nowrap; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 1.8rem 0 0; padding: 18px; background: var(--tint); border-left: 4px solid var(--uwc-gold); }
.cta p { margin: 0 !important; font-size: 0.95rem; text-align: left !important; }
.cta--top { margin: 0; padding: 0; background: none; border: 0; flex: none; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cta-closed { margin-bottom: 1.4rem; }

.sheet__foot { margin-top: 2rem; padding-top: 1rem; border-top: 2px solid var(--uwc-blue); text-align: center; }
.sheet__foot p { text-align: center; font-size: 0.8rem; margin-bottom: 2px; color: var(--text-primary); }
.sheet__foot .sheet__tag { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 1rem; color: var(--uwc-gold-dark); margin-bottom: 8px; }

.page-main--narrow { max-width: 900px; }

/* --- Form --- */
.apply { border: 1px solid var(--line); border-top: 4px solid var(--uwc-blue); padding: 22px 18px 26px; scroll-margin-top: 12px; margin-bottom: 0; }
.hint { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; }
.req { color: var(--uwc-red); font-weight: 600; }

.grid { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
.field { margin: 0 0 18px; border: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; font-size: 0.95rem; }
.help, .count { font-size: 0.86rem; margin: 0 0 6px !important; color: var(--text-secondary); }
.count { margin: 4px 0 0 !important; text-align: right; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* stops phones zooming into the field */
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid #8f96ab;
  border-radius: 4px;
  padding: 11px 12px;
  min-height: 46px;
}
textarea { resize: vertical; min-height: 190px; line-height: 1.6; }
input[type="file"] { width: 100%; font: inherit; font-size: 0.9rem; color: var(--text-secondary); border: 1px dashed #8f96ab; border-radius: 4px; padding: 9px; background: var(--tint); min-height: 46px; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .choice:focus-within { outline: 3px solid var(--uwc-gold); outline-offset: 2px; }
input.bad, textarea.bad { border-color: var(--uwc-red); box-shadow: 0 0 0 1px var(--uwc-red); }

.choices { display: grid; grid-template-columns: 1fr; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #8f96ab; padding: 12px 14px; cursor: pointer; margin: 0; font-weight: 400; }
.choice input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--uwc-blue); flex: none; }
.choice strong { display: block; color: var(--uwc-blue); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.92rem; }
.choice span { display: block; font-size: 0.86rem; color: var(--text-secondary); }
.choice.is-on { border-color: var(--uwc-blue); background: var(--tint); box-shadow: inset 0 -3px 0 var(--uwc-gold); }

.doc { border: 1px solid var(--line); padding: 12px 14px 14px; }
.doc legend { padding: 0 6px; margin-bottom: 0; }
.doc__row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.doc__row label { font-weight: 500; font-size: 0.86rem; color: var(--text-secondary); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--tint); padding: 14px; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--uwc-blue); flex: none; }
.consent label { margin: 0; font-weight: 400; }

.actions { margin: 6px 0 16px; }
.btn { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; color: #ffffff; background: var(--uwc-blue); border: 0; border-bottom: 3px solid var(--uwc-gold); border-radius: 4px; padding: 14px 30px; min-height: 50px; width: 100%; cursor: pointer; transition: background 0.2s ease; }
.btn:hover { background: #142a80; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.progress { margin-top: 14px; }
.progress__bar { height: 10px; background: #dfe3ee; border-radius: 5px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--uwc-gold); transition: width 0.25s ease; }
.progress p { margin: 8px 0 0 !important; font-size: 0.92rem; color: var(--text-primary) !important; }

.errors { border: 1px solid var(--uwc-red); border-left: 5px solid var(--uwc-red); background: #fbf1f3; color: #5e0e26; padding: 12px 16px; margin-bottom: 18px; }
.errors p { margin: 0 0 6px !important; font-weight: 600; color: #5e0e26 !important; }
.errors ul { margin: 0 !important; padding-left: 1.3rem; }
.errors li { color: #5e0e26 !important; }

.notice { border: 1px solid var(--line); border-left: 5px solid var(--uwc-blue); background: var(--tint); padding: 16px 18px; margin-bottom: 8px; }
.notice--ok { border-left-color: var(--ok); }
.notice--ok h3 { color: var(--ok); }
.notice p:last-child { margin-bottom: 0; }

/* --- TTO-style footer --- */
.footer { background: var(--uwc-blue); color: #fff; padding: 3rem 15px 40px; margin-top: 1rem; }
.footer-content { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 3rem; padding-bottom: 2rem; align-items: start; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 10px; }
.footer-links a { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--uwc-gold); }
.footer-info { justify-self: end; padding-right: 2rem; padding-top: 10px; }
.footer-info h4 { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 400; margin-bottom: 5px; color: rgba(255, 255, 255, 0.9); }
.footer-info p { font-size: 1rem; opacity: 0.9; margin-bottom: 5px; line-height: 1.6; }
.footer-contact a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--uwc-gold); }
.footer-brand-social { display: flex; flex-direction: column; align-items: flex-end; padding-top: 32px; }
.footer-logo { width: clamp(140px, 15vw, 211px); height: auto; opacity: 0.95; }
.footer-bottom { max-width: 1140px; margin: 0 auto; padding-top: 2rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; font-size: 0.875rem; color: #ffffff; opacity: 0.85; }
.footer-bottom-left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.875rem; color: #ffffff; }
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { color: #ffffff; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--uwc-gold); }

@media (max-width: 820px) {
  .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-info { justify-self: start; padding-right: 0; }
  .footer-brand-social { align-items: flex-start; padding-top: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { padding: 26px 44px 34px; }
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply { padding: 28px 30px 32px; }
  .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress__bar span, .btn, .nav-strip-contact-btn { transition: none; }
}
