/* ========================================
   RESET
   ======================================== */
#bmr-modal-overlay,
#bmr-modal-overlay * {
    box-sizing: border-box;
}

/* ========================================
   MODAL OVERLAY — Full Viewport
   ======================================== */
#bmr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #E0BBFF;
    /* Lilac background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.35s ease;
}

/* ========================================
   MODAL CONTAINER
   ======================================== */
#bmr-modal-container {
    width: 100%;
    height: 100%;
    position: relative;
    font-family: inherit;
    /* Elementor compatible style */
    display: flex;
}

/* ========================================
   CLOSE BUTTON
   ======================================== */
#bmr-close-btn {
    position: absolute;
    top: 28px;
    right: 36px;
    background: none;
    border: none;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    color: #1a1a1a;
    z-index: 1000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, transform 0.2s;
}

#bmr-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
    transform: scale(1.05);
}

/* ========================================
   LAYOUT — 50/50 SPLIT
   ======================================== */
.bmr-modal-content {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ========================================
   LEFT — IMAGE SIDE with crossfade
   ======================================== */
.bmr-image-side {
    flex: 0 0 50%;
    height: 100vh;
    padding: 20px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background-color: #E0BBFF;
    /* Lilac background */
    position: relative;
    overflow: hidden;
}

.bmr-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: opacity 0.5s ease;
}

/* Crossfade: the outgoing image fades out */
.bmr-image-side img.bmr-img-fade-out {
    opacity: 0;
}

/* ========================================
   RIGHT — FORM SIDE
   ======================================== */
.bmr-form-side {
    flex: 0 0 50%;
    height: 100vh;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #E0BBFF;
    /* Lilac background */
    position: relative;
    overflow-y: auto;
}

/* ========================================
   STEPS — Active / Hidden
   ======================================== */
.bmr-step {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bmr-hidden {
    display: none !important;
}

.bmr-active {
    display: flex !important;
    animation: bmrSlideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ========================================
   TYPOGRAPHY — compatible with Elementor styles
   ======================================== */
.bmr-brand {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.bmr-title {
    font-family: inherit;
    font-size: 46px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -1.5px;
    line-height: 1.05;
}

.bmr-subtitle {
    font-family: inherit;
    font-size: 15px;
    color: #3a3a3a;
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.5;
}

.bmr-subtitle strong {
    font-weight: 600;
    display: block;
    margin-top: 4px;
    color: #1a1a1a;
}

/* ========================================
   FORM — INPUTS
   ======================================== */
.bmr-input-group {
    margin-bottom: 20px;
    width: 100%;
    max-width: 340px;
}

.bmr-input-group input {
    width: 100%;
    height: 52px;
    padding: 0 24px;
    border: 1.5px solid #c8c2b6;
    border-radius: 100px !important;
    /* Force fully round border radius */
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    background-color: #fff;
    outline: none;
    text-align: left;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.bmr-input-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.bmr-input-group input:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

/* Phone Number Group */
.bmr-phone-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #c8c2b6;
    border-radius: 100px !important;
    /* Force fully round border radius */
    background: #fff;
    padding-left: 20px;
    height: 52px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.bmr-phone-group:focus-within {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.bmr-country-code {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    color: #555;
    padding-right: 12px;
    border-right: 1px solid #e0ddd6;
    margin-right: 0;
    flex-shrink: 0;
}

.bmr-phone-group input {
    border: none !important;
    height: 100%;
    padding: 0 20px 0 14px;
    border-radius: 0 100px 100px 0 !important;
    font-family: inherit;
    font-size: 15px;
    width: 100%;
    outline: none;
    text-align: left;
    background: transparent;
    box-shadow: none !important;
}

.bmr-phone-group input::placeholder {
    color: #999;
}

/* ========================================
   FORM — BUTTONS
   ======================================== */
.bmr-submit-btn {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    height: 52px;
    border-radius: 100px !important;
    /* Force fully round border radius */
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 340px;
    margin-top: 8px;
    margin-bottom: 20px;
    transition: background-color 0.25s, transform 0.15s, box-shadow 0.25s;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.bmr-submit-btn:hover {
    background-color: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.bmr-submit-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Decline Link */
.bmr-decline {
    display: inline-block;
    font-family: inherit;
    font-size: 13px;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s;
    cursor: pointer;
}

.bmr-decline:hover {
    opacity: 0.6;
}

/* ========================================
   DISCLAIMER TEXT
   ======================================== */
.bmr-disclaimer {
    font-family: inherit;
    font-size: 10px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 16px;
    text-align: left;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   SUCCESS STEP (Step 3)
   ======================================== */
.bmr-success-title {
    font-family: inherit;
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.bmr-success-subtitle {
    font-family: inherit;
    font-size: 15px;
    color: #3a3a3a;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* ========================================
   KEYFRAMES
   ======================================== */
@keyframes bmrSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */
@media (max-width: 768px) {
    .bmr-image-side {
        display: none;
    }

    .bmr-form-side {
        flex: 1 1 100%;
        height: 100vh;
        padding: 40px 24px;
        background-color: #E0BBFF;
        /* Lilac background on mobile too */
    }

    #bmr-close-btn {
        top: 16px;
        right: 16px;
        font-size: 28px;
    }

    .bmr-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .bmr-brand {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .bmr-submit-btn,
    .bmr-input-group,
    .bmr-input-group input {
        max-width: 100%;
    }

    .bmr-submit-btn {
        max-width: 100%;
    }
}

/* Loading state for AJAX submission */
.bmr-submit-btn.bmr-loading {
    background-color: #555 !important;
    cursor: not-allowed;
    opacity: 0.85;
}