/* Quick quote modal — pricing page only */
body.quote-modal-open {
    overflow: hidden;
}

.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quote-modal.is-open {
    display: flex;
}

.quote-modal [hidden] {
    display: none !important;
}

.quote-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 20, 45, 0.62);
    backdrop-filter: blur(3px);
}

.quote-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 40px 90px rgba(9, 20, 45, 0.28);
}

.quote-modal__head {
    position: relative;
    padding: 28px 30px 22px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, #2745f2 0%, #14264b 100%);
    color: #ffffff;
}

.quote-modal__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.78);
}

.quote-modal__head h2 {
    margin: 0 0 8px;
    font-family: var(--font-saira, "Saira", sans-serif);
    font-size: 23px;
    font-weight: 600;
}

.quote-modal__head p {
    margin: 0;
    max-width: 400px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.quote-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}

.quote-modal__close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.quote-modal__body {
    padding: 26px 30px 30px;
}

.quote-modal__field {
    margin-bottom: 16px;
}

.quote-modal__label {
    display: block;
    margin-bottom: 7px;
    color: #46536b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.quote-modal__label span {
    color: #2745f2;
}

.quote-modal__input,
.quote-modal__textarea {
    display: block;
    width: 100%;
    border: 1px solid #dfe7f4;
    border-radius: 10px;
    background: #ffffff;
    color: #14264b;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    padding: 11px 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-modal__input:focus,
.quote-modal__textarea:focus {
    outline: none;
    border-color: #2745f2;
    box-shadow: 0 0 0 3px rgba(39, 69, 242, 0.12);
}

.quote-modal__textarea {
    min-height: 104px;
    resize: vertical;
}

.quote-modal__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.quote-modal__error {
    margin: 4px 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 45, 32, 0.25);
    border-radius: 10px;
    background: rgba(217, 45, 32, 0.06);
    color: #b42318;
    font-size: 13px;
    line-height: 1.5;
}

.quote-modal__error ul {
    margin: 0;
    padding-left: 18px;
}

.quote-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 8px;
}

.quote-modal__submit {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid #2745f2;
    border-radius: 9px;
    background: #2745f2;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 20px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.quote-modal__submit:hover {
    border-color: #14264b;
    background: #14264b;
}

.quote-modal__submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.quote-modal__secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2745f2;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.quote-modal__secondary:hover {
    text-decoration: underline;
}

.quote-modal__secondary--whatsapp {
    color: #1ebe57;
}

.quote-modal__secondary--whatsapp:hover {
    color: #168f42;
}

.quote-modal__success {
    text-align: center;
    padding: 8px 0 4px;
}

.quote-modal__success-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(39, 69, 242, 0.1);
    color: #2745f2;
    font-size: 30px;
}

.quote-modal__success h3 {
    margin: 16px 0 8px;
    color: #14264b;
    font-family: var(--font-saira, "Saira", sans-serif);
    font-size: 22px;
    font-weight: 600;
}

.quote-modal__success p {
    margin: 0 auto;
    max-width: 390px;
    color: #66728a;
    font-size: 14px;
    line-height: 1.6;
}

.quote-modal__success-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    margin-top: 22px;
}

.quote-modal__success-ref {
    margin-top: 14px !important;
    color: #8a95a9 !important;
    font-size: 12px !important;
}

.quote-modal :focus-visible {
    outline: 2px solid #8fb0ff;
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .quote-modal {
        padding: 12px;
    }

    .quote-modal__dialog {
        max-height: calc(100vh - 24px);
        border-radius: 14px;
    }

    .quote-modal__head {
        padding: 24px 22px 20px;
        border-radius: 14px 14px 0 0;
    }

    .quote-modal__body {
        padding: 22px;
    }
}

/* Keep header copy legible against the dark gradient despite theme-wide !important colors. */
body #quoteModal .quote-modal__head h2 {
    color: #ffffff !important;
}

body #quoteModal .quote-modal__head p,
body #quoteModal .quote-modal__eyebrow {
    color: rgba(255, 255, 255, 0.94) !important;
}
