/* ========== ENQUIRY MODAL OVERLAY ========== */
#enquiry-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#enquiry-overlay.active {
    display: flex !important;
}

/* ========== MODAL BOX ========== */
.enquiry-modal {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
    animation: eqModalIn 0.25s ease;
}

@keyframes eqModalIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

/* ========== LEFT PANEL – PRODUCT IMAGE ========== */
.enquiry-modal__image-panel {
    width: 240px;
    min-width: 240px;
    background: #f6f8f5;
    border-radius: 10px 0 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
    text-align: center;
}

.enquiry-modal__product-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 14px;
}

.enquiry-modal__product-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a2e4a;
    margin-bottom: 5px;
}

.enquiry-modal__product-meta {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========== RIGHT PANEL – FORM ========== */
.enquiry-modal__form-panel {
    flex: 1;
    padding: 26px 28px 28px;
    position: relative;
}

/* Close button */
.enquiry-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 2px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    z-index: 1;
}

.enquiry-modal__close:hover {
    color: #333;
    background: #f0f0f0;
}

/* Heading */
.enquiry-modal__heading {
    font-size: 20px;
    font-weight: 700;
    color: #1a2e4a;
    margin-bottom: 18px;
    padding-right: 32px;
}

/* ── Form layout: custom classes to avoid Bootstrap conflicts ── */
.enquiry-form .eq-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.enquiry-form .eq-col {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
}

/* Inputs */
.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form textarea {
    border: 1px solid #d0d5dd !important;
    border-radius: 6px !important;
    padding: 9px 12px !important;
    font-size: 13.5px !important;
    color: #333 !important;
    outline: none !important;
    width: 100% !important;
    background: #fff !important;
    box-shadow: none !important;
    height: auto !important;
    transition: border-color 0.2s;
}

.enquiry-form input[type="text"]:focus,
.enquiry-form input[type="email"]:focus,
.enquiry-form textarea:focus {
    border-color: #1a6fbd !important;
    box-shadow: 0 0 0 3px rgba(26, 111, 189, 0.1) !important;
}

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

/* Phone field with country code */
.eq-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.eq-phone-wrap:focus-within {
    border-color: #1a6fbd;
    box-shadow: 0 0 0 3px rgba(26, 111, 189, 0.1);
}

.eq-phone-code {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    background: #f4f6f8;
    border-right: 1px solid #d0d5dd;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.eq-phone-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.eq-phone-code-text {
    font-size: 13px;
    font-weight: 600;
}

.eq-phone-wrap input[type="text"] {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    min-width: 0;
}

/* Submit button */
.enquiry-form__submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1a2e4a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.enquiry-form__submit:hover {
    background: #1a6fbd;
}

.enquiry-form__submit:disabled {
    background: #7a8fa3;
    cursor: not-allowed;
}

/* Alert messages */
#enquiry-alert {
    display: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    margin-bottom: 12px;
}

#enquiry-alert.success {
    background: #e6f9ee;
    color: #1d6f42;
    border: 1px solid #a3d9b8;
    display: block;
}

#enquiry-alert.error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5b7b1;
    display: block;
}

/* Field error text */
.eq-field-error {
    display: none;
    font-size: 11.5px;
    color: #c0392b;
    margin-top: 3px;
}

.eq-field-error.eq-visible {
    display: block;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .enquiry-modal {
        flex-direction: column;
        max-width: 95vw;
        max-height: 95vh;
    }

    .enquiry-modal__image-panel {
        width: 100%;
        min-width: unset;
        border-radius: 10px 10px 0 0;
        padding: 18px 20px;
        flex-direction: row;
        gap: 14px;
        justify-content: flex-start;
        text-align: left;
    }

    .enquiry-modal__product-img {
        width: 65px;
        height: 65px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .enquiry-modal__form-panel {
        padding: 18px 16px 22px;
    }

    .enquiry-form .eq-row {
        flex-direction: column !important;
    }
}
