/* ==============================================================
   FORM YONETIMI & SABIT TEKLIF FORMU STILLERI
============================================================== */

/* --- Sabit / Kayan Teklif Formu (Floating Sticky Offer Widget) --- */
.sabit-teklif-kapsayici {
    position: fixed;
    right: 20px;
    top: 140px;
    width: 320px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid #e1e8ed;
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    overflow: hidden;
}

.sabit-teklif-baslik {
    background: linear-gradient(135deg, #2b32b2 0%, #1488cc 100%);
    color: #ffffff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.sabit-teklif-baslik i {
    font-size: 16px;
    margin-right: 6px;
}

.sabit-teklif-baslik .baslik-metin {
    flex: 1;
    letter-spacing: 0.3px;
}

.sabit-teklif-baslik .toggle-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.sabit-teklif-kapsayici.kapali .toggle-icon {
    transform: rotate(180deg);
}

.sabit-teklif-kapsayici.kapali .sabit-teklif-govde {
    display: none;
}

.sabit-teklif-govde {
    padding: 14px 16px 12px;
    position: relative;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

/* Form Elemanlari */
.form-satir {
    margin-bottom: 10px;
    position: relative;
}

.form-satir label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 3px;
}

.form-alani {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    color: #2d3748;
    background-color: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-alani:focus {
    outline: none;
    border-color: #3182ce;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.form-satir textarea.form-alani {
    resize: none;
    height: 55px;
}

.btn-form-gonder {
    width: 100%;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #ffffff;
    border: none;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-form-gonder:hover {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
}

.btn-form-gonder:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* --- Yukleniyor Overlay & Dönen Spinner Animasyonu (Madde 4) --- */
.form-overlay-yukleniyor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.form-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3182ce;
    border-radius: 50%;
    animation: formSpinnerDonus 0.8s linear infinite;
    margin-bottom: 8px;
}

@keyframes formSpinnerDonus {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-overlay-metin {
    font-size: 12px;
    font-weight: 600;
    color: #2b6cb0;
}

/* --- Ekranda Cikan Mesaj / Bildirim Kutusu (Madde 1 & 4) --- */
.form-mesaj-kutusu {
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
    display: none;
    transition: opacity 0.4s ease;
}

.form-mesaj-kutusu.basarili {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
    display: block;
}

.form-mesaj-kutusu.hata {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
    display: block;
}

/* Mobil Gorunum Uyarlamalari */
@media (max-width: 768px) {
    .sabit-teklif-kapsayici {
        width: 290px;
        right: 10px;
        top: auto;
        bottom: 75px;
    }
    .sabit-teklif-kapsayici.kapali {
        width: 170px;
    }
}

/* ==========================================================================
   KVKK CEREZ ONAY PANELI STILLERI
   ========================================================================== */
.kvkk-cerez-paneli {
    position: fixed;
    bottom: 60px; /* Mobil aksiyon cubugunun ustunde */
    left: 20px;
    right: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 99998;
    padding: 16px 22px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-left: 4px solid #ff6600;
}

@media (min-width: 768px) {
    .kvkk-cerez-paneli {
        bottom: 25px;
    }
}

.kvkk-cerez-kutu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 768px) {
    .kvkk-cerez-kutu {
        flex-direction: row;
        gap: 20px;
    }
}

.kvkk-cerez-metin {
    font-size: 13px;
    line-height: 1.5;
    color: #495057;
    flex: 1;
}

.kvkk-cerez-metin a {
    color: #ff6600;
}

.kvkk-cerez-butonlar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

.btn-cerez-kabul {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #fff;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 4px;
}

.btn-cerez-kabul:hover {
    background-color: #e05500;
    border-color: #e05500;
    color: #fff;
}

.btn-cerez-red {
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 4px;
}

/* ==========================================================================
   MODERN CSS TICKER (MARQUEE ALTERNATIFI - LOGOLARI BOZMAYAN YAPI)
   ========================================================================== */
.modern-ticker-kapsayici {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
}

.modern-ticker-icerik {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: modernTickerAnim 22s linear infinite;
    will-change: transform;
}

.modern-ticker-kapsayici:hover .modern-ticker-icerik {
    animation-play-state: paused;
}

.modern-logo-ticker {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
}

.modern-logo-ticker .modern-ticker-icerik {
    animation-duration: 30s;
    display: inline-flex;
    align-items: center;
}

.modern-logo-ticker img,
.modern-ticker-icerik img {
    max-height: 60px;
    height: auto;
    width: auto;
    margin: 0 15px;
    vertical-align: middle;
    object-fit: contain;
}

@keyframes modernTickerAnim {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}
