/* ============================================
   AI OPPORTUNITY ASSESSMENT - STYLES
   ============================================ */

.assessment-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Progress Bar */
.assessment-progress {
    margin-bottom: 3rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.progress-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.step-indicator {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-indicator.completed .step-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.step-indicator.current .step-icon {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: white;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
}

.step-indicator.pending .step-icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-number {
    font-size: 0.875rem;
    font-weight: 600;
}

.step-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.step-indicator.current .step-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.step-indicator.completed .step-name {
    color: var(--text-secondary);
}

/* Section Wrapper */
.section-wrapper {
    animation: slideIn 0.4s ease-out;
}

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

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Question Blocks */
.question-block {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.question-block:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.question-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.question-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateX(4px);
}

.radio-label input[type="radio"] {
    margin-right: 1rem;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--accent-purple);
}

.radio-label input[type="radio"]:checked + .radio-text {
    color: var(--accent-cyan);
    font-weight: 600;
}

.radio-label:has(input:checked) {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-purple);
}

.radio-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
}

/* Scale Questions */
.scale-question {
    background: rgba(255, 255, 255, 0.04);
}

.scale-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.scale-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.scale-option:has(input:checked) {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--accent-cyan);
}

.scale-option input[type="radio"] {
    display: none;
}

.scale-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.scale-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.scale-option:has(input:checked) .scale-number {
    color: var(--accent-cyan);
}

.scale-option:has(input:checked) .scale-label {
    color: var(--accent-cyan);
}

/* Contact Form */
.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input {
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.consent-box {
    background: rgba(168, 85, 247, 0.05);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-purple);
}

.checkbox-label span {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Navigation Buttons */
.assessment-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
    overflow: hidden;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: white;
    flex: 1;
    max-width: 300px;
    margin-left: auto;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

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

/* Loading States */
.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results-container {
    text-align: center;
    padding: 3rem 1rem;
}

.results-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-loading p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .step-indicators {
        gap: 0.25rem;
    }

    .step-name {
        font-size: 0.65rem;
        display: none; /* Hide step names on mobile to save space */
    }

    .step-indicator.current .step-name {
        display: block; /* Show only current step name */
    }

    .step-icon {
        width: 28px;
        height: 28px;
    }

    .step-number {
        font-size: 0.75rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .scale-group {
        grid-template-columns: repeat(3, 1fr);
    }

    .scale-label {
        font-size: 0.65rem;
    }

    .assessment-nav {
        flex-direction: column-reverse;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: none;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .question-block {
        padding: 1rem;
    }

    .radio-label {
        padding: 0.875rem 1rem;
    }

    .scale-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .scale-option {
        padding: 0.75rem 0.25rem;
    }

    .scale-number {
        font-size: 1.25rem;
    }
}
