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

:root {
  --primary: #1B4D7A;
  --primary-dark: #133A5C;
  --primary-light: #E8F0F8;
  --accent: #C8963E;
  --accent-light: #FDF6EC;
  --text: #1a1a1a;
  --text-muted: #5a6673;
  --text-light: #8a95a0;
  --bg: #ffffff;
  --bg-alt: #F7F8FA;
  --border: #E2E6EB;
  --success: #1B8A5A;
  --success-light: #E6F5ED;
  --danger: #C0392B;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19,58,92,0.95) 0%, rgba(19,58,92,0.5) 50%, rgba(19,58,92,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 3.5rem;
}

/* On desktop, keep hero text clear of the sticky form card */
@media (min-width: 900px) {
  .hero-content {
    padding-right: 440px;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  max-width: 700px;
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-details span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ─── LAYOUT ─── */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto 1fr;
  column-gap: 3rem;
  align-items: start;
  position: relative;
}

/* Trust section: left column, top row on desktop */
.trust-section {
  grid-column: 1;
  grid-row: 1;
  padding-top: 2.5rem;
}

/* ─── LEFT COLUMN: INFO ─── */
.info-column {
  grid-column: 1;
  grid-row: 2;
  padding-top: 1.5rem;
}

.form-column {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* Trust Bar */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.advisor-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.advisor-photo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.advisor-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.advisor-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-badge {
  margin-left: auto;
  padding: 0.3rem 0.8rem;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.trust-badges {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  max-width: 60%;
}

.trust-badges .trust-badge {
  margin-left: 0;
}

/* Social proof banner */
.social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(90deg, var(--accent-light) 0%, #fff 100%);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text);
}

.social-proof .icon {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
}

.social-proof strong {
  color: var(--primary-dark);
}

/* Section headers */
.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* Benefits */
.benefits-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.benefits-list li:last-child { border-bottom: none; }

.benefits-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--success-light);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  margin-top: 2px;
}

/* What to Expect */
.expect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.expect-card {
  padding: 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.expect-card .icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.expect-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.expect-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ */
.faq-list {
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: inherit;
}

.faq-question:hover { color: var(--primary); }

.faq-question .arrow {
  transition: transform 0.2s;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.faq-item.open .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer p {
  padding: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── RIGHT COLUMN: FORM ─── */
.form-column {
  position: sticky;
  top: 1.5rem;
  margin-top: -80px;
  z-index: 10;
}

.registration-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-header {
  background: var(--primary);
  color: #fff;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.company-logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  margin: 0 auto 0.75rem;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.company-logo-bar img {
  max-height: 52px;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.form-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.form-header p {
  font-size: 0.82rem;
  opacity: 0.85;
}

.form-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-group label .required {
  color: var(--danger);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,77,122,0.12);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-date-select {
  margin-bottom: 1rem;
}

.form-date-select label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.date-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.88rem;
  font-weight: 500;
}

.date-option:hover { border-color: var(--primary); background: var(--primary-light); }

.date-option input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}

.date-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

.btn-submit:hover { background: #B8862E; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.sms-consent {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0.75rem 0 0.25rem;
  text-align: center;
}
.sms-consent a { color: var(--primary); text-decoration: underline; }

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

.spots-left {
  text-align: center;
  padding: 0.6rem;
  background: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* Form states */
.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.form-success.show { display: block; }
.form-success .check-big {
  width: 64px;
  height: 64px;
  background: var(--success-light);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
}

.form-success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-error {
  display: none;
  padding: 0.7rem 1rem;
  background: #FEF0EE;
  border: 1px solid #F5C6C1;
  border-radius: 8px;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-error.show { display: block; }

/* ─── SIBLING EVENTS ("Can't make this date? Other workshops with X") ─── */
.sibling-events {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 2rem;
}
.sibling-events-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.sibling-events h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #0f172a;
}
.sibling-events-subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}
.sibling-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.sibling-event-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.sibling-event-card:hover {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transform: translateY(-1px);
  text-decoration: none;
}
.sibling-event-title {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-size: 0.95rem;
}
.sibling-event-date {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.2rem;
}
.sibling-event-venue {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}
.sibling-event-cta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent, #2563eb);
}

/* ─── FOOTER ─── */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .main-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 1rem;
  }

  .trust-section {
    order: 1;
    padding: 1.5rem 0 0;
  }

  .form-column {
    order: 2;
    position: static;
    margin-top: 0;
    padding: 0 0 1rem;
  }

  .info-column {
    order: 3;
    padding-top: 2rem;
  }

  .hero { min-height: 300px; }
  .hero-content { padding: 2rem 1.25rem 2.5rem; }
  .expect-grid { grid-template-columns: 1fr; }
  .trust-bar { flex-wrap: wrap; }
  .trust-badges { max-width: 100%; justify-content: flex-start; }
  .trust-badges .trust-badge { margin-left: 0; }
}

/* ─── LOADING STATE ─── */
.page-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
}

.page-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.page-error h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-error p {
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────
   HOMEPAGE (home.html — myssplan.net root)
   ───────────────────────────────────────────────────────────────────────── */

body.home-page {
  background: var(--bg-alt);
}

.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

.home-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.home-brand-logo {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.home-brand-mark {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200, 150, 62, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(200, 150, 62, 0.4);
}

.home-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.home-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.6;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto;
}

.home-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.home-events-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.home-events-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.home-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.home-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem;
  color: var(--text-light);
}

.home-no-events {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.home-event-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
}

.home-event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.home-event-card-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg-alt);
}

.home-event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-event-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), #f0f3f7);
}

.home-event-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-event-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.home-event-card-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.3rem;
}

.home-event-card-meta strong { color: var(--text); }

.home-event-card-date {
  color: var(--primary);
  font-weight: 500;
}

.home-event-card-host {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0.5rem 0 1rem;
  font-style: italic;
}

.home-event-card-cta {
  margin-top: auto;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}

.home-event-card:hover .home-event-card-cta {
  background: var(--primary-dark);
}

.home-trust-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.home-trust-item {
  text-align: center;
}

.home-trust-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.home-trust-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.home-footer {
  background: #1f2937;
  color: #cbd5e0;
  padding: 2.5rem 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

.home-footer p {
  max-width: 820px;
  margin: 0 auto 1rem;
}

.home-footer a {
  color: #93c5fd;
  text-decoration: none;
}

.home-footer a:hover {
  text-decoration: underline;
}

.home-footer-links {
  font-size: 0.85rem;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .home-hero { padding: 2.5rem 1.25rem 2.5rem; }
  .home-main { padding: 2rem 1rem 1.5rem; }
  .home-events-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .home-event-card-img-wrap { height: 160px; }
  .home-trust-band { padding: 1.5rem; gap: 1.25rem; }
}

/* ─────────────────────────────────────────────────────────────────────────
   LANGUAGE TOGGLE — appears top-right when an event has i18n alternates
   ───────────────────────────────────────────────────────────────────────── */

.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  gap: 0.2rem;
  background: rgba(15, 23, 42, 0.85);
  padding: 0.25rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.lang-toggle-btn {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

a.lang-toggle-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.lang-toggle-btn.active {
  background: #fff;
  color: var(--primary);
  cursor: default;
}

@media (max-width: 600px) {
  .lang-toggle {
    top: 0.6rem;
    right: 0.6rem;
  }
  .lang-toggle-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
  }
}
