/* ============================================================
   Chilanga Mulilo — Registration Styles
   ============================================================ */

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

html, body {
  height: 100%;
  height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-family: 'Lato', sans-serif;
  background-color: #1a0e08;
  -webkit-text-size-adjust: 100%;
}

.page-overlay {
  display: none;
}

main {
  width: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* ── Full-page split ── */
.split-page {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* ── Left panel — form ── */
.split-left {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(107, 45, 15, 0.35);
  padding: 60px 48px;
  overflow-y: auto;
}

/* ── Right panel — image ── */
.split-right {
  flex: 0 0 60%;
  position: relative;
}

.split-right img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.split-right::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(10, 5, 2, 0.18);
  pointer-events: none;
}

/* ── Welcome heading ── */
.welcome-eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #f5ddb0;
  margin-bottom: 6px;
}

.welcome-title {
  font-family: 'Great Vibes', cursive;
  font-size: 54px;
  font-weight: 400;
  color: #f5d08b;
  line-height: 1.25;
  margin-bottom: 8px;
}

.welcome-sub {
  font-family: 'Great Vibes', cursive;
  font-size: 42px;
  color: #f5d08b;
  line-height: 1.2;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.25);
}

/* ── Intro text ── */
.card-intro {
  font-size: 13px;
  color: #f5ddb0;
  line-height: 1.75;
  margin-bottom: 28px;
}

/* ── Form ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f5d08b;
  margin-bottom: 7px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(212, 184, 150, 0.3);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.06);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #fff8ec;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder {
  color: rgba(245, 208, 139, 0.35);
}

.form-group input:focus {
  border-color: #c8922a;
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.15);
}

.form-group.has-error input {
  border-color: rgba(184, 64, 64, 0.8);
  background: rgba(184, 64, 64, 0.08);
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(212, 184, 150, 0.3);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.06);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #fff8ec;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.form-group select option {
  background: #3b2a1a;
  color: #fff8ec;
}

.form-group select:focus {
  border-color: #c8922a;
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.15);
}

.form-group.has-error select {
  border-color: rgba(184, 64, 64, 0.8);
  background: rgba(184, 64, 64, 0.08);
}

.error-msg {
  display: block;
  font-size: 12px;
  color: #e07070;
  margin-top: 5px;
}

/* ── reCAPTCHA ── */
.recaptcha-wrap {
  margin-bottom: 20px;
}

/* ── RSVP line ── */
.rsvp-line {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #f5d08b;
}

/* ── Submit Button ── */
.btn-submit {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 14px;
  background: rgba(107, 45, 15, 0.85);
  color: #f5d08b;
  border: 1px solid rgba(200, 146, 42, 0.4);
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-submit:hover {
  background: rgba(138, 58, 16, 0.95);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(245, 208, 139, 0.3);
  border-top-color: #f5d08b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

.btn-submit.loading .btn-text {
  opacity: 0.6;
}

.btn-submit.loading .btn-spinner {
  display: inline-block;
}

.btn-submit.loading {
  cursor: not-allowed;
  opacity: 0.8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Success State ── */
.success-body {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 48px;
}

.success-icon {
  font-size: 36px;
  color: #c8922a;
  margin-bottom: 16px;
}

.success-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: #f5d08b;
  margin-bottom: 16px;
}

.success-message {
  font-size: 15px;
  color: #fff0d0;
  line-height: 1.8;
  margin-bottom: 20px;
}

.success-note {
  font-size: 13px;
  color: #f5ddb0;
  line-height: 1.75;
  background: rgba(200, 146, 42, 0.12);
  border-left: 3px solid rgba(200, 146, 42, 0.6);
  padding: 14px 18px;
  border-radius: 4px;
  text-align: left;
}

/* ============================================================
   Mobile — stack vertically, image on top
   ============================================================ */
@media (max-width: 768px) {
  .split-page {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .split-right {
    -webkit-box-flex: none;
    -webkit-flex: none;
    flex: none;
    height: 260px;
    -webkit-box-ordinal-group: 0;
    -webkit-order: -1;
    order: -1;
  }

  .split-left {
    -webkit-box-flex: none;
    -webkit-flex: none;
    flex: none;
    padding: 40px 24px 52px;
  }

  .welcome-title {
    font-size: 38px;
  }

  .welcome-sub {
    font-size: 15px;
    margin-bottom: 24px;
    padding-bottom: 22px;
  }
}
