/* Lead Modal Overlay */
.lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 25, 44, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lead-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.lead-modal {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lead-modal-overlay.active .lead-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Modal Header */
.lead-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.lead-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-navy, #0B192C);
    font-weight: 700;
}

.lead-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 50%;
}

.lead-modal-close:hover {
    color: var(--color-error, #ef4444);
    background: #fef2f2;
}

/* Progress Indicator */
.lead-modal-progress {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem;
    margin-top: 1rem;
}

.progress-step {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.progress-step.active {
    background: var(--color-orange, #FF6B35);
}

/* Modal Body */
.lead-modal-body {
    padding: 1.5rem;
    position: relative;
    min-height: 300px;
}

/* Wizard Steps */
.wizard-step {
    animation: slideInRight 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-title {
    font-size: 1.1rem;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.step-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Radio Cards */
.radio-card-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-card {
    cursor: pointer;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    color: var(--color-navy);
    font-weight: 600;
    transition: all 0.2s ease;
}

.radio-card-content svg {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.radio-card input:checked + .radio-card-content {
    border-color: var(--color-orange);
    background: #FFF5EE;
}

.radio-card input:checked + .radio-card-content svg {
    color: var(--color-orange);
}

/* Mobile Bottom Sheet */
@media (max-width: 600px) {
    .lead-modal-overlay {
        align-items: flex-end;
    }
    .lead-modal {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }
    .lead-modal-overlay.active .lead-modal {
        transform: translateY(0);
    }
    .lead-modal-body {
        padding-bottom: env(safe-area-inset-bottom, 2rem);
    }
}
