/* ============================================
   Audit Wizard Styles
   ============================================ */

.audit-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Step Header */
.audit-header {
    text-align: center;
    margin-bottom: 2rem;
}

.audit-header .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.audit-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.audit-subtitle {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.8;
    max-width: 450px;
    margin: 0 auto;
}

/* Step Progress */
.step-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2rem;
}

.step-progress .step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: var(--transition);
}

.step-progress .step-dot.completed {
    background: var(--primary);
}

.step-progress .step-dot.active {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 217, 166, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.step-progress .step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    transition: var(--transition);
}

.step-progress .step-line.completed {
    background: var(--primary);
}

.step-progress .step-label {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.3rem;
    min-width: 60px;
}

.step-progress .step-label.completed {
    color: var(--primary);
}

.step-progress .step-label.active {
    color: var(--primary);
    font-weight: 600;
}

/* Form Card */
.audit-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.audit-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, #00b8d4 100%);
}

/* Radio / Toggle */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-card {
    flex: 1;
    min-width: 120px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card:hover {
    border-color: var(--primary);
}

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

.radio-card .radio-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.radio-card .radio-label {
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Result Cards */
.result-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-card .result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.1rem;
}

.result-card .result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

/* Score Gauge */
.score-gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.score-gauge.red {
    background: conic-gradient(var(--error) 0%, var(--error) var(--pct), #e0e0e0 var(--pct));
    border: 4px solid var(--error);
}

.score-gauge.yellow {
    background: conic-gradient(var(--warning) 0%, var(--warning) var(--pct), #e0e0e0 var(--pct));
    border: 4px solid var(--warning);
}

.score-gauge.green {
    background: conic-gradient(var(--success) 0%, var(--success) var(--pct), #e0e0e0 var(--pct));
    border: 4px solid var(--success);
}

/* CTAs inside audit flow */
.audit-next-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, var(--primary) 0%, #00b8d4 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 217, 166, 0.3);
    text-align: center;
    margin-top: 1.5rem;
}

.audit-next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 217, 166, 0.4);
}

.audit-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.audit-back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.audit-back-link:hover {
    color: var(--secondary);
}

/* Checkmark animation */
@keyframes checkmark {
    0% { stroke-dashoffset: 50; }
    100% { stroke-dashoffset: 0; }
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkmark 0.6s ease-out forwards;
}

/* Rating stars */
.rating-stars {
    color: #FFD700;
    font-size: 1.2rem;
}

/* Mobile */
@media (max-width: 768px) {
    .audit-container {
        padding: 1rem;
    }
    
    .audit-form-card {
        padding: 1.5rem;
    }
    
    .audit-title {
        font-size: 1.5rem;
    }
}
