/* AI Readiness Assessment Styles */

/* Assessment Container */
.assessment-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header Section */
.assessment-header {
    text-align: center;
    margin-bottom: 50px;
}

.assessment-header h1 {
    font-size: 2.8em;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.assessment-header .subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.assessment-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.info-item .material-symbols-outlined {
    color: var(--accent-orange);
    font-size: 20px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
    position: sticky;
    top: 90px;
    background: var(--bg-primary);
    padding: 20px 0;
    z-index: 100;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 5%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Section Containers */
.section-container {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.section-container.active {
    display: block;
}

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

.section-header {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-blue);
    margin-bottom: 30px;
    box-shadow: 0 3px 15px var(--shadow-light);
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 2em;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin: 0;
}

/* Question Cards */
.question-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 5px 20px var(--shadow-light);
}

.question-header {
    margin-bottom: 20px;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 15px;
    font-size: 0.9em;
}

.question-header h3 {
    display: inline;
    color: var(--text-primary);
    font-size: 1.3em;
    font-weight: 600;
    vertical-align: middle;
}

.question-note {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-top: 8px;
    font-style: italic;
}

/* Radio Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-option:hover {
    border-color: var(--accent-blue);
    transform: translateX(3px);
    box-shadow: 0 3px 12px var(--shadow-light);
}

.radio-option input[type="radio"] {
    margin-right: 15px;
    margin-top: 4px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--accent-orange);
}

.radio-option input[type="radio"]:checked ~ .option-content {
    color: var(--text-primary);
}

.radio-option:has(input:checked) {
    border-color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.05);
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05em;
}

.option-description {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Checkbox Options */
.checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 3px 12px var(--shadow-light);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-orange);
}

.checkbox-option:has(input:checked) {
    border-color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.05);
}

/* Slider Controls */
.slider-container {
    padding: 10px 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 15px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-orange);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.6);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-orange);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.6);
}

.slider-value {
    text-align: center;
    font-size: 1.3em;
    color: var(--accent-orange);
    font-weight: 600;
}

/* Text Inputs */
.text-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.text-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.text-input {
    resize: vertical;
    min-height: 100px;
}

.character-count {
    text-align: right;
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 5px;
}

.select-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-primary);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Contact Form */
.contact-form {
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-orange);
}

.checkbox-label a {
    color: var(--accent-blue);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.prev-button {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.prev-button:hover {
    border-color: var(--accent-blue);
    transform: translateX(-3px);
}

.prev-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-button,
.submit-button {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.next-button:hover,
.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.submit-button {
    background: var(--accent-blue);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.submit-button:hover {
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.4);
}

/* Results Section */
.results-section {
    animation: fadeInUp 0.8s ease-out;
}

.results-header {
    text-align: center;
    background: var(--bg-secondary);
    padding: 50px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.results-header h2 {
    color: var(--text-primary);
    font-size: 2.2em;
    margin-bottom: 30px;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    font-weight: bold;
    color: var(--accent-orange);
}

.score-max {
    font-size: 0.4em;
    color: var(--text-secondary);
}

.readiness-level {
    margin-top: 20px;
}

.readiness-level h3 {
    color: var(--text-primary);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.readiness-level p {
    color: var(--text-secondary);
    font-size: 1.1em;
}

/* Results Breakdown */
.results-breakdown {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px var(--shadow-light);
}

.results-breakdown h3 {
    color: var(--text-primary);
    font-size: 1.6em;
    margin-bottom: 25px;
}

.breakdown-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breakdown-item {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border-left: 4px solid var(--accent-blue);
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.breakdown-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05em;
}

.breakdown-score {
    font-weight: 600;
    color: var(--accent-orange);
    font-size: 1.1em;
}

.breakdown-bar {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
    border-radius: 5px;
    transition: width 1s ease-out;
    width: 0%;
}

/* Recommendations Section */
.recommendations-section,
.next-steps-section {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px var(--shadow-light);
}

.recommendations-section h3,
.next-steps-section h3 {
    color: var(--text-primary);
    font-size: 1.6em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.recommendation-card,
.next-step-card {
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-orange);
}

.recommendation-card h4,
.next-step-card h4 {
    color: var(--text-primary);
    font-size: 1.3em;
    margin-bottom: 12px;
}

.recommendation-card p,
.next-step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.recommendation-card ul,
.next-step-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.recommendation-card li,
.next-step-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.recommendation-card li:before,
.next-step-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.priority-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-orange);
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    margin-top: 40px;
}

.cta-card {
    background: linear-gradient(135deg, var(--accent-orange), #e55a2b);
    color: white;
    padding: 50px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

.cta-card h3 {
    font-size: 2em;
    margin-bottom: 15px;
}

.cta-card p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-buttons .cta-button {
    background: white;
    color: var(--accent-orange);
}

.cta-buttons .cta-button:hover {
    background: var(--bg-secondary);
}

.cta-buttons .secondary-button {
    background: transparent;
    border-color: white;
    color: white;
}

.cta-buttons .secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Print Styles */
@media print {
    nav,
    footer,
    .progress-container,
    .form-navigation,
    .cta-buttons {
        display: none !important;
    }

    .assessment-container {
        padding: 20px;
    }

    .results-section {
        page-break-inside: avoid;
    }

    .breakdown-item,
    .recommendation-card,
    .next-step-card {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .assessment-container {
        padding: 40px 15px;
    }

    .assessment-header h1 {
        font-size: 2.2em;
    }

    .assessment-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .section-header {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 1.6em;
    }

    .question-card {
        padding: 20px;
    }

    .question-header h3 {
        font-size: 1.1em;
        display: block;
        margin-top: 10px;
    }

    .checkbox-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 20px;
    }

    .form-navigation {
        flex-direction: column;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }

    .results-header {
        padding: 30px 20px;
    }

    .results-breakdown,
    .recommendations-section,
    .next-steps-section {
        padding: 25px 20px;
    }

    .cta-card {
        padding: 30px 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .cta-button,
    .cta-buttons .secondary-button {
        width: 100%;
    }

    .score-circle {
        width: 160px;
        height: 160px;
    }

    .score-value {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .assessment-header h1 {
        font-size: 1.8em;
    }

    .question-number {
        width: 30px;
        height: 30px;
        font-size: 0.85em;
    }

    .option-title {
        font-size: 1em;
    }

    .option-description {
        font-size: 0.85em;
    }
}

/* Loading and Animation States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

/* Validation States */
.text-input.error,
.select-input.error {
    border-color: #e74c3c;
}

.text-input.error:focus,
.select-input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 5px;
}

.success-message {
    color: #2ecc71;
    font-size: 0.85em;
    margin-top: 5px;
}
