/* ===== Değişkenler ===== */
:root {
  --color-primary: #0f62fe;
  --color-primary-hover: #0353e9;
  --color-primary-soft: rgba(15, 98, 254, 0.08);
  --color-text: #161616;
  --color-text-muted: #525252;
  --color-border: #e0e0e0;
  --color-border-focus: #0f62fe;
  --color-bg-input: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-page: #f4f4f4;
  --radius-input: 10px;
  --radius-card: 16px;
  --shadow-input: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-input-focus: 0 0 0 3px var(--color-primary-soft);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg-page);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: var(--color-bg-card); box-shadow: 0 1px 0 var(--color-border); padding: 1rem 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { display: block; }
nav a { color: var(--color-primary); text-decoration: none; font-weight: 500; margin-left: 1.5rem; }
nav a:hover { text-decoration: underline; }

/* Main */
.main { min-height: calc(100vh - 140px); padding: 2rem 0; }

/* Hero */
.hero { text-align: center; padding: 4rem 2rem; }
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero .subtitle { color: var(--color-text-muted); margin-bottom: 2rem; }
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius-input);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,98,254,0.3); }
.btn-block { width: 100%; text-align: center; }

/* Trafik Flow */
.trafik-flow { padding: 2rem 0; }
.flow-container { max-width: 1280px; margin: 0 auto; }
.flow-layout { display: grid; grid-template-columns: 1fr 520px; gap: 3rem; align-items: start; }
@media (max-width: 1000px) { .flow-layout { grid-template-columns: 1fr; } }

.flow-info h1 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--color-text); }
.benefits { list-style: none; padding: 0; margin: 0; }
.benefits li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; color: var(--color-text-muted); }
.benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary); font-weight: bold; }

.step-indicator { display: flex; gap: 0.5rem; margin-top: 2rem; }
.step-indicator .step {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e8e8e8;
  color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s ease;
}
.step-indicator .step.active { background: var(--color-primary); color: #fff; }

.flow-form-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  min-width: 0;
  border: 1px solid rgba(0,0,0,0.04);
}
.flow-form-card .form-step { min-width: 100%; }

/* Form Steps */
.form-step { display: none; }
.form-step.active { display: block; }
.form-step h3 { margin-top: 0; margin-bottom: 1.25rem; font-weight: 600; }
.form-step h4 { font-size: 0.8rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.step-summary { background: #fafafa; padding: 1rem; border-radius: var(--radius-input); font-size: 0.9rem; margin-bottom: 1.25rem; color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* ===== Form Input Alanları ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg-input);
  color: var(--color-text);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-input);
}
.form-group input::placeholder { color: #a8a8a8; }
.form-group input:hover,
.form-group select:hover { border-color: #c4c4c4; }
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-input-focus);
}
.form-group input[type="date"] { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; font-size: 0.95rem; color: var(--color-text-muted); }
.toggle {
  width: 52px; height: 28px;
  appearance: none;
  background: #c4c4c4;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}
.toggle::before {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  top: 2px; left: 2px;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle:checked { background: var(--color-primary); }
.toggle:checked::before { transform: translateX(24px); }

.info-link { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 1rem; margin-bottom: 1.5rem; }
.info-link a { color: var(--color-primary); text-decoration: none; }
.info-link a:hover { text-decoration: underline; }
.info-icon { margin-right: 0.25rem; }

.form-section { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }

/* Teklif kartı */
#teklifListesi { min-height: 120px; }
.teklif-kart {
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 1.5rem;
  margin-bottom: 1rem;
  min-width: 100%;
  transition: all 0.2s ease;
}
.teklif-kart:hover { border-color: var(--color-primary); box-shadow: 0 4px 12px rgba(15,98,254,0.08); }
.teklif-kart .prim { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.teklif-kart .kur { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 4px; }
.teklif-kart .btn { margin-top: 1rem; padding: 12px 20px; font-size: 0.95rem; }

/* ===== Tom Select Özelleştirme ===== */
.ts-wrapper { width: 100% !important; }
.ts-wrapper.single .ts-control {
  min-height: 50px !important;
  height: auto !important;
  padding: 12px 44px 12px 16px !important;
  border: 1px solid var(--color-border) !important;
  background: var(--color-bg-input) !important;
  box-shadow: var(--shadow-input) !important;
  border-radius: var(--radius-input) !important;
  transition: all 0.2s ease !important;
}
.ts-wrapper.single .ts-control:hover { border-color: #c4c4c4 !important; }
.ts-wrapper.focus .ts-control,
.ts-wrapper.single.dropdown-active .ts-control {
  border-color: var(--color-border-focus) !important;
  box-shadow: var(--shadow-input-focus) !important;
}
.ts-wrapper .ts-control .item { font-size: 1rem; padding: 0 !important; }
.ts-wrapper .ts-control input { font-size: 1rem !important; }
.ts-wrapper.single .ts-control:after {
  border-color: var(--color-text-muted) transparent transparent transparent !important;
  border-width: 6px 5px 0 5px !important;
  right: 16px !important;
}
.ts-wrapper.single.dropdown-active .ts-control:after {
  border-color: transparent transparent var(--color-text-muted) transparent !important;
  border-width: 0 5px 6px 5px !important;
}
.ts-dropdown {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-input) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
  margin-top: 6px !important;
}
.ts-dropdown .option,
.ts-dropdown .optgroup-header { padding: 12px 16px !important; font-size: 0.95rem !important; }
.ts-dropdown .option.active,
.ts-dropdown .option.selected { background: var(--color-primary-soft) !important; color: var(--color-primary) !important; }
.ts-dropdown .option:hover { background: #f5f5f5 !important; }
.ts-dropdown .option.active:hover,
.ts-dropdown .option.selected:hover { background: var(--color-primary-soft) !important; }
.ts-dropdown .input-wrap input {
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin: 8px !important;
  font-size: 1rem !important;
}
.ts-dropdown .input-wrap input:focus { border-color: var(--color-primary) !important; outline: none !important; }
.ts-dropdown .no-results { padding: 12px 16px !important; color: var(--color-text-muted); }

/* Footer */
.footer { background: var(--color-bg-card); border-top: 1px solid var(--color-border); padding: 1rem 0; text-align: center; color: var(--color-text-muted); font-size: 0.9rem; }
