/* ══════════════════════════════════════════════════════════════════════════
   KBUD 2026 Online Kayıt Formu — V2 Stil Dosyası (kbud2026.org Entegrasyonu)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Ana site renkleri */
  --kbud-navy:    #1e3060;
  --kbud-blue:    #2d4fa1;
  --kbud-accent:  #3561c0;
  --kbud-dark:    #142040;
  --kbud-footer:  #152244;
  --kbud-btn:     #2d4fa1;

  /* Form renkleri */
  --brand-dark:   #0a0f1e;
  --brand-navy:   #0f1f3d;
  --brand-blue:   #1e3a8a;
  --brand-accent: #2563eb;
  --brand-light:  #3b82f6;

  --success:  #059669;
  --warning:  #f59e0b;
  --danger:   #dc2626;

  --bg-primary:   #f1f5f9;
  --bg-card:      #ffffff;
  --bg-elevated:  #f8fafc;
  --border-color: #cbd5e1;
  --border-focus: #2563eb;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #64748b;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);

  --font-primary: 'Inter', sans-serif;
  --font-display: 'Lexend', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-primary); background: var(--bg-primary); color: var(--text-primary); line-height: 1.5; font-size: 15px; }

/* ══════════════════════════════════════════════════════════════════════════
   HEADER — kbud2026.org tasarımına uygun
   ══════════════════════════════════════════════════════════════════════════ */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8ecf0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo-link img {
  height: 52px;
  width: auto;
}

/* Ana Navigasyon */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  background: #f0f4ff;
  color: var(--kbud-blue);
}

.nav-link.active {
  background: #e8eeff;
  color: var(--kbud-blue);
  font-weight: 600;
}

/* Dropdown oku */
.nav-link .chevron {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdown Menü */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px;
  min-width: 220px;
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s;
}

.dropdown-link:hover {
  background: #f0f4ff;
  color: var(--kbud-blue);
}

/* Kayıt Formu Aktif Göstergesi */
.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--kbud-btn);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-left: 8px;
}

.nav-badge .dot {
  width: 7px;
  height: 7px;
  background: #7ee8a2;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #2d3748;
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-nav.open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-toggle { display: block; }
  .header-top { flex-wrap: wrap; }
  .nav-dropdown { position: static; box-shadow: none; border: none; background: #f8fafc; }
  .nav-item:hover .nav-dropdown { display: none; }
  .nav-item.open .nav-dropdown { display: block; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */

.main-layout {
  max-width: 1000px; margin: 32px auto; display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 0 24px; align-items: start;
}
@media(max-width:800px){ .main-layout { grid-template-columns: 1fr; } }

.form-container { display: flex; flex-direction: column; gap: 24px; }

/* ── Form Section ─────────────────────────────────────────────────────── */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.section-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--brand-blue); margin-bottom: 8px; }
.section-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; }

/* ── Form Controls ────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:500px){ .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select {
  padding: 12px 14px; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); font-family: var(--font-primary); font-size: 14px; background: var(--bg-elevated); width: 100%; transition: .2s;
}
input:focus, select:focus { border-color: var(--border-focus); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* ── Services ─────────────────────────────────────────────────────────── */
.service-box {
  background: var(--bg-elevated); border: 1.5px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px;
}
.service-label { font-size: 15px; font-weight: 600; color: var(--text-primary); display: block; margin-bottom: 10px; }
.service-select { font-size: 14px; padding: 12px 14px; border-color: var(--border-color); background: var(--bg-elevated); cursor: pointer; border-radius: var(--radius-sm); border-width: 1.5px; transition: .2s; width: 100%; }
.price-preview-inline { text-align: right; margin-top: 8px; font-size: 14px; color: var(--brand-blue); }
.price-preview-inline strong { font-family: var(--font-display); font-size: 18px; color: var(--brand-accent); }

/* ── Dates & Panels ───────────────────────────────────────────────────── */
.dates-panel, .external-panel { margin-top: 16px; padding: 16px; background: #fff; border-radius: var(--radius-sm); border: 1px dashed var(--border-color); }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nights-display-inline { margin-top: 12px; font-size: 14px; background: #f0fdf4; color: #166534; padding: 8px 12px; border-radius: 4px; border: 1px solid #bbf7d0; text-align: center; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }

/* ── Search Reservation ───────────────────────────────────────────────── */
.search-section { background: linear-gradient(to right, #eff6ff, #f8fafc); border-color: #bfdbfe; }
.search-header h3 { font-size: 16px; color: var(--brand-blue); margin-bottom: 4px; }
.search-form { display: flex; gap: 10px; margin-top: 16px; }
.search-form input { flex: 1; }
@media(max-width:600px){ .search-form { flex-direction: column; } }
.info-banner { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* ── Sponsor Box ──────────────────────────────────────────────────────── */
.sponsor-box { margin-top: 24px; padding: 20px; border: 1.5px dashed var(--border-color); border-radius: var(--radius-md); background: #fff; }

/* ── Cart Sidebar ─────────────────────────────────────────────────────── */
.cart-sidebar { position: sticky; top: 88px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 24px; }
.sidebar-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-bottom: 16px; }
.mini-cart { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mini-cart-item { padding: 12px; background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; }
.mini-cart-item.existing-item { background: #f1f5f9; border-style: dashed; opacity: 0.8; }
.mini-item-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.mini-item-name { font-size: 13px; font-weight: 500; }
.mini-item-price { font-weight: 700; color: var(--brand-accent); }
.sidebar-total { border-top: 1px solid var(--border-color); padding-top: 16px; }
.total-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.total-row.grand { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--border-color); }
.total-row.grand span:last-child { color: var(--brand-accent); }

/* ── Agreement ────────────────────────────────────────────────────────── */
.agreement-section { margin-bottom: 24px; }
.agreement-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.agreement-text { font-size: 14px; color: var(--text-secondary); }
.cancellation-info { margin-top: 8px; padding: 12px; background: #f8fafc; border-radius: var(--radius-sm); font-size: 13px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 12px 20px; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--brand-accent); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-success { background: var(--success); color: #fff; font-size: 16px; padding: 16px; }
.btn-success:hover:not(:disabled) { background: #047857; }
.btn:disabled { background: #94a3b8; cursor: not-allowed; }
.w-full { width: 100%; }

/* ── Modal / Overlay ──────────────────────────────────────────────────── */
.success-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.success-content { background: #fff; padding: 40px; border-radius: var(--radius-lg); text-align: center; max-width: 400px; width: 100%; box-shadow: var(--shadow-lg); }
.success-content h2 { color: var(--success); margin-bottom: 8px; }
.success-ref { background: var(--bg-elevated); padding: 12px; margin: 16px 0; border: 1px solid var(--border-color); font-family: monospace; font-size: 18px; font-weight: 700; color: var(--brand-accent); letter-spacing: 1px; }

/* ── Toasts & Spinners ────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--brand-dark); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; box-shadow: var(--shadow-md); }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.8); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border-color); border-top-color: var(--brand-accent); border-radius: 50%; animation: spin 1s infinite linear; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER — kbud2026.org tasarımına uygun
   ══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--kbud-footer);
  color: #a8b8d8;
  font-size: 14px;
  margin-top: 60px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Col 1 — Logo + İletişim */
.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo-link {
  display: inline-block;
  margin-bottom: 4px;
}

.footer-logo-link img {
  height: 60px;
  width: auto;
  opacity: 0.95;
}

.footer-org-name {
  font-size: 13px;
  font-weight: 700;
  color: #c8d6f0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-top: -4px;
}

.footer-divider {
  width: 40px;
  height: 2px;
  background: var(--kbud-accent);
  border-radius: 2px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a8b8d8;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item:hover { color: #fff; }

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--kbud-accent);
  opacity: 0.8;
}

/* Sütun başlıkları */
.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Footer linkleri */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: #a8b8d8;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-link.active {
  color: #7eb8f7;
  font-weight: 600;
}

/* İkinci grup başlığı (Ödül ve Destek) */
.footer-subgroup {
  margin-top: 24px;
}

.footer-subgroup-title {
  font-size: 14px;
  font-weight: 700;
  color: #d0ddf5;
  margin-bottom: 12px;
}

/* Alt copyright bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copyright {
  font-size: 12.5px;
  color: #7a90b0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #a8b8d8;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-btn:hover {
  background: var(--kbud-accent);
  color: #fff;
}

@media(max-width: 960px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media(max-width: 580px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
