﻿/* Ostim Volkswagen - 5 Form Stilleri, Sabit Kayan Form & Overlay */

/* Sabit Kayan Teklif Formu (Anasayfa & Urun Detay) */
.sabit-teklif-wrapper {
    position: fixed;
    right: -310px;
    top: 90px;
    width: 310px;
    background: #ffffff;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px 0 0 8px;
    z-index: 100000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    border: 1px solid #e0e0e0;
    border-right: none;
}

.sabit-teklif-wrapper.acik {
    right: 0;
}

/* Acma / Kapama Sabit Sekme Butonu */
.sabit-form-toggle-btn {
    position: absolute;
    left: -44px;
    top: 15px;
    width: 44px;
    padding: 12px 6px;
    background: #004085;
    color: #ffffff;
    text-align: center;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
    box-shadow: -3px 2px 10px rgba(0,0,0,0.15);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.sabit-form-toggle-btn i {
    font-size: 18px;
    margin-bottom: 4px;
    display: block;
    color: #ffc000;
}

.sabit-form-toggle-btn span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 1px;
}

/* Sabit Form Basligi */
.sabit-form-header {
    background: #004085;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 7px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sabit-form-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.sabit-form-header small {
    color: #ffc000;
    display: block;
    font-size: 11px;
}

.sabit-form-body {
    padding: 12px 14px;
    position: relative;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sabit-form-body .form-grup {
    margin-bottom: 7px;
}

.sabit-form-body input,
.sabit-form-body select,
.sabit-form-body textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    height: 36px;
}
.sabit-form-body textarea {
    height: 52px;
    resize: none;
}

.sabit-form-body input:focus,
.sabit-form-body select:focus,
.sabit-form-body textarea:focus {
    border-color: #004085;
    outline: none;
}

.sabit-form-body .btn-teklif-gonder {
    width: 100%;
    background: #ffc000;
    color: #000000;
    border: none;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.sabit-form-body .btn-teklif-gonder:hover {
    background: #e0a800;
}

/* Spinner & Yukleniyor Overlay Animasyonu */
.form-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    border-radius: 4px;
    text-align: center;
    padding-top: 30%;
    box-sizing: border-box;
}

.form-loading-overlay .spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #004085;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px auto;
}

.form-loading-overlay .loading-text {
    font-size: 13px;
    font-weight: 600;
    color: #004085;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Yerinde Mesaj Kutulari */
.form-mesaj-kutusu {
    display: none;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.form-mesaj-kutusu.mesaj-basarili {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-mesaj-kutusu.mesaj-hata {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Ana Sayfa Bilgi Al Formu */
.bilgi-al-section {
    background: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.bilgi-al-kutu {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: relative;
}

.bilgi-al-kutu h3 {
    color: #004085;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bilgi-al-kutu p {
    color: #666666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Footer Formu */
.footer-quick-form {
    position: relative;
    margin-top: 10px;
}

.footer-quick-form input,
.footer-quick-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
}

.footer-quick-form input::placeholder,
.footer-quick-form textarea::placeholder {
    color: #aaaaaa;
}

.footer-quick-form .btn-footer-gonder {
    background: #ffc000;
    color: #111111;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.footer-quick-form .btn-footer-gonder:hover {
    background: #e0a800;
}

/* Mobil Gorunum Uyarlamalari */
@media (max-width: 768px) {
    .sabit-teklif-wrapper {
    position: fixed;
    right: -310px;
    top: 90px;
    width: 310px;
    background: #ffffff;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px 0 0 8px;
    z-index: 100000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    border: 1px solid #e0e0e0;
    border-right: none;
}
}

/* KVKK Cerez Onay Paneli (Paket 4 Madde 2) */
.kvkk-cerez-paneli {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0b1a2d;
    color: #ffffff;
    padding: 15px 20px;
    z-index: 99999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
    border-top: 2px solid #ffc000;
    font-family: inherit;
    box-sizing: border-box;
}

.kvkk-cerez-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.kvkk-cerez-metin {
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
    min-width: 280px;
}

.kvkk-cerez-metin i {
    color: #ffc000;
    margin-right: 8px;
    font-size: 16px;
}

.kvkk-cerez-metin a {
    color: #ffc000;
    text-decoration: underline;
    font-weight: 600;
}

.kvkk-cerez-butonlar {
    display: flex;
    gap: 10px;
}

.btn-kvkk {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-kvkk-onay {
    background: #ffc000;
    color: #111111;
}

.btn-kvkk-onay:hover {
    background: #e0a800;
}

.btn-kvkk-red {
    background: #2b394a;
    color: #e0e0e0;
}

.btn-kvkk-red:hover {
    background: #3b4c60;
    color: #ffffff;
}

/* Modern CSS Ticker (Paket 4 Madde 7) */
.modern-ticker-section {
    background: #004085;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modern-ticker-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100%;
}

.modern-ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: modernTickerAnim 28s linear infinite;
}

.modern-ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #ffffff;
}

@keyframes modernTickerAnim {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}


/* In-Page Form (Hemen Bilgi Al) Guclendirilmis Stilleri */
.in-page-form {
    background: #ffffff;
    padding: 30px 25px 35px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.in-page-form .ajax-submit-btn {
    min-height: 44px;
    line-height: 1.4;
}

/* Mobil Uyumluluk Kurallari (768px ve Alti) */
@media only screen and (max-width: 768px) {
    /* Mobil Sticky Action Bar ile KVKK Cerez Paneli cakismasini onleme */
    .kvkk-cerez-paneli {
        bottom: 52px !important;
        padding: 10px 15px !important;
    }
    
    .kvkk-cerez-metin {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .btn-kvkk {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }

    /* Kayan Teklif Formu Mobil Pozisyonu */
    .sabit-teklif-wrapper {
        width: 290px;
        right: -290px;
        top: 60px;
    }
    .sabit-teklif-wrapper.acik {
        right: 0;
    }
    .sabit-form-body {
        max-height: calc(100vh - 120px);
        padding: 10px 12px;
    }

    /* Scroll to Top Butonunu Sticky Bar'in Ustune Alma */
    #scrollUp, .scrollup2, .scrollup3 {
        bottom: 60px !important;
    }

    /* Hemen Bilgi Al Formu Mobilde Tam Genislik Buton */
    .in-page-form {
        padding: 20px 15px 25px 15px;
    }
    .in-page-form .ajax-submit-btn {
        width: 100% !important;
        display: block !important;
        margin-top: 5px;
    }
}


/* Urun Detay Fiyat Icin Bilgi Al Butonu (Tam Oturma ve Ortalama Garantisi) */
.btn-fiyat-bilgi-al {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #ffc000 !important;
    color: #111111 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 12px 26px !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    vertical-align: middle !important;
}

.btn-fiyat-bilgi-al:hover,
.btn-fiyat-bilgi-al:focus {
    background: #e6ac00 !important;
    color: #000000 !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22) !important;
}

.btn-fiyat-bilgi-al i {
    font-size: 16px !important;
    color: #111111 !important;
    margin-right: 4px !important;
}
