/* Assessment Frontend Styles */

.air-assessment-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Form sections */

.air-section {
    margin-bottom: 30px;
}

.air-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 28px;
}

.air-section > p {
    margin: 0 0 20px;
    color: #666;
    font-size: 16px;
}

/* Form groups */

.air-form-group {
    margin-bottom: 24px;
}

.air-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.air-form-group input[type='text'],
.air-form-group input[type='email'],
.air-form-group input[type='tel'],
.air-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.air-form-group input[type='text']:focus,
.air-form-group input[type='email']:focus,
.air-form-group input[type='tel']:focus,
.air-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Checkboxes */

.air-checkbox-group .air-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.air-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.air-checkbox-group input[type='checkbox'] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Range slider */

.air-range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 15px 0 10px;
}

.air-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.air-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: none;
}

.air-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* Questions section */

.air-assessment-questions {
    margin-top: 20px;
}

.air-progress-container {
    margin-bottom: 30px;
}

.air-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.air-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: width 0.3s ease;
}

.air-progress-text {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* Pillar sections */

.air-pillar-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.air-pillar-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
    font-size: 20px;
}

.air-pillar-description {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

/* Question blocks */

.air-question-block {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.air-question-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

.air-help-text {
    margin: 8px 0 15px;
    padding: 10px;
    background: #f0f7ff;
    border-left: 3px solid #0073aa;
    font-size: 13px;
    color: #555;
}

/* Scale response */

.air-scale-response {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.air-scale-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.air-scale-label input {
    display: none;
}

.air-scale-label span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.air-scale-label input:checked + span {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.air-scale-label:hover span {
    border-color: #0073aa;
    background: #f5f9ff;
}

/* Buttons */

.button {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background: #d0d0d0;
}

.button-primary {
    background: #0073aa;
    color: white;
}

.button-primary:hover {
    background: #005a87;
}

.button-large {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.air-next-btn,
.air-submit-btn {
    width: 100%;
    margin-top: 30px;
}

.air-next-btn:disabled,
.air-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form actions */

.air-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.air-form-actions .button {
    flex: 1;
    margin-top: 0;
}

.air-back-btn {
    background: #f0f0f0;
    color: #333;
}

.air-back-btn:hover {
    background: #e0e0e0;
}

/* Loading indicator */

.air-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px 0;
}

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

/* Results page */

.air-results-wrapper {
    max-width: 900px;
    margin: 40px auto;
}

.air-results-wrapper h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

.air-readiness-report {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.air-readiness-report h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: #0073aa;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.air-readiness-report h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.final-score {
    font-size: 64px;
    font-weight: bold;
    text-align: center;
    color: #0073aa;
    margin: 30px 0;
}

.readiness-level {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
}

.score-description {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Pillar table */

.pillar-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.pillar-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.pillar-name {
    font-weight: 600;
    width: 30%;
}

.pillar-score {
    width: 20%;
    font-weight: 600;
    color: #0073aa;
}

.pillar-bar {
    position: relative;
    height: 24px;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Opportunities and risks */

.opportunities-section,
.risks-section {
    margin: 30px 0;
}

.opportunity,
.risk {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #28a745;
    border-radius: 4px;
}

.risk {
    border-left-color: #dc3545;
}

.risk.priority-critical {
    background: #fee;
    border-left-color: #c00;
}

.opportunity h3,
.risk h3 {
    margin: 0 0 10px;
    color: #333;
}

.opportunity p,
.risk p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Call to Action */

.air-results-cta {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 40px;
}

.air-results-cta h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.air-results-cta p {
    margin: 0 0 20px;
    font-size: 16px;
    opacity: 0.95;
}

.next-steps {
    background: #f0f7ff;
    padding: 20px;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    margin: 30px 0;
}

.next-steps h2 {
    margin-top: 0;
    color: #0073aa;
}

/* Responsive */

@media (max-width: 600px) {
    .air-assessment-wrapper {
        margin: 20px;
        padding: 20px;
    }

    .air-scale-response {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .air-scale-label span {
        padding: 8px 4px;
        font-size: 12px;
    }

    .air-form-actions {
        flex-direction: column;
    }

    .air-form-actions .button {
        width: 100%;
    }

    .air-results-wrapper {
        margin: 20px;
    }

    .air-readiness-report {
        padding: 20px;
    }

    .final-score {
        font-size: 48px;
    }
}
