/* === /abonament — plata Stripe pentru nativus.ro === */

.container--narrow { max-width: 640px; }

.abonament-wrap {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px -25px rgba(74, 92, 71, 0.25);
}

@media (max-width: 600px) {
  .abonament-wrap {
    padding: 1.75rem 1rem;
    border-radius: 22px;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Evita overflow pe ecrane inguste */
.abonament-wrap,
.abonament-form {
  max-width: 100%;
  box-sizing: border-box;
}

/* Loader & error pentru preturi */
.plan-status {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}
.loader-dot {
  width: 10px; height: 10px;
  background: #6F846B;
  border-radius: 50%;
  opacity: 0.4;
  animation: loader-bounce 1.2s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes loader-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

.plan-error {
  margin: 2rem 0;
  text-align: center;
  padding: 1.5rem;
  background: rgba(224, 122, 95, 0.08);
  border: 1px solid rgba(224, 122, 95, 0.2);
  border-radius: 14px;
  color: #8E3A21;
  font-size: 0.95rem;
}
.link-btn {
  background: none; border: none; cursor: pointer;
  color: #E07A5F; text-decoration: underline;
  font: inherit; padding: 0; margin-left: 0.5rem;
}
.link-btn:hover { color: #C0573F; }

/* Plan selector */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

@media (max-width: 540px) {
  .plan-grid { grid-template-columns: 1fr; }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.4rem;
  padding: 1.5rem 1.4rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(74, 92, 71, 0.18);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  color: inherit;
}

.plan-card:hover {
  border-color: rgba(224, 122, 95, 0.4);
  transform: translateY(-2px);
}

.plan-card[aria-checked="true"] {
  border-color: #E07A5F;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px -10px rgba(224, 122, 95, 0.35);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: #E07A5F;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
}

.plan-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6F846B;
  font-weight: 500;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.plan-price-compare {
  font-size: 1rem;
  color: #A0A39C;
  text-decoration: line-through;
  text-decoration-color: rgba(160, 163, 156, 0.7);
  font-weight: 400;
}
.plan-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  line-height: 1;
  color: #2F342E;
  font-weight: 500;
}

.plan-meta {
  font-size: 0.85rem;
  color: #6F846B;
}

/* Nota recurring deasupra butonului */
.recurring-note {
  text-align: center;
  font-size: 0.85rem;
  color: #6F846B;
  line-height: 1.5;
  margin: 0.5rem 0 0;
}
.recurring-note strong { color: #4A5C47; font-weight: 600; }

/* Form */
.abonament-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label {
  font-size: 0.9rem;
  color: #4A5C47;
  font-weight: 500;
}

.field input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(74, 92, 71, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: #2F342E;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: #E07A5F;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

.field input.invalid {
  border-color: #C0573F;
  background: rgba(224, 122, 95, 0.06);
}

/* ============================================
   Voucher — sectiune distincta vizual
   ============================================ */
.voucher-section {
  background: linear-gradient(
    135deg,
    rgba(111, 132, 107, 0.08) 0%,
    rgba(224, 122, 95, 0.06) 100%
  );
  border: 1.5px dashed rgba(111, 132, 107, 0.35);
  border-radius: 18px;
  padding: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.voucher-section[open] {
  background: linear-gradient(
    135deg,
    rgba(111, 132, 107, 0.14) 0%,
    rgba(224, 122, 95, 0.1) 100%
  );
  border-style: solid;
  border-color: rgba(111, 132, 107, 0.5);
  box-shadow: 0 14px 35px -18px rgba(74, 92, 71, 0.35);
}

.voucher-section__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #4A5C47;
  font-weight: 500;
}
.voucher-section__summary::-webkit-details-marker { display: none; }
.voucher-section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.voucher-section__title::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E07A5F;
  opacity: 0.7;
}
.voucher-section__chevron {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #6F846B;
  transition: transform 0.25s ease;
  transform: rotate(90deg);
}
.voucher-section[open] .voucher-section__chevron {
  transform: rotate(270deg);
}

.voucher-section__body {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.voucher-section__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #6F846B;
  line-height: 1.55;
}

.voucher-row {
  display: flex;
  gap: 0.6rem;
}
.voucher-row input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(74, 92, 71, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2F342E;
  box-sizing: border-box;
}
.voucher-row input:focus {
  outline: none;
  border-color: #E07A5F;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.18);
}

.btn-voucher {
  background: #6F846B;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -10px rgba(74, 92, 71, 0.45);
}
.btn-voucher:hover:not(:disabled) {
  background: #5C7158;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(74, 92, 71, 0.5);
}
.btn-voucher:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.voucher-status {
  font-size: 0.9rem;
  margin: 0;
  min-height: 0;
  line-height: 1.55;
}
.voucher-status:empty { display: none; }
.voucher-status--success {
  color: #2F342E;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(111, 132, 107, 0.35);
  font-size: 0.95rem;
}
.voucher-status--success strong { color: #4A5C47; font-weight: 600; }
.voucher-status--error {
  color: #8E3A21;
  padding: 0.65rem 0.9rem;
  background: rgba(224, 122, 95, 0.1);
  border: 1px solid rgba(224, 122, 95, 0.25);
  border-radius: 12px;
}
.voucher-status--info { color: #6F846B; }

/* Buton "Intra in Nativus" — vizibil doar dupa activare */
.enter-app-btn {
  display: none;
  text-align: center;
  text-decoration: none;
  margin: 0;
  box-sizing: border-box;
}
.enter-app-btn.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Cand voucherul e activat, ascundem input-ul si butonul Aplica */
.voucher-section.is-redeemed .voucher-row { display: none; }
.voucher-section.is-redeemed .voucher-section__hint { display: none; }
.voucher-section.is-redeemed .voucher-section__summary { cursor: default; }

@media (max-width: 520px) {
  .voucher-row { flex-direction: column; gap: 0.6rem; }
  .voucher-row input { width: 100%; }
  .btn-voucher {
    width: 100%;
    padding: 0.85rem 1rem;
  }
  .btn-primary--large {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .recurring-note { font-size: 0.8rem; padding: 0 0.25rem; }
  .legal-note { padding: 0 0.25rem; }
  .voucher-section__summary { padding: 0.9rem 1rem; font-size: 0.9rem; }
  .voucher-section__body { padding: 0 1rem 1rem; }
}

.form-error {
  background: rgba(224, 122, 95, 0.1);
  color: #8E3A21;
  border: 1px solid rgba(224, 122, 95, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin: 0;
}

.btn-primary--large {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
}
.btn-primary--large[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.legal-note {
  font-size: 0.8rem;
  color: #6F846B;
  line-height: 1.5;
  margin: 1rem 0 0;
}
.legal-note a { color: #E07A5F; text-decoration: underline; }

/* Success page */
.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  color: #4A5C47;
  margin: 0 auto;
}
.success-check svg { width: 100%; height: 100%; }

.success-email-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(74, 92, 71, 0.15);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 auto 2rem;
}
.success-email-label { font-size: 0.78rem; color: #6F846B; text-transform: uppercase; letter-spacing: 0.1em; }
.success-email-value { font-family: 'Courier New', monospace; font-weight: 600; color: #2F342E; font-size: 1.05rem; word-break: break-all; }

.success-steps { text-align: left; max-width: 460px; margin: 2rem auto 0; }
.success-steps-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: #4A5C47; margin-bottom: 0.75rem; font-weight: 500; }
.success-steps ol { padding-left: 1.25rem; color: #4A5C47; line-height: 1.7; }
.success-steps ol li { margin-bottom: 0.6rem; }

.store-buttons--centered { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.store-btn--large { padding: 0.9rem 1.4rem; }
