/* ============================================
   MyBoodaa Lead Funnel - Frontend Styles
   v1.0.0
   ============================================ */

/* === COVER CARD (Exact MBSA architecture replica) === */
.mblf-wrapper {
    --mblf-radius: 25px;
    --mblf-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.mblf-cover-card {
    position: relative;
    width: 100%;
    border-radius: var(--mblf-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mblf-cover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mblf-cover-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.mblf-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mblf-cover-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 28px;
    box-sizing: border-box;
}

/* Header / Badge */
.mblf-cover-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.mblf-cover-badge-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mblf-cover-badge-text {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* Dots Pattern */
.mblf-cover-dots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.mblf-dots-row {
    display: flex;
    gap: 10px;
}

.mblf-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}

.mblf-dot.mblf-dot-faded {
    opacity: 0.3;
}

/* Title */
.mblf-cover-title {
    font-size: clamp(36px, 8vw, 52px);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.mblf-cover-subtitle {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.85;
    margin: 0;
    max-width: 80%;
}

/* Stats */
.mblf-cover-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 24px;
}

.mblf-stat-value {
    display: block;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.mblf-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.mblf-stat-right {
    text-align: right;
}

/* CTA Button */
.mblf-cover-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    border-radius: 60px;
    padding: 16px 20px 16px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
    margin-top: 16px;
    font-family: inherit;
}

.mblf-cover-btn:hover {
    transform: scale(1.02);
}

.mblf-cover-btn:active {
    transform: scale(0.98);
}

.mblf-btn-label {
    position: relative;
    z-index: 1;
}

.mblf-btn-arrow {
    font-size: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.mblf-cover-btn:hover .mblf-btn-arrow {
    transform: translateX(4px);
}


/* ============================================
   ADAPTIVE LAYOUT - Grid Spacer Technique
   (Exact replica from MBSA reference)
   ============================================ */

/* Helper: Use Grid to enforce minimum aspect ratio — SCOPED to .mblf-cover-card */
.mblf-cover-card[data-shape="1/1"],
.mblf-cover-card[data-shape="16/9"] {
    display: grid !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.mblf-cover-card[data-shape="1/1"]::before {
    content: "";
    width: 0;
    padding-bottom: 100%;
    grid-area: 1 / 1;
    z-index: 0;
}

.mblf-cover-card[data-shape="16/9"]::before {
    content: "";
    width: 0;
    padding-bottom: 56.25%;
    grid-area: 1 / 1;
    z-index: 0;
}

.mblf-cover-card[data-shape="1/1"]>*,
.mblf-cover-card[data-shape="16/9"]>* {
    grid-area: 1 / 1;
}

.mblf-cover-card[data-shape="1/1"] .mblf-cover-bg-image,
.mblf-cover-card[data-shape="16/9"] .mblf-cover-bg-image,
.mblf-cover-card[data-shape="1/1"] .mblf-cover-overlay,
.mblf-cover-card[data-shape="16/9"] .mblf-cover-overlay {
    height: 100% !important;
    width: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0;
}

.mblf-cover-card[data-shape="1/1"] .mblf-cover-content {
    position: relative;
    z-index: 2;
    padding: 24px !important;
    height: auto !important;
    justify-content: center;
    min-height: auto !important;
}

.mblf-cover-card[data-shape="1/1"] .mblf-cover-title {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 12px !important;
    line-height: 1.1 !important;
}

.mblf-cover-card[data-shape="1/1"] .mblf-cover-subtitle {
    font-size: 15px;
    line-height: 1.4 !important;
}

.mblf-cover-card[data-shape="1/1"] .mblf-cover-dots {
    gap: 8px;
    margin-bottom: 20px;
}

.mblf-cover-card[data-shape="1/1"] .mblf-dot {
    width: 12px;
    height: 12px;
}

.mblf-cover-card[data-shape="1/1"] .mblf-cover-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
    margin-top: 16px !important;
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
}

.mblf-cover-card[data-shape="16/9"] .mblf-cover-content {
    position: relative;
    z-index: 2;
    padding: 20px 24px !important;
    height: auto !important;
    min-height: auto !important;
}

.mblf-cover-card[data-shape="16/9"] .mblf-title-group {
    width: 100% !important;
}

.mblf-cover-card[data-shape="16/9"] .mblf-cover-title {
    font-size: clamp(20px, 4vw, 28px) !important;
    margin-bottom: 8px !important;
    line-height: 1.1 !important;
}

.mblf-cover-card[data-shape="16/9"] .mblf-cover-subtitle {
    font-size: 14px !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
}

.mblf-cover-card[data-shape="16/9"] .mblf-cover-dots {
    display: none;
}

.mblf-cover-card[data-shape="16/9"] .mblf-cover-btn {
    margin-top: 16px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    width: fit-content;
}

.mblf-cover-card[data-shape="16/9"] .mblf-cover-stats {
    display: flex !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
}


/* ============================================
   FULLSCREEN FORM APP
   ============================================ */
.mblf-fullscreen-app {
    position: fixed;
    inset: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    z-index: 999999;
    overflow-y: auto;
    overflow-x: hidden;
    animation: mblfFadeIn 0.4s ease;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background-color: var(--mb-bg-color, #000);
    box-shadow: none !important;
}

.mblf-fullscreen-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background-color: var(--mb-bg-color, #000) !important;
    animation: mblfFadeIn 0.4s ease;
}

.mblf-fullscreen-backdrop.mblf-closing {
    animation: mblfFadeOut 0.3s ease forwards;
}

.mblf-fullscreen-app.mblf-closing {
    animation: mblfFadeOut 0.3s ease forwards;
}

@keyframes mblfFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes mblfFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

/* Close Button — scoped to fullscreen app */
.mblf-fullscreen-app .mblf-close-btn {
    position: fixed;
    z-index: 1000001;
    top: 24px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: inherit;
    padding: 0 !important;
    transition: transform 0.2s ease;
}

.mblf-fullscreen-app .mblf-close-btn:hover {
    transform: scale(1.1);
}

.mblf-fullscreen-app .mblf-close-btn svg {
    width: 24px;
    height: 24px;
}

/* Progress Bar */
.mblf-progress-bar {
    display: none !important;
}

.mblf-progress-fill {
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Step Counter (hidden inside code but defined here just in case) */
.mblf-step-counter {
    position: fixed;
    top: 10px;
    right: 70px;
    z-index: 1000001;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Hero Image & Gradient (Immersive Design) */
.mblf-form-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-color: var(--mb-bg-color);
    z-index: 0;
}

.mblf-form-hero-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, var(--mb-bg-color) 85%, var(--mb-bg-color) 100%);
    pointer-events: none;
}

/* Form Container */
.mblf-form-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 28px 32px 28px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 1;
}

/* Form Texts */
.mblf-form-header-texts {
    text-align: left;
    margin-bottom: 24px;
    /* Reduced from 28px to cluster closer to input */
    margin-top: auto;
    /* Pushes the texts down to cluster with inputs at the bottom zone */
    position: relative;
    z-index: 2;
}

.mblf-form-title {
    font-size: var(--mb-title-size, clamp(26px, 7vw, 32px));
    font-weight: var(--mb-title-weight, bold);
    line-height: 1.1;
    margin: 0 0 10px 0;
    font-family: inherit;
    letter-spacing: -0.02em;
}

.mblf-form-subtitle {
    font-size: var(--mb-subtitle-size, 15px);
    font-weight: var(--mb-subtitle-weight, normal);
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
}

/* Step Viewport */
.mblf-step-viewport {
    position: relative;
    width: 100%;
    min-height: 52px;
    /* Reduced to close gaps while holding space for input */
}

/* Individual Step */
.mblf-step {
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    text-align: left;
}

.mblf-step.mblf-step-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.mblf-step.mblf-step-exit {
    opacity: 0;
    transform: translateX(-20px);
}

/* Step Card UI (Reference Layout) */
.mblf-step-card-ui {
    display: flex;
    align-items: center;
    background: color-mix(in srgb, currentColor 6%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: left;
}

.mblf-step-card-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    background: color-mix(in srgb, currentColor 5%, transparent);
    flex-shrink: 0;
}

.mblf-step-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mblf-step-card-title {
    font-family: inherit;
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 4px 0;
    color: inherit;
    line-height: 1.2;
}

.mblf-step-card-desc {
    font-family: inherit;
    font-size: 13px;
    color: inherit;
    opacity: 0.6;
    line-height: 1.2;
    margin: 0;
}

.mblf-step-card-action {
    width: 100%;
}

/* Form Inputs */
.mblf-step-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 12px 0px;
    color: inherit;
    opacity: 0.95;
    letter-spacing: 0.01em;
}

/* intl-tel-input — scoped to plugin containers only */
.mblf-wrapper .iti {
    width: 100%;
    display: block;
}

.mblf-fullscreen-app .iti--container {
    z-index: 9999999 !important;
}

.mblf-wrapper .iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags.png");
}

@media (min-resolution: 2x) {
    .mblf-wrapper .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags@2x.png");
    }
}

/* Custom styling for the intl-tel-input dropdown box — scoped */
.mblf-fullscreen-app .iti__country-list {
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
    margin-top: 8px !important;
    padding: 8px 0 !important;
    width: max-content !important;
    min-width: 130px !important;
    overflow-x: hidden !important;
}

/* Hide country names in the dropdown — scoped */
.mblf-fullscreen-app .iti__country-name {
    display: none !important;
}

/* Adjust padding inside the list elements — scoped */
.mblf-fullscreen-app .iti__country {
    padding: 12px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* Adjust the dial code spacing — scoped */
.mblf-fullscreen-app .iti__dial-code {
    margin-left: 12px !important;
    color: #000 !important;
    font-weight: 500;
    font-size: 15px;
}

/* Hover state — scoped */
.mblf-fullscreen-app .iti__country.iti__highlight {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.mblf-step-input,
.mblf-step-select,
.mblf-step-textarea {
    width: 100%;
    border: none !important;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-radius: 25px !important;
    padding: 0 24px;
    min-height: 52px;
    font-size: 16px;
    font-family: inherit;
    color: #000;
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.mblf-step-input::placeholder,
.mblf-step-textarea::placeholder {
    color: rgba(128, 128, 128, 0.5);
}

.mblf-step-input:focus,
.mblf-step-select:focus,
.mblf-step-textarea:focus {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.mblf-step-textarea {
    border-radius: 24px;
    padding: 20px 24px;
    min-height: 120px;
    resize: vertical;
}

.mblf-step-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(128,128,128,0.7)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    padding-right: 52px;
}

.mblf-step-select option {
    background: #1a1a2e;
    color: #fff;
}

/* Radio Options */
.mblf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.mblf-radio-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(128, 128, 128, 0.1);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
}

.mblf-radio-option:hover {
    background: rgba(128, 128, 128, 0.15);
}

.mblf-radio-option.mblf-radio-selected {
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.mblf-radio-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(128, 128, 128, 0.5);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mblf-radio-selected .mblf-radio-dot {
    border-color: inherit;
}

.mblf-radio-selected .mblf-radio-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
}

/* Companion Inputs (dynamic) */
.mblf-companion-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.mblf-companion-inputs:empty {
    margin-top: 0;
}

.mblf-companion-inputs .mblf-companion-name {
    width: 100%;
    border: none !important;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-radius: 25px !important;
    padding: 0 24px;
    min-height: 48px;
    font-size: 15px;
    font-family: inherit;
    color: #000;
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.mblf-companion-inputs .mblf-companion-name::placeholder {
    color: rgba(128, 128, 128, 0.5);
}

.mblf-companion-inputs .mblf-companion-name:focus {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.mblf-companion-inputs .mblf-companion-name.mblf-invalid {
    box-shadow: 0 0 0 2px #ff6b6b;
}

/* Validation Error */
.mblf-step-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 0;
    margin-left: 14px;
    text-align: left;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, margin-top 0.3s ease, max-height 0.3s ease;
}

.mblf-step-error.mblf-visible {
    opacity: 1;
    max-height: 30px;
    margin-top: 10px;
}

.mblf-step-input.mblf-invalid,
.mblf-step-select.mblf-invalid,
.mblf-step-textarea.mblf-invalid {
    box-shadow: 0 0 0 2px #ff6b6b;
}

/* Navigation Buttons */
.mblf-form-nav {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
    align-items: center;
}

.mblf-nav-btn {
    border: none;
    border-radius: 50px;
    min-height: 56px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mblf-btn-back {
    flex: 0 0 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.15);
    color: inherit;
    font-size: 20px;
    padding: 0;
}

.mblf-btn-back:hover {
    background: rgba(128, 128, 128, 0.25);
}

.mblf-btn-next {
    flex: 1;
    width: 100%;
}

.mblf-nav-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.mblf-nav-btn:active {
    transform: scale(0.98);
}

/* Loading State */
.mblf-loading-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: inherit;
    z-index: 10;
}

.mblf-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: mblfSpin 0.8s linear infinite;
}

@keyframes mblfSpin {
    to {
        transform: rotate(360deg);
    }
}

.mblf-loading-state p {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

/* Final Card */
.mblf-final-card-container {
    position: absolute;
    inset: 0;
    z-index: 5;
    animation: mblfFadeIn 0.6s ease;
}

.mblf-final-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    box-sizing: border-box;
    text-align: center;
}

.mblf-final-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.mblf-final-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mblf-final-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.mblf-final-checkmark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    animation: mblfPop 0.5s ease;
}

@keyframes mblfPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.mblf-anim-reveal {
    animation: mblfMagicReveal 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
}

@keyframes mblfMagicReveal {
    0% {
        opacity: 0;
        clip-path: inset(0 0 0 100%);
        transform: translateX(10px);
    }

    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0%);
        transform: translateX(0);
    }
}

.mblf-final-title {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 16px 0;
}

.mblf-final-message {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

.mblf-final-close-btn {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    padding: 14px 32px;
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.mblf-final-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   RESPONSIVE - Desktop styling
   ============================================ */
@media (min-width: 768px) {

    /* Undo the mobile floating card border hack on desktop */
    .mblf-fullscreen-app {
        inset: 0;
        width: 100vw;
        height: 100dvh;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.92);
        padding: 40px;
    }

    /* Wrap hero and container to look like a modal */
    .mblf-form-hero {
        position: absolute;
        inset: 0;
        height: 100%;
        opacity: 0.3;
        z-index: 0;
    }

    .mblf-form-hero-gradient {
        background: radial-gradient(circle at center, transparent, #000 80%);
    }

    .mblf-form-container {
        position: relative;
        z-index: 10;
        background: var(--mb-bg-color);
        max-width: 480px;
        border-radius: 30px;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
        padding: 40px;
        margin: auto;
        height: auto;
        flex: 0 1 auto;
    }

    .mblf-form-header-texts {
        margin-top: 0;
    }

    .mblf-final-card-container {
        max-width: 480px;
        position: relative;
        inset: auto;
        height: 600px;
        margin: auto;
        border-radius: 30px;
        overflow: hidden;
    }

    .mblf-progress-bar {
        max-width: 420px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: 24px;
        width: calc(100% - 100px);
    }

    .mblf-fullscreen-app .mblf-close-btn {
        right: calc(50% - 240px);
        top: 24px;
    }
}

/* iOS safe areas */
@supports (padding-top: env(safe-area-inset-top)) {
    .mblf-progress-bar {
        top: calc(16px + env(safe-area-inset-top));
    }

    .mblf-fullscreen-app .mblf-close-btn {
        top: calc(24px + env(safe-area-inset-top));
    }
}

/* Body lock */
body.mblf-body-locked {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}