/* ============ HERA SAĞLIK — ÜYELİK / ÖDEME SAYFASI ============ */

.checkout-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.checkout-header .header-inner { height: 68px; }

.back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.back-link:hover { color: var(--ink); }

.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--muted);
}

.checkout {
  padding: 48px 0 80px;
  background: var(--bg-alt);
  min-height: 70vh;
}

.checkout-title { margin-bottom: 6px; }
.checkout-sub { margin-bottom: 36px; font-size: 1rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ---------- Sol sütun: adımlar ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.panel h2 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Plan seçimi */
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.plan-option { position: relative; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }

.plan-option label {
  display: block;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.plan-option input:checked + label {
  border-color: var(--primary);
  background: #F0FDF7;
}
.plan-option input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }

.plan-name { font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.plan-save {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
}
.plan-price { display: block; font-size: 1.5rem; font-weight: 800; margin-top: 8px; }
.plan-price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.plan-desc { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* Form alanları */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field input.error, .field textarea.error { border-color: #e0604c; }
.field .err-msg { display: none; color: #c0432f; font-size: 0.78rem; margin-top: 4px; }
.field input.error ~ .err-msg, .field textarea.error ~ .err-msg { display: block; }

/* Ödeme bölümü */
.pay-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: #1e4ed8;
}

.pay-methods { display: grid; gap: 12px; }

.pay-method { position: relative; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method label {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.pay-method input:checked + label { border-color: var(--primary); background: #F0FDF7; }
.kvkk-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--muted);
}
.kvkk-row input { margin-top: 3px; accent-color: var(--primary); }

/* ---------- Sağ sütun: sipariş özeti ---------- */
.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 24px;
}

.summary h2 { font-size: 1.1rem; margin-bottom: 20px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 9px 0;
  color: var(--ink-soft);
}
.summary-row span:last-child { font-weight: 600; color: var(--ink); }
.summary-row.free span:last-child { color: var(--primary-dark); }

.summary-total {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--line);
  margin-top: 12px;
  padding-top: 16px;
  font-weight: 800;
  font-size: 1.15rem;
}

.summary-note { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.summary .btn { margin-top: 20px; }

.summary-trust {
  list-style: none;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.summary-trust li {
  font-size: 0.84rem;
  color: var(--muted);
  padding: 4px 0;
}

/* Başarı ekranı */
.success-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 36px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #D1FAE5;
  color: var(--primary-dark);
  font-size: 2rem;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}
.success-box h2 { margin-bottom: 12px; }
.success-box .order-no {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 700;
  margin: 18px 0;
}
.success-box .btn { margin-top: 10px; }

.form-error-banner {
  display: none;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #b91c1c;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.form-error-banner.show { display: block; }

/* ---------- Duyarlı ---------- */
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 600px) {
  .plan-options, .form-grid { grid-template-columns: 1fr; }
  .panel, .summary { padding: 22px 18px; }
}
