/* ==========================================================================
   ESTORA FOOTER (partials/footer) - ommaviy sahifalar va kabinet uchun umumiy
   ========================================================================== */

:root {
    --primary-navy: #061c3f;
    --accent-blue: #0084ff;
    --accent-blue-hover: #0070db;
    --font-display: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    --transition-speed: 0.2s;
}

.footer-container-exact,
.footer-container-exact *,
.support-widget-exact,
.support-modal-overlay,
.support-modal-overlay * {
    box-sizing: border-box;
}

.footer-container-exact a {
    text-decoration: none;
    color: inherit;
}

.footer-container-exact .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   NEW FOOTER (FROM IMAGE 3)
   ========================================================================== */
.footer-container-exact {
    width: 100%;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
}

.footer-top-orange-strip {
    background-color: #FF9800;
    padding: 14px 0;
    width: 100%;
}

.footer-nav-links-exact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 36px;
    list-style: none;
}

.footer-nav-links-exact a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    transition: opacity 0.2s;
}

.footer-nav-links-exact a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.footer-royal-blue-body {
    background: linear-gradient(135deg, #0050E6 0%, #001366 100%);
    color: #ffffff;
    padding: 48px 0 28px 0;
    position: relative;
}

.footer-grid-exact {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-apps-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.app-btn-exact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 8px 16px;
    color: #ffffff;
    transition: var(--transition-speed);
}

.app-btn-exact:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
}

.footer-company-text {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.footer-terms-text {
    font-size: 12.5px;
    line-height: 1.6;
    color: #93c5fd;
}

.footer-terms-text strong {
    color: #ffffff;
}

.footer-right-exact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 12px;
}

.footer-toll-free-text {
    font-size: 13.5px;
    font-weight: 500;
    color: #bfdbfe;
}

.footer-hotline-exact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-phone-big {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-social-row-exact {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.footer-social-btn-exact {
    font-size: 22px;
    color: #93c5fd;
    transition: var(--transition-speed);
}

.footer-social-btn-exact:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.footer-divider-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 22px;
}

.footer-disclaimer-full {
    font-size: 12px;
    line-height: 1.7;
    color: #93c5fd;
}

.support-widget-exact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-blue);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 128, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.support-widget-exact:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   INTERACTIVE SUPPORT / INQUIRY MODAL (ANIMATED)
   ========================================================================== */
.support-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 28, 63, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.support-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px -10px rgba(6, 28, 63, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(28px) scale(0.94);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
    scrollbar-width: thin;
}

.support-modal-overlay.active .support-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.support-modal-header {
    background: linear-gradient(135deg, #061c3f 0%, #0050E6 100%);
    color: #ffffff;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}

.support-modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.support-modal-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.support-modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 2px;
}

.support-modal-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.4;
}

.btn-support-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: none;
    outline: none;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.btn-support-modal-close:hover {
    background: rgba(239, 68, 68, 0.85);
    transform: rotate(90deg);
}

.support-modal-form {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.support-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.support-form-field label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.support-form-field label .required-star {
    color: #ef4444;
}

.support-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.support-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}

.support-textarea-icon {
    top: 13px;
}

.support-input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--primary-navy);
    background: #f8fafc;
    transition: all 0.2s;
    outline: none;
}

.support-input:focus {
    background: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3.5px rgba(0, 132, 255, 0.15);
}

.support-input:focus + .support-input-icon,
.support-input-wrap:focus-within .support-input-icon {
    color: var(--accent-blue);
}

.support-textarea {
    height: auto;
    min-height: 85px;
    padding: 10px 14px 10px 38px;
    resize: vertical;
    font-family: inherit;
}

.support-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.support-modal-actions {
    margin-top: 4px;
}

.btn-support-submit {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #0084ff 0%, #0050e6 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 132, 255, 0.35);
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.btn-support-submit:hover {
    box-shadow: 0 8px 24px rgba(0, 132, 255, 0.45);
    transform: translateY(-1px);
}

.btn-support-submit:active {
    transform: translateY(0);
}

.btn-support-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.support-direct-call {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.support-direct-call a {
    color: #0084ff;
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s;
}

.support-direct-call a:hover {
    color: #0050e6;
    text-decoration: underline;
}

/* Success View State */
.support-modal-success {
    padding: 36px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.support-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 6px;
    animation: successPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.support-modal-success h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: #061c3f;
}

.support-modal-success p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    max-width: 360px;
}

.btn-support-success-close {
    margin-top: 8px;
    background: #061c3f;
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-support-success-close:hover {
    background: #0084ff;
}

@media (max-width: 1024px) {
    .footer-grid-exact { grid-template-columns: 1fr; }
    .footer-right-exact { align-items: flex-start; text-align: left; }
}

@media (max-width: 520px) {
    /* Floating Support Widget collapse */
    .support-widget-exact span {
        display: none;
    }
    .support-widget-exact {
        padding: 12px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 640px) {
    /* Havolalar qatori mobilda ixcham, 2-3 qatorga sig'adi */
    .footer-nav-links-exact {
        gap: 10px 22px;
    }
    .footer-nav-links-exact a {
        font-size: 13px;
    }
    .footer-phone-big {
        font-size: 26px;
    }
}
