/* ==========================================================================
   Rearden Marketing - Qualifier Modal Styles
   Modern Dark Glassmorphism Design System (#bbff00 accent)
   ========================================================================== */

:root {
    --rq-primary: #bbff00;
    --rq-primary-hover: #a5e600;
    --rq-dark-bg: #0d0d0d;
    --rq-card-bg: #161616;
    --rq-border: #262626;
    --rq-text-main: #ffffff;
    --rq-text-muted: #a1a1aa;
    --rq-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 30px rgba(187, 255, 0, 0.15);
}

/* Modal Overlay */
.rq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

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

/* Modal Container */
.rq-modal-container {
    background: var(--rq-dark-bg);
    border: 1px solid var(--rq-border);
    border-radius: 20px;
    width: 100%;
    max-width: 540px;
    box-shadow: var(--rq-shadow);
    color: var(--rq-text-main);
    position: relative;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Modal Header & Close Button */
.rq-modal-header {
    padding: 24px 28px 16px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rq-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--rq-border);
    color: var(--rq-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.rq-modal-close:hover {
    background: var(--rq-primary);
    color: #000000;
    border-color: var(--rq-primary);
}

/* Step Progress Indicator */
.rq-progress-wrapper {
    margin-top: 10px;
}

.rq-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--rq-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rq-progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.rq-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #94d600, var(--rq-primary));
    width: 25%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Step Content Panels */
.rq-modal-body {
    padding: 24px 28px;
    min-height: 280px;
}

.rq-step-panel {
    display: none;
    animation: rqFadeIn 0.35s ease forwards;
}

.rq-step-panel.rq-active-panel {
    display: block;
}

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

.rq-step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    line-height: 1.3;
}

.rq-step-subtitle {
    font-size: 14px;
    color: var(--rq-text-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Form Controls & Inputs */
.rq-form-group {
    margin-bottom: 16px;
}

.rq-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 6px;
}

.rq-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--rq-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s ease;
}

.rq-input:focus {
    outline: none;
    border-color: var(--rq-primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(187, 255, 0, 0.2);
}

.rq-input::placeholder {
    color: #52525b;
}

/* Selection Cards (Services & Budget) */
.rq-option-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rq-option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--rq-border);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
    user-select: none;
}

.rq-option-card:hover {
    border-color: rgba(187, 255, 0, 0.5);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.rq-option-card.rq-selected {
    border-color: var(--rq-primary);
    background: rgba(187, 255, 0, 0.08);
    box-shadow: 0 0 15px rgba(187, 255, 0, 0.15);
}

.rq-radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--rq-border);
    margin-right: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rq-option-card.rq-selected .rq-radio-circle {
    border-color: var(--rq-primary);
    background: var(--rq-primary);
}

.rq-option-card.rq-selected .rq-radio-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #000000;
}

.rq-option-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.rq-option-desc {
    font-size: 12px;
    color: var(--rq-text-muted);
    margin-top: 2px;
}

/* Disqualification Feedback Screen */
.rq-disqualified-box {
    text-align: center;
    padding: 20px 10px;
}

.rq-disqualified-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--rq-primary);
    color: var(--rq-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

/* Modal Footer & Buttons */
.rq-modal-footer {
    padding: 16px 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rq-btn {
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rq-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--rq-text-muted);
}

.rq-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.rq-btn-primary {
    background: var(--rq-primary);
    color: #000000;
    box-shadow: 0 4px 14px rgba(187, 255, 0, 0.35);
}

.rq-btn-primary:hover {
    background: var(--rq-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(187, 255, 0, 0.5);
}

.rq-btn-full {
    width: 100%;
}

.rq-error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .rq-modal-container {
        border-radius: 16px;
        max-width: 100%;
    }
    .rq-modal-header {
        padding: 20px 20px 14px;
    }
    .rq-modal-body {
        padding: 18px 20px;
        min-height: 260px;
    }
    .rq-modal-footer {
        padding: 14px 20px 20px;
    }
    .rq-step-title {
        font-size: 18px;
    }
    .rq-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}
