/* ==============================================================
   TEKLIF VE ILETISIM FORMLARI MODERN STILLERI
   ============================================================== */

/* Ekrana Sabit Teklif Widgeti (Floating Sticky Card) */
.sticky-quote-widget {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 30px;
    z-index: 1000005;
    font-family: inherit;
    transition: bottom 0.3s ease, left 0.3s ease;
}

body.has-kvkk-panel .sticky-quote-widget {
    bottom: 95px;
}

.sticky-quote-toggle {
    background: linear-gradient(135deg, #d90429, #ef233c);
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sticky-quote-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.5);
    color: #ffffff;
}

.sticky-quote-toggle i {
    font-size: 18px;
}

.sticky-quote-card {
    position: absolute;
    left: 0;
    right: auto;
    bottom: 55px;
    width: 320px;
    max-width: calc(100vw - 30px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: none;
    animation: fadeInSticky 0.25s ease-out;
}

@keyframes fadeInSticky {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sticky-quote-header {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #d90429;
}

.sticky-quote-header h6 {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-quote-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.sticky-quote-close:hover {
    color: #ffffff;
}

.sticky-quote-body {
    padding: 15px;
    position: relative;
    max-height: 480px;
    overflow-y: auto;
}

.sticky-quote-body .form-group {
    margin-bottom: 10px;
}

.sticky-quote-body .form-control {
    font-size: 12px;
    padding: 6px 10px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.sticky-quote-body .form-control:focus {
    border-color: #d90429;
    box-shadow: 0 0 0 2px rgba(217, 4, 41, 0.15);
}

.sticky-quote-body textarea.form-control {
    resize: none;
    height: 55px;
}

.sticky-quote-body .btn-submit {
    width: 100%;
    background: #d90429;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sticky-quote-body .btn-submit:hover {
    background: #b70322;
}

/* Form Yukleniyor / Overlay Animasyonu (Paket 3 Madde 4) */
.form-loading-overlay {
    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: 10;
    border-radius: inherit;
}

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

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

.form-loading-text {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

/* Form Durum Bildirim Kutusu (Paket 3 Madde 1 & 4) */
.form-inline-msg {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
    display: none;
}

.form-inline-msg.msg-success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.form-inline-msg.msg-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Mobil Gorunum Uyumu */
@media (max-width: 768px) {
    .sticky-quote-widget {
        left: 12px;
        right: auto;
        bottom: 70px;
    }
    body.has-kvkk-panel .sticky-quote-widget {
        bottom: 135px;
    }
    .sticky-quote-card {
        left: 0;
        right: auto;
        width: calc(100vw - 24px);
        max-width: 340px;
        bottom: 50px;
    }
    .sticky-quote-toggle {
        padding: 8px 14px;
        font-size: 12px;
    }
}
