/* ============================================================
   PLAI REGISTRATION — FULLY RESPONSIVE CSS
   ============================================================ */

:root {
  --maroon: #8B1A1A;
  --maroon-dark: #5c0f0f;
  --maroon-light: #b52424;
  --gold: #C9A84C;
  --gold-light: #e8c96d;
  --gold-pale: #f5e8c0;
  --cream: #faf7f2;
  --white: #ffffff;
  --text: #1a1212;
  --text-muted: #7a6e6e;
  --border: #e8ddd4;
}

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  padding-top: 72px;
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  body { padding-top: 60px; }
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-layout {
  display: flex;
  min-height: calc(100vh - 72px);
  width: 100%;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
.left-panel {
  width: 42%;
  background: linear-gradient(
    160deg,
    var(--maroon-dark) 0%,
    var(--maroon) 60%,
    #a52828 100%
  );

  padding: 40px 48px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: sticky;
  top: 0;

  height: 100vh;
  overflow: hidden;

  flex-shrink: 0;
}

.left-panel::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(201,168,76,0.07);
  pointer-events: none;
}

.left-panel::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.left-top {
  position: relative;
  z-index: 1;
}

.left-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 40px;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.left-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.6); }
}

.left-panel h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.left-panel h1 em {
  color: var(--gold-light);
  font-style: normal;
  display: block;
}

.left-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 40px;
}

.benefits-card {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 22px 24px;
}

.benefits-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefits-card h3::before {
  content: "◆";
  color: var(--gold);
  font-size: 9px;
}

.benefits-list {
  list-style: none;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.right-panel {
  flex: 1;
  width: 100%;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  padding: 44px 48px;
  width: 100%;
  max-width: 620px;
}

/* ============================================================
   STEPPER
   ============================================================ */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  flex: 1;
}

.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-item.completed:not(:last-child)::after {
  background: var(--maroon);
}

.step-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #bbb;
  background: white;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.step-item.active .step-bubble {
  border-color: var(--maroon);
  background: var(--maroon);
  color: white;
  box-shadow: 0 4px 14px rgba(139,26,26,0.25);
}

.step-item.completed .step-bubble {
  border-color: var(--maroon);
  background: var(--maroon);
  color: white;
}

.step-item.completed .step-bubble::after {
  content: "✓";
  font-size: 14px;
}

.step-item.completed .step-bubble .num {
  display: none;
}

.step-label {
  font-size: 10px;
  font-weight: 600;
  color: #bbb;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.step-item.active .step-label    { color: var(--maroon); }
.step-item.completed .step-label { color: var(--maroon); }

/* ============================================================
   FORM STEPS
   ============================================================ */
.form-step {
  display: none;
  animation: fadeStep 0.35s ease both;
}

.form-step.active {
  display: block;
}

@keyframes fadeStep {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 6px;
}

.step-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
  margin-top: 18px;
}

.field-label:first-of-type { margin-top: 0; }

/* ── Inputs ── */
input[type="text"],
input[type="email"],
input[type="date"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e5ddd4;
  border-radius: 8px;
  background: white;
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  transition: all 0.2s ease;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(139,26,26,0.08);
}

input::placeholder, textarea::placeholder { color: #ccc; }

select {
  appearance: none;
  cursor: pointer;
}

.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--maroon);
  pointer-events: none;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

input.error {
  border-color: #e53935;
}

/* ── Privacy consent ── */
.privacy-box {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 22px;
  width: 100%;
}

.privacy-box strong { color: var(--maroon); }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid #e5ddd4;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13.5px;
  font-weight: 500;
  width: 100%;
}

.consent-row:hover { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.consent-row.checked { border-color: var(--maroon); background: rgba(139,26,26,0.04); }

.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--maroon);
  flex-shrink: 0;
  cursor: pointer;
}

/* ============================================================
   PAYMENT SECTION
   ============================================================ */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
  width: 100%;
}

.payment-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
  width: 100%;
}

.payment-card:hover { border-color: var(--gold); }
.payment-card.selected {
  border-color: var(--maroon);
  background: rgba(139,26,26,0.03);
}

.payment-card .pay-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.payment-card .pay-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.payment-card .pay-type {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.payment-card .pay-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.payment-card.selected .pay-check {
  background: var(--maroon);
  border-color: var(--maroon);
}

.payment-card.selected .pay-check::after {
  content: "✓";
  font-size: 11px;
  color: white;
  font-weight: 700;
}

.payment-details-box {
  display: none;
  background: #faf7f2;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
  animation: fadeStep 0.3s ease;
  width: 100%;
}

.payment-details-box.show { display: block; }

.pay-detail-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-detail-title svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  gap: 12px;
}

.pay-row:last-of-type { border-bottom: none; }
.pay-row .pay-key { color: var(--text-muted); flex-shrink: 0; }
.pay-row .pay-val {
  font-weight: 600;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  text-align: right;
  word-break: break-all;
}

.pay-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(201,168,76,0.1);
  border-radius: 8px;
  font-size: 12px;
  color: #665;
  line-height: 1.6;
  border-left: 3px solid var(--gold);
}

/* ============================================================
   FORM BUTTONS
   ============================================================ */
.form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}

.btn-next {
  flex: 1;
  padding: 15px;
  background: var(--maroon);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(139,26,26,0.18);
}

.btn-next:hover:not(:disabled) {
  background: var(--maroon-dark);
  transform: translateY(-2px);
}

.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-back {
  padding: 15px 22px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-back:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

.social-links { display: flex; gap: 12px; flex-wrap: wrap; }

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: white;
}

.footer-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Portal shortcut on left panel */
.portal-shortcut {
  margin-top: 28px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 12px;
  padding: 18px 20px;
}

.portal-shortcut p {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 12px;
}

.portal-shortcut a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--maroon-dark);
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s;
}

.portal-shortcut a:hover { background: var(--gold-light); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .left-panel {
    width: 38%;
    padding: 48px 32px;
  }

  .right-panel {
    padding: 48px 36px;
  }

  .form-card {
    padding: 36px 32px;
  }
}

/* ============================================================
   RESPONSIVE — STACKED (≤ 860px)
   ============================================================ */
@media (max-width: 860px) {
  .page-layout {
    flex-direction: column;
    min-height: unset;
  }

  .left-panel {
    width: 100%;
    position: static;
    height: auto;
    min-height: unset;
    padding: 36px 24px 32px;  /* generous symmetric padding */
    overflow: visible;         /* allow content to breathe, not clip */
    flex-shrink: 0;
  }

  /* keep decorative circles from causing horizontal scroll */
  .left-panel::before,
  .left-panel::after {
    display: none;
  }

  .left-panel h1 { font-size: 32px; }
  .left-desc     { font-size: 13.5px; margin-bottom: 24px; }
  .benefits-card { padding: 18px 20px; }

  .right-panel {
    padding: 32px 24px 48px;
  }

  .form-card {
    max-width: 100%;
    padding: 32px 28px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {

  .left-panel {
    padding: 28px 20px 24px;
  }

  .left-eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
    padding: 4px 12px;
  }

  .left-panel h1 { font-size: 26px; line-height: 1.2; }
  .left-desc     { font-size: 13px; margin-bottom: 18px; }

  .benefits-card    { padding: 14px 16px; }
  .benefits-card h3 { font-size: 14px; }
  .benefits-list li { font-size: 12.5px; padding: 7px 0; }

  .right-panel {
    padding: 20px 16px 40px;
  }

  .form-card {
    padding: 22px 16px;
    border-radius: 14px;
    box-shadow: none;
  }

  .stepper {
    margin-bottom: 26px;
  }

  .step-label { display: none; }

  .step-bubble {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .step-item:not(:last-child)::after {
    top: 15px;
    left: calc(50% + 15px);
    width: calc(100% - 30px);
  }

  .step-title    { font-size: 20px; }
  .step-subtitle {
    font-size: 12.5px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .field-label {
    font-size: 10px;
    letter-spacing: 1.2px;
    margin-top: 16px;
  }

  input[type="text"],
  input[type="email"],
  input[type="date"],
  textarea,
  select {
    padding: 12px 13px;
    font-size: 14px;
    border-radius: 8px;
  }

  textarea { min-height: 72px; }

  .privacy-box {
    font-size: 12.5px;
    padding: 14px 15px;
    line-height: 1.75;
  }

  .consent-row {
    padding: 12px 14px;
    font-size: 13.5px;
    gap: 10px;
  }

  .payment-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .payment-card {
    padding: 13px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .payment-card .pay-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin-bottom: 0;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .payment-card .pay-name { font-size: 13.5px; }
  .payment-card .pay-type { font-size: 11px; }

  .payment-card .pay-check {
    margin-left: auto;
    min-width: 20px;
    flex-shrink: 0;
  }

  .payment-details-box {
    padding: 16px 15px;
    border-radius: 10px;
  }

  .pay-row     { font-size: 12.5px; padding: 8px 0; }
  .pay-row .pay-val { font-size: 12.5px; }
  .pay-note    { font-size: 12px; padding: 9px 12px; }

  .form-buttons {
    flex-direction: column-reverse;
    gap: 8px;
    margin-top: 24px;
  }

  .btn-next {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    border-radius: 8px;
  }

  .btn-back {
    width: 100%;
    padding: 13px;
    font-size: 13.5px;
    border-radius: 8px;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .left-panel    { padding: 22px 16px 20px; }
  .left-panel h1 { font-size: 22px; }

  .right-panel { padding: 16px 12px 36px; }

  .form-card {
    padding: 18px 13px;
    border-radius: 10px;
  }

  .step-title { font-size: 18px; }

  input[type="text"],
  input[type="email"],
  input[type="date"],
  textarea,
  select {
    padding: 11px 12px;
    font-size: 14px;
  }

  .btn-next,
  .btn-back { padding: 13px; font-size: 13.5px; }
}