/* ==========================================================================
   QR-Code Funnel Styles (Mobile First)
   ========================================================================== */

.funnel-wrapper {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Progress Bar */
.funnel-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    position: relative;
}

.funnel-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 2px;
}

.progress-step {
    width: 32px;
    height: 32px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
}

.progress-step.completed {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

/* Funnel Steps */
.funnel-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.funnel-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.funnel-step__title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: var(--text);
}

/* Options Grid */
.funnel-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 480px) {
    .funnel-options {
        grid-template-columns: 1fr 1fr;
    }
}

.funnel-option {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.funnel-option:hover {
    border-color: var(--primary);
    background: rgba(15, 59, 46, 0.05);
    transform: translateY(-2px);
}

.funnel-option input[type="radio"] {
    display: none; /* Hide standard radio */
}

/* Selected State */
.funnel-option.selected {
    border-color: var(--primary);
    background: rgba(15, 59, 46, 0.1);
    box-shadow: 0 4px 12px rgba(15, 59, 46, 0.15);
}

.funnel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: #0f3b2e;
    border-radius: 14px;
    color: #fff;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 59, 46, 0.16);
}

.funnel-icon svg {
    width: 1.8rem;
    height: 1.8rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.funnel-label {
    font-weight: 600;
    color: var(--text);
}

/* Funnel Controls */
.funnel-controls {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--text);
}

.btn-next {
    margin-left: auto;
}

/* Form Fields within Funnel */
.funnel-form-group {
    margin-bottom: var(--space-md);
    text-align: left;
}

/* QR Code Intro */
.qr-intro {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.qr-intro__badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0;
}

.qr-intro h1,
.qr-intro h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.qr-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xxl);
}

@media (min-width: 480px) {
    .quick-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .quick-actions .btn {
        width: auto;
        min-width: 200px;
    }
}

/* Sticky Action Bar (Mobile only usually, but let's make it robust) */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    display: flex;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px;
    gap: 10px;
}

@media (min-width: 768px) {
    .mobile-action-bar {
        display: none; /* Hide on desktop */
    }
    
    /* Remove padding bottom on desktop */
    body {
        padding-bottom: 0 !important;
    }
}

/* Ensure body has padding so the action bar doesn't overlap content */
@media (max-width: 767px) {
    body {
        padding-bottom: 70px; 
    }
    /* Hide the old single floating button if we use the new bar */
    .mobile-call-btn {
        display: none !important;
    }
}

.action-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.action-bar-btn--call {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
}

.action-bar-btn--wa {
    background: #25D366; /* WhatsApp Green */
    color: white;
    border: 2px solid #25D366;
}
