/* =======================================================
   Encounters Dating — Subscribe Modal
   Page-specific styles for the subscription / unlock modal.
   ======================================================= */


/* ---------- Modal backdrop & shell ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 42, 40, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 720px;
  box-shadow: 0 24px 80px -16px rgba(0,0,0,0.35);
  overflow: hidden;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--t-base);
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.modal-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}


/* ---------- Header band (plum) ---------- */
.modal-header {
  background: linear-gradient(135deg, var(--plum-deep) 0%, var(--plum) 100%);
  color: white;
  padding: 28px 48px 22px;
  text-align: center;
  position: relative;
}

.modal-header h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: white;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.modal-header-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 18px;
  line-height: 1.5;
}

/* Benefits teaser — smaller, secondary */
.modal-benefit {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: left;
  max-width: 380px;
}
.modal-benefit-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.modal-benefit-icon svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,0.7);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.modal-benefit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.modal-benefit-name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}
.modal-benefit-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
}

.modal-pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}
.modal-pagination .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.modal-pagination .dot.active {
  background: rgba(255, 255, 255, 0.75);
  width: 14px;
  border-radius: 100px;
}


/* ---------- Payment method tabs ---------- */
.payment-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.payment-tab {
  flex: 1;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-base), border-color var(--t-base);
  font-family: var(--sans);
}
.payment-tab.active {
  color: var(--plum-deep);
  border-bottom-color: var(--rose);
}
.payment-tab:hover:not(.active) {
  color: var(--plum);
}


/* ---------- Promo note (understated) ---------- */
.promo-note {
  padding: 7px 48px;
  font-size: 12px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  letter-spacing: 0.01em;
}


/* ---------- Modal body ---------- */
.modal-body {
  padding: 32px 48px 28px;
}

.modal-body h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--plum-deep);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}


/* ---------- Plan selection ---------- */

/* Monthly rate hero */
.plan-monthly-hero {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--plum-deep);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.plan-monthly-hero small {
  font-size: 16px;
  color: var(--text-mid);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 2px;
}
.plan-was-row {
  font-size: 13px;
  color: var(--text-light);
}
.plan-was-row .plan-was {
  text-decoration: line-through;
}

/* Recommended plan CTA column */
.plan-total {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: right;
}
.plan-total-label {
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
  margin-top: 3px;
}
.plan-saving-badge {
  font-size: 12px;
  color: var(--rose);
  font-family: var(--sans);
  text-align: right;
  margin-top: 6px;
}

/* Renewal note (operational reassurance, not warning) */
.renewal-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: -4px 0 32px;
}
.renewal-note svg {
  width: 13px;
  height: 13px;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-recommended {
  border: 2px solid var(--rose);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  background: var(--surface);
  position: relative;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.plan-recommended-label {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--rose);
  color: white;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}

.plan-period {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--plum-deep);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.plan-price-line {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 6px;
  line-height: 1.4;
}
.plan-was {
  text-decoration: line-through;
  color: var(--text-light);
  margin-right: 6px;
}
.plan-now {
  color: var(--plum-deep);
  font-weight: 500;
}
.plan-saving {
  font-size: 13px;
  color: var(--rose);
  line-height: 1.4;
}

.plan-recommended .plan-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Alternative plans (smaller, three across) */
.plan-alternatives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.plan-alt {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 16px;
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--t-base), background var(--t-base);
  position: relative;
}
.plan-alt:hover {
  border-color: var(--plum);
  background: var(--plum-faint);
}
.plan-alt-period {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--plum-deep);
  margin-bottom: 4px;
}
.plan-alt-price {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.plan-alt-price small {
  font-size: 12px;
  color: var(--text-mid);
  font-family: var(--sans);
}
.plan-alt-meta {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
}
.plan-alt-saving {
  font-size: 11px;
  color: var(--rose);
  margin-top: 4px;
}


/* ---------- Tier toggle (Standard vs Premium) ---------- */
.tier-toggle {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--surface);
}
.tier-toggle-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  cursor: pointer;
  transition: background var(--t-base);
}
.tier-toggle-row:first-child {
  border-bottom: 1px solid var(--border);
}
.tier-toggle-row:hover {
  background: var(--bg-alt);
}
.tier-toggle-row.selected {
  background: var(--plum-faint);
}

.tier-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  margin-top: 2px;
  position: relative;
  flex-shrink: 0;
}
.tier-toggle-row.selected .tier-radio {
  border-color: var(--rose);
}
.tier-toggle-row.selected .tier-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--rose);
  border-radius: 50%;
}

.tier-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--plum-deep);
  margin-bottom: 4px;
  line-height: 1.3;
}
.tier-name-tag {
  display: inline-block;
  background: var(--rose-faint);
  color: var(--rose);
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  vertical-align: middle;
}
.tier-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}
.tier-price {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--plum-deep);
  font-weight: 500;
  white-space: nowrap;
}
.tier-price small {
  font-size: 12px;
  color: var(--text-mid);
  font-family: var(--sans);
  font-weight: 400;
}


/* ---------- Payment terms accordion (supporting content, not primary) ---------- */
.payment-terms {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  opacity: 0.8;
}
.payment-terms-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-mid);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  text-align: left;
  transition: color var(--t-base);
}
.payment-terms-toggle:hover { color: var(--plum); }
.payment-terms-chev {
  width: 14px;
  height: 14px;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.payment-terms-toggle.is-open .payment-terms-chev {
  transform: rotate(180deg);
}
.payment-terms-body {
  padding: 10px 13px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.payment-terms-body p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 6px;
}
.payment-terms-body p:last-child { margin-bottom: 0; }


/* ---------- Consent checkbox ---------- */
.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 24px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
}
.consent-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  margin-top: 2px;
  background: var(--surface);
  position: relative;
  flex-shrink: 0;
}
.consent.checked .consent-box {
  border-color: var(--rose);
  background: var(--rose);
}
.consent.checked .consent-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* ---------- Consent checkbox (light variant) ---------- */
.consent.consent-light {
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}
.consent.consent-light .consent-box {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.consent.consent-light.checked .consent-box {
  border-color: var(--rose);
  background: var(--rose);
}
.consent.consent-light.checked .consent-box::after {
  left: 3px;
  top: 1px;
  width: 5px;
  height: 8px;
}


/* ---------- Voucher section spacing ---------- */
.voucher-section {
  margin-bottom: 24px;
}


/* ---------- Pay button ---------- */
.pay-button {
  width: 100%;
  padding: 16px 22px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  background: var(--rose);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--t-base);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pay-button:hover { background: #8B3B3F; }
.pay-button .icon {
  width: 14px;
  height: 14px;
  stroke: white;
}


/* ---------- Trust line ---------- */
.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.trust-line .lock {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-line svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.trust-line .worldpay-mark {
  height: 14px;
  opacity: 0.6;
}
.trust-line .sep {
  color: var(--border);
}


/* ---------- Voucher disclosure ---------- */
.voucher-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.voucher-toggle {
  font-size: 14px;
  color: var(--plum);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.voucher-toggle:hover { text-decoration: underline; }
.voucher-toggle .chev {
  font-size: 10px;
  transition: transform var(--t-base);
}
.voucher-open .voucher-toggle .chev {
  transform: rotate(180deg);
}

.voucher-body {
  display: none;
  margin-top: 16px;
}
.voucher-open .voucher-body { display: block; }

.voucher-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}
.voucher-input-row input {
  padding: 11px 14px;
  font-size: 14px;
}

.voucher-applied {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  background: var(--good-faint);
  border: 1px solid #C5D6BC;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  align-items: center;
}
.voucher-applied-tick {
  width: 18px;
  height: 18px;
  background: var(--good);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.voucher-applied-tick svg {
  width: 10px;
  height: 10px;
  stroke: white;
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.voucher-applied-meta {
  font-size: 12px;
  color: var(--text-mid);
}
.voucher-applied-status {
  font-family: var(--serif);
  font-style: italic;
  color: var(--good);
  font-size: 13px;
}
.voucher-remove {
  font-size: 12px;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}
.voucher-remove:hover {
  color: var(--rose);
  text-decoration: underline;
}
.voucher-input {
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--sans);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  width: 100%;
  transition: border-color var(--t-base);
}
.voucher-input:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px var(--plum-faint);
}


/* ---------- Fine print ---------- */
.fine-print {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.6;
}
.fine-print p {
  margin-bottom: 6px;
}


/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .modal-header {
    padding: 32px 24px 22px;
  }
  .modal-body {
    padding: 28px 24px 22px;
  }
  .promo-note {
    padding: 7px 24px;
  }
  .plan-recommended {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .plan-recommended .plan-cta {
    text-align: left;
  }
  .plan-alternatives {
    grid-template-columns: 1fr;
  }
}
