.quote-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.quote-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quote-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 680px;
    max-width: 94vw;
    max-height: 92vh;
    background: #fff;
    border-radius: 24px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.quote-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quote-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.quote-popup-close:hover {
    background: #c8102e;
    color: #fff;
    transform: rotate(90deg);
}

.quote-popup-inner {
    padding: 40px 44px 36px;
}

.quote-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.quote-popup-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8102e, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: #fff;
}

.quote-popup-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.quote-popup-header p {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.quote-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.quote-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quote-form-group.full-width {
    flex: 1 1 100%;
}

.quote-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.quote-form-group input,
.quote-form-group select,
.quote-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
}

.quote-form-group input:focus,
.quote-form-group select:focus,
.quote-form-group textarea:focus {
    border-color: #c8102e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

.quote-form-group input::placeholder,
.quote-form-group textarea::placeholder {
    color: #bbb;
}

.quote-form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.quote-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.quote-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #c8102e, #a00d24);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.quote-submit-btn:hover {
    background: linear-gradient(135deg, #a00d24, #800a1c);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.3);
}

.quote-submit-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.quote-submit-btn:hover i {
    transform: translateX(4px) translateY(-2px);
}

/* Success state */
.quote-popup-form.success {
    display: none;
}

.quote-success-msg {
    text-align: center;
    padding: 40px 20px;
}

.quote-success-msg .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #fff;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.quote-success-msg h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.quote-success-msg p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .quote-popup-inner {
        padding: 30px 24px 28px;
    }

    .quote-form-row {
        flex-direction: column;
        gap: 14px;
    }

    .quote-popup-header h3 {
        font-size: 22px;
    }
}

.quote-popup::-webkit-scrollbar {
    width: 6px;
}

.quote-popup::-webkit-scrollbar-track {
    background: transparent;
}

.quote-popup::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

/* WhatsApp & Divider Styles */
.quote-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.quote-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.quote-divider span {
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 13px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.quote-whatsapp-btn:hover {
    background: #128C7E;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.quote-whatsapp-btn i {
    font-size: 22px;
}
