/* Ascend Leadership Lab — enrollment form styles */
/* Brand: purple #2D1854, gold #C4972A, cream #FBF8F3 */

:root {
  --purple: #2D1854;
  --purple-mid: #4A2882;
  --purple-light: #7B52B5;
  --gold: #C4972A;
  --gold-light: #D9B44A;
  --navy: #1E4F68;
  --cream: #FBF8F3;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-mid: #3D4559;
  --text-light: #6B7280;
  --border: #E2D9F3;
  --error: #C0392B;
  --success: #1A7A3C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ---- Header ---- */
.site-header {
  background: var(--purple);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(45,24,84,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-ascend {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}
.brand-sub { font-size: 14px; font-weight: 600; color: var(--gold-light); }
.back-link { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.back-link:hover { color: var(--gold-light); }

/* ---- Main layout ---- */
.page-main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 800px) {
  .page-main { grid-template-columns: 1fr; margin: 20px auto; }
}

/* ---- Program sidebar ---- */
.program-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(45,24,84,0.10);
  border-top: 4px solid var(--gold);
  position: sticky;
  top: 72px;
}

.program-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.program-title {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 8px;
}

.program-tagline {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Price display */
.price-display {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.price-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.price-amount {
  font-family: 'Nunito', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.price-note {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* What's included */
.included-section { margin-bottom: 20px; }

.included-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 8px;
}

.included-list {
  list-style: none;
  padding: 0;
}

.included-list li {
  font-size: 13px;
  color: var(--text-mid);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.4;
  border-bottom: 1px solid #f0ece8;
}

.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.not-included {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}

/* Funding note */
.funding-note {
  background: #f8f5ff;
  border-left: 3px solid var(--purple-light);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  border-radius: 0 6px 6px 0;
  margin-bottom: 16px;
}

.funding-link {
  display: block;
  margin-top: 6px;
  color: var(--purple-mid);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}
.funding-link:hover { text-decoration: underline; }

.contact-block { text-align: center; }
.contact-email {
  font-size: 13px;
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 600;
}
.contact-email:hover { text-decoration: underline; }

/* ---- Form card ---- */
.form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 36px;
  box-shadow: 0 2px 16px rgba(45,24,84,0.08);
}

@media (max-width: 600px) {
  .form-card { padding: 24px 18px; }
}

.form-title {
  font-family: 'Nunito', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Field groups */
.field-group {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0ece8;
}
.field-group:last-of-type { border-bottom: none; }

.field-group-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.req { color: #C0392B; margin-left: 2px; }
.optional { font-weight: 400; color: var(--text-light); font-size: 12px; }

.field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #faf9fc;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.field input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(123,82,181,0.12);
  background: var(--white);
}

.field input.error { border-color: var(--error); }

/* Payment options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.payment-option:has(input:checked) {
  border-color: var(--purple-light);
  background: #f8f5ff;
}

.payment-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
  flex-shrink: 0;
}

.option-title { font-weight: 700; font-size: 14px; color: var(--text); }
.option-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* Error / spinner */
.form-error {
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--error);
  margin-bottom: 16px;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.submit-btn:hover { background: var(--purple-mid); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-legal {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.5;
  text-align: center;
}

/* ---- Success / Cancel pages ---- */
.result-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.result-card {
  background: var(--white);
  border-radius: 14px;
  padding: 48px 40px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(45,24,84,0.12);
}

.result-icon { font-size: 48px; margin-bottom: 16px; }
.result-title { font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 900; color: var(--purple); margin-bottom: 12px; }
.result-body { font-size: 15px; color: var(--text-mid); line-height: 1.6; margin-bottom: 24px; }
.result-id { font-size: 12px; color: var(--text-light); font-family: monospace; margin-bottom: 24px; }
.result-cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--purple);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
}
.result-cta:hover { background: var(--purple-mid); }
