:root {
    --bqw-primary: #0073aa;
    --bqw-primary-hover: #005177;
    --bqw-secondary: #0f172a;
    --bqw-bg: #f8fafc;
    --bqw-white: rgba(255, 255, 255, 0.85);
    /* Glassmorphism base */
    --bqw-white-solid: #ffffff;
    --bqw-text: #334155;
    --bqw-text-light: #64748b;
    --bqw-border: rgba(226, 232, 240, 0.6);
    --bqw-success: #10b981;
    --bqw-error: #ef4444;
    --bqw-radius: 20px;
    --bqw-shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --bqw-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    --bqw-font: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bqw-gradient: linear-gradient(135deg, var(--bqw-primary) 0%, #38bdf8 100%);
}

.bqw-page-container {
    font-family: var(--bqw-font);
    color: var(--bqw-text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bqw-bg);
}

.bqw-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO */
.bqw-hero {
    padding: 100px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bqw-hero::before {

    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.bqw-hero::after {

    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 115, 170, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.bqw-hero .bqw-container {
    position: relative;
    z-index: 1;
}

.bqw-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--bqw-secondary);
    line-height: 1.1;
}

.bqw-subtitle {
    font-size: 1.25rem;
    color: var(--bqw-text-light);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* BUTTONS */
.bqw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.bqw-btn-primary {
    background: var(--bqw-gradient);
    color: var(--bqw-white-solid);
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.25);
    border: none;
}

.bqw-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 115, 170, 0.35);
}

.bqw-btn-secondary {
    background: transparent;
    border: 2px solid var(--bqw-border);
    color: var(--bqw-text);
}

.bqw-btn-secondary:hover {
    border-color: var(--bqw-primary);
    color: var(--bqw-primary);
}

/* TRUST BADGES */
.bqw-trust-badges {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bqw-badge {
    background: var(--bqw-white-solid);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bqw-text);
    box-shadow: var(--bqw-shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* WIZARD CONTAINER */
.bqw-wizard-section {
    padding: 0 0 80px 0;
}

.bqw-wizard-container {
    background: var(--bqw-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    box-shadow: var(--bqw-shadow-soft);
    padding: 60px;
    max-width: 950px;
    margin: -80px auto 0 auto;
    position: relative;
    z-index: 10;
}

/* PROGRESS PILL */
.bqw-progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.bqw-progress-pill {
    flex-grow: 1;
    height: 12px;
    background: rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    margin-right: 20px;
    overflow: hidden;
    position: relative;
}

.bqw-progress-fill {
    height: 100%;
    background: var(--bqw-gradient);
    width: 0%;
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.bqw-step-indicator {
    font-weight: 600;
    color: var(--bqw-text-light);
    font-size: 0.9rem;
}

/* WIZARD STEPS */
.bqw-step {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smoother bezier */
}

.bqw-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BENTO GRID (Step 1) */
.bqw-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.bqw-card-option {
    position: relative;
    cursor: pointer;
    height: 100%;
}

.bqw-card-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bqw-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid var(--bqw-border);
    border-radius: var(--bqw-radius);
    box-sizing: border-box;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy hover */
}

.bqw-card-option input:checked+.bqw-card-content {
    border-color: var(--bqw-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 115, 170, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.bqw-card-option:hover .bqw-card-content {
    border-color: rgba(0, 115, 170, 0.5);
    transform: translateY(-5px);
    box-shadow: var(--bqw-shadow-hover);
    background: rgba(255, 255, 255, 0.8);
}

.bqw-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--bqw-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}

.bqw-icon i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.bqw-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.bqw-card-desc {
    font-size: 0.9rem;
    color: var(--bqw-text-light);
}

/* FORM FIELDS GRID (Steps 2-4) */
.bqw-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.bqw-form-group.full {
    grid-column: span 2;
}

.bqw-form-group.half {
    grid-column: span 1;
}

/* Form Styles */
.bqw-step-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 45px;
    color: var(--bqw-secondary);
    letter-spacing: -0.02em;
}

.bqw-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--bqw-secondary);
    font-size: 0.95rem;
}

.bqw-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    font-size: 1.05rem;
    color: var(--bqw-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.bqw-input:focus {
    background: var(--bqw-white-solid);
    border-color: var(--bqw-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.15);
    transform: translateY(-2px);
}

.bqw-input::placeholder {
    color: #a0aec0;
}

/* Checkbox Style */
.bqw-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    padding: 18px;
    border-radius: 16px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.bqw-checkbox:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 115, 170, 0.3);
}

.bqw-checkbox input {
    margin-top: 4px;
    width: 22px;
    height: 22px;
    accent-color: var(--bqw-primary);
    cursor: pointer;
}

/* Footer CTA */
.bqw-footer-cta {
    background: var(--bqw-white);
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--bqw-border);
}

.bqw-footer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.bqw-btn-whatsapp {
    background: #25D366;
    color: white;
}

/* Success Message */
.bqw-success-message {
    text-align: center;
    padding: 40px;
}

.bqw-success-message i {
    font-size: 4rem;
    color: var(--bqw-success);
    margin-bottom: 20px;
}

/* NAVIGATION BUTTONS (Desktop default) */
.bqw-nav-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--bqw-border);
}

/* ERROR STATES & ANIMATION */
.bqw-input.error {
    border-color: var(--bqw-error);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.2);
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .bqw-wizard-container {
        padding: 30px 20px;
    }

    .bqw-fields-grid {
        grid-template-columns: 1fr;
    }

    .bqw-form-group.half {
        grid-column: span 1;
        /* Actually span 1 of 1 column now */
    }

    .bqw-form-group.full {
        grid-column: span 1;
    }

    .bqw-nav-buttons {
        position: fixed;
        /* Force fixed to viewport */
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        padding: 15px 20px;
        margin: 0;
        /* Reset margins for fixed */
        border-top: 1px solid var(--bqw-border);
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        /* Max Z-index */
        display: flex;
        justify-content: space-between;
        gap: 10px;
        box-sizing: border-box;
        /* Include padding in width */
    }

    .bqw-wizard-container {
        padding-bottom: 30px;
        /* Standard padding */
    }

    .bqw-step {
        padding-bottom: 100px;
        /* Space for the fixed bar so it doesn't cover connect */
    }

    .bqw-input {
        font-size: 16px;
        /* Prevent IOS zoom */
    }

    /* Responsive Buttons - Robust Fix */
    .bqw-cta-group,
    .bqw-footer-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
    }

    .bqw-btn {
        width: 100%;
        /* Go full width on mobile for better touch target */
        max-width: 320px;
        /* But cap it so it's not huge on tablets */
        margin-bottom: 15px;
        font-size: 1rem;
        padding: 14px 20px;
        box-sizing: border-box;
    }

    .bqw-btn:last-child {
        margin-bottom: 0;
    }
}