/* === OtoFiyatla marka kimligi — temiz, organize === */

:root {
    --ot-primary: #1d4ed8;
    --ot-primary-dark: #1e3a8a;
    --ot-dark: #1e293b;
    --ot-bg: #ffffff;
    --ot-bg-alt: #f8fafc;
    --ot-text: #1e293b;
    --ot-text-muted: #64748b;
    --ot-border: #e2e8f0;
    --ot-accent: #f59e0b;
    --ot-success: #10b981;
    --ot-shadow: 0 4px 14px rgba(30, 41, 59, 0.08);
    --ot-shadow-lg: 0 10px 30px rgba(30, 41, 59, 0.12);
    --ot-radius: 12px;
    --ot-radius-sm: 8px;
    --ot-radius-lg: 16px;
    --bs-primary: #1d4ed8;
    --bs-primary-rgb: 29, 78, 216;
    --bs-blue: #1d4ed8;
}

html, body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

body { color: var(--ot-text); background: var(--ot-bg); }
h1, h2, h3, h4, h5, h6 { color: var(--ot-dark); font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--ot-primary); }
a:hover { color: var(--ot-primary-dark); }

.btn-primary { background: var(--ot-primary); border-color: var(--ot-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--ot-primary-dark); border-color: var(--ot-primary-dark); color: #fff; }

/* === HEADER kompakt === */
.header { padding: 6px 0 !important; border-bottom: 1px solid var(--ot-border); }
.header .navbar, .header .navigation { padding: 0 !important; }
.header .logo img,
.header img.logo,
.header .header-logo img {
    max-height: 44px !important;
    width: auto !important;
}
.header .nav-link, .header .menu-item a { padding: 8px 14px !important; font-size: 15px; }

/* === HERO BANNER (container icinde, natural aspect, form alt overlay) === */
.ot-home-hero {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    background: #fff;
    line-height: 0;
}
.ot-home-hero .hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--ot-radius-lg);
    box-shadow: var(--ot-shadow);
}

/* === FORM (banner alt overlay) === */
.ot-form-overlay {
    position: absolute;
    left: 50%;
    bottom: -50px;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 880px;
    z-index: 3;
}
.ot-form-card {
    background: #fff;
    padding: 24px 28px 22px;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(30,41,59,0.22), 0 6px 18px rgba(30,41,59,0.08);
    border: 1px solid rgba(255,255,255,0.6);
}
.ot-form-title {
    font-size: clamp(19px, 2.2vw, 24px);
    color: var(--ot-dark);
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.25;
}
.ot-form-card .form-select,
.ot-form-card .btn {
    height: 54px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    padding: 0 16px;
}
.ot-form-card .form-select {
    color: var(--ot-text);
    border: 1.5px solid var(--ot-border);
    background-color: #fafbfc;
    transition: all .2s;
    cursor: pointer;
}
.ot-form-card .form-select:hover { border-color: var(--ot-primary); background-color: #fff; }
.ot-form-card .form-select:focus {
    border-color: var(--ot-primary);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.15);
    background-color: #fff;
    outline: none;
}
.ot-form-card .btn-hero {
    background: linear-gradient(135deg, var(--ot-primary) 0%, var(--ot-primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border: 0;
    box-shadow: 0 4px 14px rgba(29,78,216,0.32);
    transition: all .25s;
    letter-spacing: 0.2px;
}
.ot-form-card .btn-hero:hover {
    background: linear-gradient(135deg, var(--ot-primary-dark) 0%, var(--ot-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(29,78,216,0.45);
}


/* === Form grid (3 esit kolon) === */
.ot-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 12px;
    align-items: stretch;
}
.ot-form-grid .form-select,
.ot-form-grid .btn {
    width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    .ot-form-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* === SECTION === */
.ot-section { padding: 64px 0; }
.ot-section-alt { background: var(--ot-bg-alt); }

/* === 3 ADIM KARTLARI === */
.ot-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ot-step-card {
    background: #fff;
    border: 1px solid var(--ot-border);
    border-radius: var(--ot-radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all .25s ease;
}
.ot-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ot-shadow-lg);
    border-color: var(--ot-primary);
}
.ot-step-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ot-primary);
    color: #fff;
    font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.ot-step-card h4 { font-size: 18px; margin-bottom: 12px; color: var(--ot-dark); }
.ot-step-card p { color: var(--ot-text-muted); font-size: 15px; line-height: 1.5; margin: 0; }

/* === NEDEN BIZ === */
.ot-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ot-feature-item {
    padding: 28px 24px;
    background: var(--ot-bg-alt);
    border-radius: var(--ot-radius);
    border-left: 4px solid var(--ot-primary);
}
.ot-feature-item h3 { font-size: 18px; margin-bottom: 10px; color: var(--ot-dark); }
.ot-feature-item p { color: var(--ot-text-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* === FINAL CTA === */
.ot-cta-band {
    background: linear-gradient(135deg, var(--ot-primary) 0%, var(--ot-primary-dark) 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
    border-radius: var(--ot-radius-lg);
    margin: 32px 0;
}
.ot-cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; }
.ot-cta-band p { color: #e2e8f0; font-size: 17px; margin-bottom: 28px; }
.ot-cta-band .cta-btn-light {
    background: #fff;
    color: var(--ot-primary);
    padding: 14px 36px;
    border-radius: var(--ot-radius);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all .2s;
}
.ot-cta-band .cta-btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* === WhatsApp floating ikonu gizle (OF'ta WP yok) === */
.whatsapp-float,
.wa-float,
.floating-whatsapp,
a[href*="whatsapp.com"][class*="float"],
.ws-icon-wrapper { display: none !important; }

/* ==================== TABLET (max 992) ==================== */
@media (max-width: 992px) {
    .ot-form-overlay { bottom: 3%; width: calc(100% - 56px); }
}

/* ==================== MOBILE (max 768) ==================== */
@media (max-width: 768px) {
    .header .logo img { max-height: 38px !important; }
    .header { padding: 4px 0 !important; }

    .ot-home-hero { padding: 0; margin: 0; max-width: 100%; }
    .ot-home-hero .hero-banner-img { border-radius: 0; box-shadow: none; }

    .ot-form-overlay {
        position: static;
        transform: none;
        left: auto;
        bottom: auto;
        width: auto;
        max-width: none;
        margin: 16px 16px 8px;
    }
    .ot-form-card {
    background: #fff;
    padding: 24px 28px 22px;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(30,41,59,0.22), 0 6px 18px rgba(30,41,59,0.08);
    border: 1px solid rgba(255,255,255,0.6);
}
    .ot-form-title {
    font-size: clamp(19px, 2.2vw, 24px);
    color: var(--ot-dark);
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.25;
}
    .ot-form-card .form-select, .ot-form-card .btn { height: 50px; font-size: 14.5px; }

    .ot-steps, .ot-features { grid-template-columns: 1fr; gap: 16px; }
    .ot-section { padding: 40px 0; }
    .ot-cta-band { padding: 40px 20px; border-radius: var(--ot-radius); margin: 24px 14px; }
}


/* === Marka custom dropdown === */
.ot-brand-dd { position: relative; }
.ot-bd-trigger {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1.5px solid var(--ot-border);
    border-radius: 10px;
    background: #fafbfc;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: var(--ot-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all .2s;
}
.ot-bd-trigger:hover { border-color: var(--ot-primary); background: #fff; }
.ot-brand-dd.is-open .ot-bd-trigger {
    border-color: var(--ot-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29,78,216,0.15);
}
.ot-bd-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 10px; }
.ot-bd-label img { width: 22px; height: 22px; object-fit: contain; }
.ot-bd-arrow { transition: transform .2s; color: var(--ot-text-muted); flex-shrink: 0; }
.ot-brand-dd.is-open .ot-bd-arrow { transform: rotate(180deg); color: var(--ot-primary); }

.ot-bd-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    transform-origin: bottom center;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--ot-primary);
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(30,41,59,0.18);
    z-index: 100;
    overflow: hidden;
}
.ot-bd-search-wrap { padding: 10px; border-bottom: 1px solid var(--ot-bg-alt); }
.ot-bd-search {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--ot-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--ot-bg-alt);
    outline: none;
}
.ot-bd-search:focus { border-color: var(--ot-primary); background: #fff; }

.ot-bd-list {
    list-style: none;
    margin: 0;
    padding: 4px;
    max-height: 320px;
    overflow-y: auto;
}
.ot-bd-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .12s;
    font-size: 14.5px;
    color: var(--ot-text);
}
.ot-bd-list li:hover, .ot-bd-list li.is-active {
    background: rgba(29,78,216,0.08);
    color: var(--ot-primary);
}
.ot-bd-list li img {
    width: 28px; height: 28px; object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
    border: 1px solid var(--ot-bg-alt);
    flex-shrink: 0;
}
.ot-bd-empty { padding: 16px; text-align: center; color: var(--ot-text-muted); font-size: 14px; }

@media (max-width: 768px) {
    .ot-bd-trigger { height: 50px; }
    .ot-bd-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; max-height: 70vh; }
    .ot-bd-list { max-height: calc(70vh - 80px); }
}

/* === Marka renk override — sayfalardaki yesil/turuncu butonlari ot-primary'e cevir === */
.badge.bg-success, .badge-success,
.btn-success, .bg-success {
    background: var(--ot-primary) !important;
    color: #fff !important;
    border-color: var(--ot-primary) !important;
}
.text-success { color: var(--ot-primary) !important; }

/* Yesil ikon arka planlari (iletisim kartlari) */
.icon-bg-success, .iletisim-icon.bg-success,
.contact-icon.success {
    background: var(--ot-primary) !important;
}

/* Iletisim sayfasi yesil daire ikonlar — eger inline style varsa */
.contact-info-card .icon,
.contact-card .icon-wrap,
[class*="contact"][class*="success"],
[class*="iletisim"][class*="success"] { background: var(--ot-primary) !important; color: #fff !important; }

/* Giris-yap yesil GIRIS YAP butonu */
button.btn-success, .giris-btn, .login-submit { background: var(--ot-primary) !important; color: #fff !important; }

/* reCAPTCHA hata yazisi gizle (gecersiz site key olunca cikan kirmizi metin) */
.g-recaptcha[data-sitekey=""],
iframe[src*="recaptcha"][src*=""] { display: none; }
.recaptcha-error,
[class*="recaptcha"] [style*="color:red"],
[class*="recaptcha"] [style*="color: red"] { display: none !important; }

/* Whatsapp iletisim karti gizle (OF'ta WP yok) */
.contact-whatsapp,
.iletisim-whatsapp,
[class*="contact"][class*="whatsapp"],
[class*="iletisim"][class*="whatsapp"],
.contact-card:has(a[href*="wa.me"]),
.iletisim-card:has(a[href*="wa.me"]) { display: none !important; }

/* === Sozlesme/legal sayfalari === */
.ot-legal-content {
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    padding: 36px 32px;
    border-radius: var(--ot-radius-lg);
    border: 1px solid var(--ot-border);
}
.ot-legal-content h2 { margin: 28px 0 12px; font-size: 20px; }
.ot-legal-content p { margin-bottom: 14px; }
@media (max-width: 768px) {
    .ot-legal-content { padding: 24px 18px; }
}

/* === Form GÖNDER butonu (iletisim, konsinye, filo-sat) yesilden mavi'ye === */
.form-submit-btn,
button.form-submit-btn,
.btn.form-submit-btn,
button[class*="submit"][class*="btn"]:not(.btn-secondary) {
    background: var(--ot-primary) !important;
    background: linear-gradient(135deg, var(--ot-primary) 0%, var(--ot-primary-dark) 100%) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 14px 24px !important;
    font-weight: 700 !important;
    transition: all .25s !important;
}
.form-submit-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(29,78,216,0.35) !important; }

/* === KVKK + diger yesil linkleri mavi yap === */
.kvkk-link,
a.kvkk-link,
.contact-social-link,
.text-success,
a.text-success { color: var(--ot-primary) !important; }
.kvkk-link:hover, a.kvkk-link:hover { color: var(--ot-primary-dark) !important; }

/* iletisim icon arka plan yesil -> mavi */
.contact-info-card .contact-icon,
.contact-info-card i.fas,
.contact-icon.green,
.contact-icon[style*="green"] { background: var(--ot-primary) !important; color: #fff !important; }
.contact-info-card .contact-icon { 
    width: 44px; height: 44px; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

/* === Hakkimizda/musterilerimiz yesil badge -> mavi === */
.about-badge,
.customers-badge,
.hero-badge,
.section-badge,
[class*="-badge"]:not(.btn) {
    background: var(--ot-primary) !important;
    color: #fff !important;
    border: 0 !important;
}

/* iletisim col-lg-4 sağ panel her zaman gözüksün */
.contact-info-card { background: #fff; border: 1px solid var(--ot-border); padding: 16px 18px; border-radius: 12px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; transition: all .2s; }
.contact-info-card:hover { box-shadow: var(--ot-shadow); border-color: var(--ot-primary); }
.contact-info-card .contact-info-content { flex: 1; }
.contact-info-card .contact-label { font-size: 12px; color: var(--ot-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-info-card .contact-value { font-size: 15px; font-weight: 600; color: var(--ot-dark); text-decoration: none; word-break: break-word; }
.contact-info-card .contact-value:hover { color: var(--ot-primary); }
