/* ===============================
   MODAL BASE BEHAVIOR
   =============================== */

.modal {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* ===============================
   ISOLATED MODAL STYLING
   =============================== */

.inquiry-modal {
    font-family: 'Montserrat', sans-serif;
}

.inquiry-modal * {
    box-sizing: border-box;
    min-width: 100px;
    padding-top: 8px;
    gap: 14px;
}

/* Headings */
.inquiry-modal h2 {
    font-size: 22px;
    font-weight: 600;
    padding-left: 25px;
}

/* Labels */
.inquiry-modal label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: #374151; /* gray-700 */
    padding-left: 10px;
}

/* Inputs & Select */
.inquiry-modal input,
.inquiry-modal select {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.25;
    border-radius: 10px;
    border: 1px solid #d1d5db; /* gray-300 */
    background-color: #ffffff;
}

/* Focus state */
.inquiry-modal input:focus,
.inquiry-modal select:focus {
    outline: none;
    border-color: #10b981; /* green-500 */
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Submit button */
.inquiry-modal button[type="submit"] {
    height: 48px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Modal sizing */
.inquiry-modal .modal-content {
    max-width: 460px;
}

/* Scroll */
.inquiry-modal .modal-content {
    scrollbar-width: thin;
}
/* ===============================
   HARD ISOLATION FIX (FINAL)
   =============================== */

/* Reset form layout inside modal only */
.inquiry-modal form {
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset button spacing inside modal */
.inquiry-modal button {
    margin: 0 !important;
}

/* Force consistent spacing between fields */
.inquiry-modal form > div {
    margin-bottom: 16px;
    padding-left: 16px;
    padding-right: 16px;
}

/* Ensure submit button spacing */
.inquiry-modal button[type="submit"] {
    margin-top: 8px !important;
}
/* Bigger close button */
.inquiry-modal .modal-close svg,
.inquiry-modal button svg {
    width: 35px;
    height: 35px;
}
/* ================= SUBMIT LOADER (GLOBAL) ================= */

button[type="submit"].loading,
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.85;
    position: relative;
}

button[type="submit"].loading::after,
.submit-btn.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Lock background scroll when modal is open */
body.modal-open,
html.modal-open {
    overflow: hidden;
    height: 100%;
}