/* Academic Partnership / Sponsorship page (#1869).
   Everything is scoped under .oe so the site's theme is untouched, and the
   two brand colours come from config.php via --oe-primary / --oe-accent. */

.oe {
  /* Neutral defaults until enquiry.js applies the site's colours (see section.php). */
  --oe-primary: #1f3a5f;
  --oe-accent: #b3261e;
  --oe-ink: #1f2933;
  --oe-muted: #5b6770;
  --oe-line: #d9dee3;
  --oe-tint: #f5f7f9;
  --oe-error: #c0262d;
  --oe-ok: #1d7a46;
  color: var(--oe-ink);
  font-size: 16px;
  line-height: 1.6;
}
.oe *, .oe *::before, .oe *::after { box-sizing: border-box; }
/* Site themes set colours, alignment and fonts on bare p/li/label; reset them here. */
.oe p, .oe li, .oe span, .oe strong, .oe label { text-align: left; letter-spacing: normal; }
.oe p, .oe li { color: var(--oe-ink); }
.oe [hidden] { display: none !important; }

.oe-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.oe-section { padding: 56px 0; }
.oe-section--tint { background: var(--oe-tint); }

.oe-hero {
  background: var(--oe-primary);
  color: #fff;
  padding: 64px 0 56px;
}
.oe .oe-eyebrow, .oe .oe-hero__lead { color: #fff; }
.oe-eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}
.oe .oe-hero__title { margin: 0 0 12px; color: #fff; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; font-weight: 700; }
.oe-hero__lead { margin: 0 0 24px; max-width: 680px; font-size: 18px; opacity: .95; }

.oe-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 0;
  border-radius: 6px;
  background: var(--oe-accent);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter .15s;
}
.oe-btn:hover, .oe-btn:focus-visible { filter: brightness(1.1); }
.oe-btn:focus-visible { outline: 3px solid var(--oe-accent); outline-offset: 2px; }
.oe-btn[disabled] { opacity: .65; cursor: progress; }

.oe .oe-h2 { margin: 0 0 24px; color: var(--oe-primary); font-size: clamp(24px, 3.4vw, 30px); line-height: 1.25; font-weight: 700; }
.oe-intro { max-width: 860px; }
.oe-intro p { margin: 0 0 16px; font-size: 17px; }
.oe-intro p:last-child { margin-bottom: 0; }
.oe .oe-muted { color: var(--oe-muted); margin: -12px 0 24px; }

.oe ul, .oe ol { margin: 0; padding: 0; list-style: none; }

.oe-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.oe-card {
  background: #fff;
  border: 1px solid var(--oe-line);
  border-top: 4px solid var(--oe-accent);
  border-radius: 8px;
  padding: 24px;
}
.oe-card__num { display: block; color: var(--oe-accent); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.oe .oe-card__title { margin: 0 0 8px; color: var(--oe-ink); font-size: 18px; font-weight: 700; line-height: 1.3; }
.oe .oe-card p { margin: 0; color: var(--oe-muted); font-size: 15px; }

.oe-split { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; }
.oe-ways li { padding: 14px 0; border-bottom: 1px solid var(--oe-line); }
.oe-ways li:first-child { padding-top: 0; }
.oe-ways strong, .oe-steps strong { display: block; color: var(--oe-ink); font-size: 17px; }
.oe-ways span, .oe-steps span { color: var(--oe-muted); font-size: 15px; }
.oe-ticks li { position: relative; padding: 8px 0 8px 28px; }
.oe-ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--oe-accent);
  border-bottom: 2px solid var(--oe-accent);
  transform: rotate(-45deg);
}

.oe-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: oe-step; }
.oe-steps li { counter-increment: oe-step; }
.oe-steps li::before {
  content: counter(oe-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--oe-primary);
  color: #fff;
  font-weight: 700;
}

/* Form */
.oe-form-wrap { max-width: 900px; }
.oe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-bottom: 28px; }
.oe-field { display: flex; flex-direction: column; min-width: 0; }
.oe-field--wide { grid-column: 1 / -1; }
.oe-field label { margin-bottom: 6px; font-weight: 600; font-size: 15px; color: var(--oe-ink); }
.oe-req { color: var(--oe-error); }
.oe-opt { color: var(--oe-muted); font-weight: 400; }
.oe-field input[type=text], .oe-field input[type=email], .oe-field input[type=tel],
.oe-field select, .oe-field textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #b8c1c9;
  border-radius: 6px;
  background: #fff;
  color: var(--oe-ink);
  font: inherit;
  font-size: 16px;
  box-shadow: none;
}
.oe-field textarea { min-height: 140px; resize: vertical; }
.oe-field input[type=file] { padding: 8px 0; font-size: 15px; }
.oe-field input:focus, .oe-field select:focus, .oe-field textarea:focus {
  outline: none;
  border-color: var(--oe-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--oe-primary) 25%, transparent);
}
.oe-field.is-invalid input, .oe-field.is-invalid select, .oe-field.is-invalid textarea { border-color: var(--oe-error); }
.oe-error { min-height: 0; margin-top: 4px; color: var(--oe-error); font-size: 14px; }
.oe-error:empty { display: none; }
.oe-hint, .oe-count { margin-top: 4px; color: var(--oe-muted); font-size: 13px; }
.oe-count.is-near { color: var(--oe-error); }

.oe-alert, .oe-success {
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 6px;
  font-weight: 600;
}
.oe-alert { background: #fdecec; border: 1px solid #f3b7b9; color: var(--oe-error); }
.oe-success { background: #e8f5ee; border: 1px solid #a9d8bd; color: var(--oe-ok); font-size: 18px; }
.oe-success:focus { outline: none; }

.oe-captcha-field { margin: -8px 0 24px; }
.oe-captcha { min-height: 65px; }
.oe-recaptcha-note { display: block; margin: -8px 0 20px; }
.oe-recaptcha-note a { color: var(--oe-primary); }
.oe-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 991px) {
  .oe-split { grid-template-columns: 1fr; gap: 40px; }
  .oe-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .oe-section { padding: 40px 0; }
  .oe-hero { padding: 44px 0 40px; }
  .oe-hero__lead { font-size: 16px; }
  .oe-grid, .oe-steps { grid-template-columns: 1fr; }
  .oe-btn--submit { width: 100%; }
}
