/* =========================
   QUOTE MODAL (global)
========================= */

.ejm-modal {
    --ejm-navy: #111827;
    --ejm-blue: #5478b8;
    --ejm-muted: #6b7280;

    position: fixed;
    inset: 0;
    background: rgba(10, 15, 25, .72);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.ejm-modal.show {
    display: flex;
}

.ejm-modal-box {
    width: 100%;
    max-width: 570px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    position: relative;
    padding: 42px;
    box-sizing: border-box;
    box-shadow: 0 25px 70px rgba(0,0,0,.25);
    text-align: left;
}

.ejm-modal-close {
    position: absolute;
    right: 20px;
    top: 18px;
    width: 35px;
    height: 35px;
    border: 0;
    background: transparent;
    font-size: 25px;
    color: #6b7280;
    cursor: pointer;
}

.ejm-modal-close:hover {
    color: var(--ejm-navy);
}

.ejm-modal-title {
    margin: 0;
    font-size: 28px;
    color: var(--ejm-navy);
}

.ejm-modal-subtitle {
    margin: 9px 0 28px;
    font-size: 14px;
    color: var(--ejm-muted);
    line-height: 1.6;
}

/* ---- Contact Form 7 inside the quote modal ---- */
.ejm-modal .wpcf7 form { margin: 0; }
.ejm-modal .wpcf7-form p { margin: 0; }
.ejm-modal .wpcf7-form br { display: none; }
.ejm-modal .wpcf7-form-control-wrap { display: block; }
.ejm-modal .wpcf7-form-control-wrap input,
.ejm-modal .wpcf7-form-control-wrap textarea { width: 100%; box-sizing: border-box; }
.ejm-modal .wpcf7-not-valid-tip { font-size: 12px; color: #c0392b; margin-top: 4px; }
.ejm-modal .wpcf7-response-output { margin: 16px 0 0; padding: 12px 14px; font-size: 13.5px; border-radius: 3px; }
.ejm-modal .wpcf7-spinner { margin: 0 0 0 12px; }
.ejm-modal .ejm-submit-button { cursor: pointer; }

.ejm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ejm-form-group {
    margin-bottom: 17px;
}

.ejm-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.ejm-form-group input,
.ejm-form-group select,
.ejm-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfe3e8;
    background: #fff;
    padding: 12px 13px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    font-family: inherit;
    margin: 0;
}

.ejm-form-group input,
.ejm-form-group select {
    height: 45px;
}

.ejm-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.ejm-form-group input:focus,
.ejm-form-group select:focus,
.ejm-form-group textarea:focus {
    border-color: var(--ejm-blue);
}

.ejm-submit-button {
    width: 100%;
    height: 49px;
    border: 0;
    background: var(--ejm-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 5px;
    transition: .2s ease;
}

.ejm-submit-button:hover {
    background: #4879BE;
    border: 0;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .ejm-modal-box {
        padding: 32px 20px;
    }

    .ejm-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
