/* =========================
   RFP MODAL - PROFESSIONAL FINAL
   ========================= */

/* show/hide */
.rfp-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

.rfp-modal.is-open {
    display: block;
}

/* overlay */
.rfp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    opacity: 0;
    transition: opacity .25s ease;
}

.rfp-modal.is-open .rfp-modal__overlay {
    opacity: 1;
}

/* panel */
.rfp-modal__panel {
    position: relative;
    width: min(560px, 94vw);
    max-height: 88vh;
    margin: 6vh auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    overflow: hidden;

    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}

.rfp-modal.is-open .rfp-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* close */
.rfp-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

/* header */
.rfp-modal__header {
    padding: 16px 18px 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

/* IMPORTANT: override template H2/H3 defaults */
.rfp-modal__header h2,
.rfp-modal__header h3 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    color: #222 !important;
    font-family: inherit !important;
    font-weight: 700 !important;
}

/* title/subtitle sizing */
.rfp-modal__title {
    font-size: 18px !important;
    /* prevents template 36px */
    letter-spacing: .2px;
}

.rfp-modal__subtitle {
    margin-top: 6px !important;
    font-size: 12.5px !important;
    color: #666 !important;
    line-height: 1.35;
}

/* body scroll */
.rfp-modal__body {
    padding: 14px 18px 16px;
    max-height: calc(88vh - 88px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* step title */
.rfp-step__title {
    margin: 6px 0 12px !important;
    text-align: center;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #222 !important;
}

/* labels & inputs */
.rfp-label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 600;
    color: #222;
    font-size: 13px;
    text-align: center;
}

.rfp-label span {
    color: #c62828;
}

.rfp-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    background: #f7f7f7;
}

.rfp-input:focus {
    background: #fff;
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}

.rfp-textarea {
    resize: vertical;
    min-height: 90px;
}

/* grid */
.rfp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rfp-hint {
    margin: 10px 0 0;
    color: #777;
    font-size: 12px;
    text-align: center;
}

/* buttons area (sticky = professional) */
.rfp-actions {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;

    position: sticky;
    bottom: -1px;
    background: #fff;
    padding: 12px 0 2px;
    box-shadow: 0 -10px 18px rgba(0, 0, 0, .06);
}

.rfp-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}

.rfp-btn--primary {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* steps */
.rfp-step {
    display: none;
}

.rfp-step.is-active {
    display: block;
}

/* validation */
.rfp-invalid {
    border-color: #c62828 !important;
}

/* thank you */
.rfp-thankyou {
    text-align: center;
    padding-top: 6px;
}

.rfp-check {
    width: 70px;
    height: 70px;
    margin: 6px auto 10px;
    border-radius: 16px;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rfp-check__icon {
    color: #fff;
    font-size: 30px;
}

.rfp-thankyou__text {
    margin: 8px 0 0 !important;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 640px) {
    .rfp-modal__panel {
        width: 94vw;
        margin: 8vh auto;
        max-height: 90vh;
    }

    .rfp-modal__body {
        max-height: calc(90vh - 88px);
    }

    .rfp-grid-2 {
        grid-template-columns: 1fr;
    }

    .rfp-actions {
        flex-direction: column;
    }

    .rfp-btn {
        width: 100%;
    }
}