/* yenile.html — sayfaya özgü stiller. Genel buton/kart/form stilleri
   styles.css'te tanımlı. Burada sadece bu sayfanın akışına özgü olanlar:
     - step-back link
     - account-banner (grace warning, etc.)
     - method-choice (kod / kart yöntem kartları)
     - package-grid (4 paket)
     - preview-box (canlı hesaplama özeti)
     - waiver-row (cayma hakkı checkbox + link)
     - error-card (grace expired durumu) */

/* -------- Step back ------------------------------------------------------ */
.step-back {
  margin-bottom: 16px;
}

.link-btn {
  background: none;
  border: 0;
  color: #0071e3;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}
.link-btn:hover {
  text-decoration: underline;
}

/* -------- Section title -------------------------------------------------- */
.section-title {
  margin: 32px 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
}

/* -------- Account banner (durum bildirisi: aktif/süresi geçmiş) ---------- */
.account-banner {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.account-banner.banner-active {
  background: #e7f5ee;
  border: 1px solid #b2e0c5;
  color: #1e7e34;
}
.account-banner.banner-expired {
  background: #fffbea;
  border: 1px solid #ffe89a;
  color: #806600;
}

/* -------- Yöntem seçimi (kod / kart) ------------------------------------ */
.method-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .method-choice {
    grid-template-columns: 1fr;
  }
}

.method-btn {
  background: #ffffff;
  border: 1.5px solid #d2d2d7;
  border-radius: 12px;
  padding: 20px 18px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, transform 0.05s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.method-btn:hover {
  border-color: #0071e3;
}
.method-btn:active {
  transform: scale(0.99);
}
.method-icon {
  font-size: 22px;
}
.method-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
}
.method-desc {
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.4;
}

/* -------- Paket grid (4 paket: 1ay/3ay/6ay/12ay) ------------------------ */
.package-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 720px) {
  .package-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.package-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #d2d2d7;
  border-radius: 12px;
  padding: 20px 16px 18px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.15s, transform 0.05s, box-shadow 0.15s;
}
.package-card:hover {
  border-color: #0071e3;
}
.package-card[aria-pressed="true"] {
  border-color: #0071e3;
  background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}
.package-card:active {
  transform: scale(0.99);
}
.package-label {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}
.package-days {
  font-size: 12px;
  color: #86868b;
  margin-bottom: 12px;
}
.package-price {
  font-size: 22px;
  font-weight: 600;
  color: #1d1d1f;
}
.package-price-suffix {
  font-size: 13px;
  font-weight: 400;
  color: #86868b;
}
.package-per-day {
  font-size: 12px;
  color: #86868b;
  margin-top: 4px;
}
.package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0071e3;
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 980px;
  white-space: nowrap;
}

/* -------- Preview box ---------------------------------------------------- */
.preview-box {
  background: #f5f5f7;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 0;
  color: #1d1d1f;
}
.preview-box.preview-error {
  background: #fde7e9;
  border: 1px solid #f5b5b8;
  color: #a32218;
}
.preview-box .preview-key {
  color: #6e6e73;
  font-size: 12px;
}
.preview-box .preview-value {
  font-weight: 600;
}

/* -------- Cayma hakkı checkbox + label ----------------------------------- */
.waiver-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  font-size: 13px;
  color: #424245;
  line-height: 1.5;
  cursor: pointer;
}
.waiver-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #0071e3;
  cursor: pointer;
}
.waiver-row a {
  color: #0071e3;
  text-decoration: underline;
}

/* -------- Disabled primary button: visual cue ---------------------------- */
.primary-btn:disabled {
  background: #d2d2d7;
  color: #6e6e73;
  cursor: not-allowed;
}

/* -------- Error card (grace expired) ------------------------------------ */
.error-card {
  text-align: center;
}
.warning-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ff9500;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  margin: 0 auto 16px;
}

.method-btn:disabled { opacity: .55; cursor: not-allowed; }
