/* =====================================================================
   2026 PTT garage-web tarzı özel stiller
   Bootstrap 5.3 üstüne yazılan eklemeler.
   Renkler PTT garage-web CSS'inden alındı.
   ===================================================================== */

:root {
  --brand-primary:   #271dd4;   /* primary buton, aktif sekme */
  --brand-active:    #2c21ed;   /* focus / hover parlak */
  --brand-danger:    #ef4444;   /* Sorgula butonu */
  --brand-danger-h:  #dc2626;   /* Sorgula hover */
  --brand-success:   #10b981;
  --brand-warning:   #f59e0b;

  --surface:         #ffffff;   /* kart arka planı */
  --surface-muted:   #f5f5f5;   /* input arka planı */
  --border-soft:     #e5e7eb;

  --text-strong:     #212324;   /* başlık */
  --text-body:       #1f2937;   /* normal metin */
  --text-muted:      #6b7280;

  --shadow-card:     0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover:    0 8px 32px rgba(39, 29, 212, 0.15);
}

/* ---- Temel ---- */
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--text-body);
  background: #fafafa;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  color: var(--text-strong);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}
a:hover { color: var(--brand-active); }

/* =====================================================================
   ÜST BAR (topbar)
   ===================================================================== */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.6rem 0;
  font-size: 0.9rem;
}
.topbar a {
  color: var(--text-body);
  margin-right: 1.25rem;
  font-weight: 500;
}
.topbar a:hover { color: var(--brand-primary); }

.topbar-btn {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  margin-left: 0.5rem;
}
.topbar-btn.login {
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.topbar-btn.login:hover {
  background: var(--brand-primary);
  color: #fff;
}
.topbar-btn.register {
  background: var(--brand-primary);
  color: #fff;
  border: 1.5px solid var(--brand-primary);
}
.topbar-btn.register:hover {
  background: var(--brand-active);
  border-color: var(--brand-active);
}

/* =====================================================================
   SERVİS KART MENÜSÜ (servis tabs)
   ===================================================================== */
.service-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0 0.5rem;
}
.service-card {
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  min-width: 130px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.service-card img {
  width: 44px;
  height: 44px;
}
.service-card .label {
  font-size: 0.88rem;
  font-weight: 600;
}
.service-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--brand-primary);
}
.service-card.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}
/* Pasif/devre dışı servis kartları (tıklanamaz) */
.service-card-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.5);
}
.service-card-disabled:hover {
  border-color: var(--border-soft);
  transform: none;
  box-shadow: none;
  color: var(--text-body);
}
.service-card.active img {
  /* aktif kartta ikonu beyaz yapmak için filtre */
  filter: brightness(0) invert(1);
}

/* =====================================================================
   ANA FORM KARTI
   ===================================================================== */
.query-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  max-width: 620px;
  margin: 1.5rem auto 2rem;
}
.query-card h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.query-card .lead-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* ---- Toggle (Plaka / Şasi) ---- */
.type-toggle {
  display: flex;
  gap: 0.5rem;
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 0.35rem;
  margin-bottom: 1rem;
}
.type-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 1rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.type-toggle button.active {
  background: var(--surface);
  color: var(--brand-active);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ---- Input ---- */
.form-control-lg-custom {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-size: 1.05rem;
  background: var(--surface-muted);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--text-strong);
  transition: all 0.15s ease;
}
.form-control-lg-custom:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-active);
  box-shadow: 0 0 0 4px rgba(44, 33, 237, 0.12);
}
.form-control-lg-custom.is-invalid {
  border-color: var(--brand-danger);
  background: #fef2f2;
}
.field-error {
  color: var(--brand-danger);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  display: none;
}
.field-error.visible { display: block; }

/* Form başarı/bilgi bildirimi (geçici, sıradaki adımda sonuç sayfasına gidecek) */
.form-notice {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-success);
  display: none;
}
.form-notice.visible { display: block; }

/* ---- Sorgula butonu ---- */
.btn-sorgula {
  width: 100%;
  background: var(--brand-danger);
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-sorgula:hover { background: var(--brand-danger-h); }
.btn-sorgula:active { transform: scale(0.99); }

/* ---- Ücret satırı ---- */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-soft);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.price-row .amount {
  color: var(--brand-danger);
  font-weight: 700;
  font-size: 1.05rem;
}

/* =====================================================================
   SIKÇA SORULAN SORULAR (akordion)
   ===================================================================== */
.faq-section {
  max-width: 760px;
  margin: 0 auto 3rem;
}
.faq-section h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item .faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item .faq-q:hover { color: var(--brand-primary); }
.faq-item .faq-q .chev {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-item .faq-a {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.93rem;
}
.faq-item.open .faq-a { display: block; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer a {
  color: #d1d5db;
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}
.site-footer a:hover { color: #fff; }
.site-footer h6 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #9ca3af;
}
.payment-logos img {
  height: 28px;
  margin-right: 0.5rem;
  opacity: 0.9;
}

/* ---- Mobil uyum ---- */
@media (max-width: 575.98px) {
  .query-card { padding: 1.5rem; border-radius: 14px; }
  .query-card h1 { font-size: 1.5rem; }
  .service-card { min-width: calc(50% - 0.5rem); padding: 0.75rem; }
  .service-card img { width: 36px; height: 36px; }
  .topbar a { margin-right: 0.6rem; }
}

/* =====================================================================
   ÖDEME SAYFASI
   ===================================================================== */

/* Sorgu özeti kutusu */
.summary-box {
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.93rem;
}
.summary-row span { color: var(--text-muted); }
.summary-row strong { color: var(--text-strong); }
.summary-row.total {
  border-top: 1px dashed var(--border-soft);
  margin-top: 0.3rem;
  padding-top: 0.75rem;
}
.summary-row.total .amount {
  color: var(--brand-danger);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Genel hata uyarısı */
.alert-general {
  background: #fef2f2;
  color: var(--brand-danger);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Form alan grubu */
.field-group {
  margin-bottom: 1.1rem;
}
.field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 0.4rem;
}
.field-group select.form-control-lg-custom {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* İki yan yana alan (SKT + CVC) */
.row-field {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.expiry-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.expiry-row select { flex: 1; }
.expiry-sep {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Kart logoları */
.card-logos {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0.5rem 0 1.25rem;
}

/* Güvenli ödeme notu */
.secure-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.85rem;
}

@media (max-width: 575.98px) {
  .row-field { grid-template-columns: 1fr; }
}

/* =====================================================================
   BEKLEME SAYFASI (spinner)
   ===================================================================== */
.waiting-wrap {
  text-align: center;
  padding: 4rem 1rem;
}
.waiting-wrap .spinner {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.75rem;
  border: 6px solid var(--surface-muted);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-wrap h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.waiting-wrap p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.waiting-track {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.1rem;
  background: var(--surface-muted);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}
