/* ============================================================================
   EduBridge Ambassador page — scoped styles
   Uses the 2026 ECI teal identity as specified in the programme brief:
     Warm Cream #F7F3EA (background) · Deep Teal #005E66 (serious sections)
     Primary Teal #007C89 (buttons, highlights) · Warm Amber #E88A2A (small
     accents only) · Charcoal #2F3437 (body text)
   Everything is under .amb so the rest of the site (still deep green and
   terracotta) is untouched. Shared header and footer keep the site identity.
   ============================================================================ */

.amb-body { background: #F7F3EA; color: #2F3437; }

.amb {
  --amb-cream: #F7F3EA;
  --amb-deep: #005E66;
  --amb-teal: #007C89;
  --amb-teal-dark: #00666F;
  --amb-amber: #E88A2A;
  --amb-ink: #2F3437;
  --amb-muted: #5A6266;
  --amb-line: rgba(0, 94, 102, 0.16);
  --amb-tint: #EFEADD;
  color: var(--amb-ink);
  font-size: 16px;
  line-height: 1.65;
}
.amb *, .amb *::before, .amb *::after { box-sizing: border-box; }

.amb-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.amb-narrow { max-width: 760px; }
.amb-narrow-left { max-width: 760px; }
.amb-hidden { display: none !important; }

/* ---------- type ---------- */
.amb .amb-h1 {
  font-family: Fraunces, Georgia, serif; font-weight: 700; color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.01em;
}
.amb .amb-h2 {
  font-family: Fraunces, Georgia, serif; font-weight: 700; color: var(--amb-deep);
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 16px;
}
.amb .amb-h3 { font-size: 1.1rem; font-weight: 700; color: var(--amb-deep); margin: 28px 0 12px; }
.amb .amb-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amb-teal); margin: 0 0 10px;
}
.amb .amb-kicker-on-dark { color: #F6C089; }
.amb-lead-on-dark { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 620px; margin: 0 0 26px; }
.amb-fine-on-dark { color: rgba(255,255,255,.72); font-size: 13px; margin: 18px 0 0; }
.amb-intro { font-size: 1.25rem; line-height: 1.6; color: var(--amb-ink); margin: 0 0 14px; }
.amb-body-text { color: var(--amb-muted); margin: 0 0 14px; }
.amb-fine { font-size: 13px; color: var(--amb-muted); margin: 10px 0 0; }
.amb-req { color: #B4531A; font-style: normal; font-weight: 700; }
.amb a { color: var(--amb-teal); font-weight: 600; }

/* ---------- buttons ---------- */
.amb-btn, .amb-btn-ghost, .amb-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.amb .amb-btn { background: var(--amb-teal); color: #fff; }
.amb .amb-btn:hover { background: var(--amb-teal-dark); }
.amb .amb-btn:focus-visible, .amb .amb-btn-ghost:focus-visible, .amb .amb-btn-secondary:focus-visible {
  outline: 3px solid var(--amb-amber); outline-offset: 3px;
}
.amb .amb-btn[disabled] { opacity: .6; cursor: progress; }
.amb .amb-btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.amb .amb-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.amb .amb-btn-secondary { background: transparent; color: var(--amb-deep); border-color: var(--amb-line); }
.amb .amb-btn-secondary:hover { border-color: var(--amb-deep); }

/* ---------- hero ---------- */
.amb-hero { background: var(--amb-deep); padding: 72px 0 80px; position: relative; overflow: hidden; }
.amb-hero::after { /* one thin amber rule: the only decoration */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--amb-amber);
}
.amb-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .amb-hero-grid { grid-template-columns: 1.45fr 1fr; } }
.amb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.amb-hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 26px;
  color: #fff;
}
.amb-hero-card-title { font-weight: 700; margin: 0 0 14px; font-size: 1.05rem; }
.amb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.amb-steps li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.92); }
.amb-steps span {
  flex: 0 0 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--amb-deep);
  font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.amb-plain { font-weight: inherit; }
.amb-hero-card-note { margin: 18px 0 0; font-size: 13px; color: rgba(255,255,255,.75); }

/* ---------- sections ---------- */
.amb-section { padding: 64px 0; }
.amb-tint { background: var(--amb-tint); }
.amb-two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .amb-two-col { grid-template-columns: 1fr 1fr; } }

.amb-definition {
  margin: 8px 0 8px; padding: 22px 26px; background: #fff; border-left: 4px solid var(--amb-teal);
  border-radius: 0 14px 14px 0; font-family: Fraunces, Georgia, serif; font-size: 1.25rem; line-height: 1.5; color: var(--amb-deep);
}
.amb-grid-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .amb-grid-list { grid-template-columns: 1fr 1fr; } }
.amb-grid-list li {
  background: #fff; border: 1px solid var(--amb-line); border-radius: 12px; padding: 14px 16px 14px 44px; position: relative;
}
.amb-grid-list li::before {
  content: ""; position: absolute; left: 18px; top: 22px; width: 12px; height: 2px; background: var(--amb-teal);
}
.amb-why { max-width: 760px; }
.amb-why p { margin: 0; color: var(--amb-muted); }

.amb-chips { list-style: none; padding: 0; margin: 4px 0 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.amb-chips li {
  border: 1px solid var(--amb-line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 15px;
}
.amb-callout {
  background: var(--amb-deep); color: #fff; border-radius: 16px; padding: 24px 28px; max-width: 760px;
}
.amb-callout p { margin: 0; color: rgba(255,255,255,.9); }
.amb-callout .amb-callout-title { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; color: #fff; margin-bottom: 6px; }

.amb-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.amb-ticks li { position: relative; padding-left: 30px; }
.amb-ticks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--amb-teal); border-bottom: 2.5px solid var(--amb-teal); transform: rotate(-45deg);
}
.amb-note { background: #fff; border: 1px solid var(--amb-line); border-top: 4px solid var(--amb-amber); border-radius: 14px; padding: 24px; align-self: start; }
.amb-note p { margin: 0 0 10px; }
.amb-note-title { font-weight: 700; color: var(--amb-deep); }
.amb-note-tip { font-size: 14px; color: var(--amb-muted); margin-bottom: 0 !important; }

/* ---------- form ---------- */
.amb-form-section { background: #fff; border-top: 1px solid var(--amb-line); }
.amb-form-wrap { max-width: 860px; }
.amb-privacy {
  background: var(--amb-cream); border: 1px solid var(--amb-line); border-radius: 14px; padding: 16px 20px; margin: 8px 0 28px;
  font-size: 14px;
}
.amb-privacy summary { font-weight: 700; color: var(--amb-deep); cursor: pointer; }
.amb-privacy ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--amb-ink); }

.amb-stepper { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 6px; counter-reset: s; }
.amb-stepper li {
  flex: 1; height: 6px; border-radius: 3px; background: #E3DED1; position: relative;
}
.amb-stepper li.is-done { background: var(--amb-teal); }
.amb-stepper li.is-current { background: var(--amb-amber); }
.amb-step-caption { font-size: 13px; color: var(--amb-muted); margin: -18px 0 22px; }

.amb-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.amb-step:not(.is-active) { display: none; }
.amb-legend { display: block; width: 100%; margin: 0 0 22px; font-family: Fraunces, Georgia, serif; font-size: 1.6rem; color: var(--amb-deep); font-weight: 700; }
.amb-legend .amb-legend-kicker { display: block; font-family: Inter, system-ui, sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--amb-teal); margin-bottom: 4px; }

.amb-row { display: grid; gap: 0 18px; }
@media (min-width: 680px) { .amb-row { grid-template-columns: 1fr 1fr; } .amb-row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.amb-field { display: block; margin: 0 0 20px; }
.amb-field > span { display: block; font-weight: 600; margin-bottom: 7px; line-height: 1.45; }
.amb input[type=text], .amb input:not([type]), .amb input[type=email], .amb input[type=tel], .amb select, .amb textarea {
  width: 100%; border: 1.5px solid #CFC9BA; border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 16px;
  background: #fff; color: var(--amb-ink);
}
.amb textarea { resize: vertical; min-height: 96px; }
.amb input:focus, .amb select:focus, .amb textarea:focus { outline: none; border-color: var(--amb-teal); box-shadow: 0 0 0 3px rgba(0,124,137,.18); }
.amb .is-invalid { border-color: #B3261E !important; }
.amb-count { display: block; text-align: right; font-size: 12px; color: var(--amb-muted); margin-top: 4px; }
.amb-count.is-short { color: #9A4A0E; }
.amb-field-error { display: block; color: #B3261E; font-size: 13px; margin-top: 5px; font-weight: 500; }

.amb-choices, .amb-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.amb-choices label, .amb-checks label {
  display: inline-flex; align-items: center; gap: 9px; border: 1.5px solid #CFC9BA; border-radius: 10px;
  padding: 10px 14px; cursor: pointer; background: #fff; font-weight: 500; min-height: 44px;
}
.amb-choices label:has(input:checked), .amb-checks label:has(input:checked) { border-color: var(--amb-teal); background: #E8F4F5; }
.amb input[type=radio], .amb input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--amb-teal); margin: 0; flex: none; }

.amb-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.amb-scale label { cursor: pointer; }
.amb-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amb-scale b {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #CFC9BA;
  background: #fff; font-weight: 700;
}
.amb-scale input:checked + b { background: var(--amb-teal); border-color: var(--amb-teal); color: #fff; }
.amb-scale input:focus-visible + b { outline: 3px solid var(--amb-amber); outline-offset: 2px; }
.amb-scale-end { font-size: 13px; color: var(--amb-muted); }

.amb-social label { display: block; margin-bottom: 12px; }
.amb-social small { display: block; font-size: 13px; color: var(--amb-muted); margin-bottom: 4px; }

.amb-upload {
  border: 1.5px dashed #CFC9BA; border-radius: 14px; padding: 20px; margin-bottom: 18px; display: grid; gap: 12px;
}
.amb-upload.has-file { border-style: solid; border-color: var(--amb-teal); background: #F2F8F8; }
.amb-upload.has-error { border-color: #B3261E; }
.amb-upload-q { font-weight: 600; margin: 0; }
.amb-upload-prompt { font-family: Fraunces, Georgia, serif; color: var(--amb-deep); font-size: 1.05rem; margin: 6px 0; }
.amb-upload-rule { font-size: 13px; color: var(--amb-muted); margin: 4px 0 0; }
.amb-file { justify-self: start; }
.amb-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amb-file span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 2px solid var(--amb-teal); color: var(--amb-teal); font-weight: 700; cursor: pointer; background: #fff;
}
.amb-file input:focus-visible + span { outline: 3px solid var(--amb-amber); outline-offset: 2px; }
.amb-file-status { margin: 0; font-size: 14px; }
.amb-file-status.is-error { color: #B3261E; font-weight: 600; }

.amb-declare { display: grid; gap: 12px; }
.amb-declare label {
  display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid #CFC9BA; border-radius: 10px; padding: 14px; cursor: pointer;
}
.amb-declare label:has(input:checked) { border-color: var(--amb-teal); background: #F2F8F8; }
.amb-declare input { margin-top: 3px !important; }

.amb-progress { margin-top: 22px; }
.amb-progress p { margin: 0 0 8px; font-weight: 600; color: var(--amb-deep); }
.amb-bar { height: 10px; background: #E3DED1; border-radius: 5px; overflow: hidden; }
.amb-bar div { height: 100%; width: 0; background: var(--amb-teal); transition: width .2s; }

.amb-error { background: #FBECEA; color: #8C1D18; border-radius: 10px; padding: 12px 16px; font-weight: 500; margin: 20px 0 0; }
.amb-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.amb-nav .amb-btn { margin-left: auto; }

.amb-done { text-align: left; background: var(--amb-cream); border: 1px solid var(--amb-line); border-radius: 18px; padding: 36px; }
.amb-done:focus { outline: none; }
.amb-done p { margin: 0 0 12px; }
.amb-done-mark {
  width: 52px; height: 52px; border-radius: 50%; background: var(--amb-teal); color: #fff; display: grid; place-items: center;
  font-size: 26px; font-weight: 700; margin-bottom: 18px;
}
.amb-ref { font-size: 15px; }
.amb-ref strong { color: var(--amb-deep); letter-spacing: .04em; }

@media (max-width: 520px) {
  .amb-hero { padding: 52px 0 60px; }
  .amb-section { padding: 48px 0; }
  .amb-btn, .amb-btn-ghost { width: 100%; }
  .amb-nav .amb-btn, .amb-nav .amb-btn-secondary { flex: 1; width: auto; }
  .amb-scale b { width: 42px; height: 42px; }
  .amb-done { padding: 24px; }
}
