/* Nasal Health Assessment Frontend Styles */

.nha-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
}

.nha-step {
    display: none;
    animation: nhaFadeIn 0.5s ease;
}

.nha-step.active {
    display: block;
}

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

.nha-question-card {
    text-align: center;
}

.nha-container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.nha-container h3 {
    color: #555;
    margin-bottom: 20px;
    font-size: 20px;
}

.nha-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.nha-btn {
    background: #F1B434;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    font-family: inherit;
}

.nha-btn:hover {
    background: #009CDE;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}

.nha-btn:active {
    transform: translateY(0);
}

.nha-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.nha-text-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.nha-text-input:required {
    border-color: #e2e8f0;
}

.nha-text-input:required:invalid {
    border-color: #f56565;
}

.nha-text-input:required:valid {
    border-color: #48bb78;
}

.nha-text-input:focus {
    outline: none;
    border-color: #667eea;
}

.nha-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin: 30px 0;
}

.nha-option {
    background: #F0EBE1;
    border: 2px solid #F0EBE1;
    padding: 15px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.nha-option:hover {
    border-color: #EFEEE6;
    background: #EFEEE6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nha-option.selected {
    background: #B2E1F5 ;
    color: #fff;
    border-color: #B2E1F5 ;
}

.nha-option strong {
    display: block;
    margin-bottom: 5px;
}

.nha-option small {
    display: block;
    margin-top: 5px;
    opacity: 0.8;
    font-size: 11px;
}

.nha-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nha-nav-buttons div {
    width: 100px;
}

.nha-progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.nha-progress-fill {
    background: #F1B434;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.nha-score-display {
    font-size: 72px;
    font-weight: bold;
    color: #667eea;
    margin: 30px 0;
}

.nha-results-screen {
    text-align: center;
}

.nha-severity-indicator {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 18px;
    font-weight: 500;
}

.nha-severity-mild {
    background: #d4edda;
    color: #155724;
}

.nha-severity-moderate {
    background: #fff3cd;
    color: #856404;
}

.nha-severity-severe {
    background: #f8d7da;
    color: #721c24;
}

.nha-contact-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.nha-success-message,
.nha-error-message {
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    animation: nhaFadeIn 0.5s ease;
}

.nha-success-message {
    background: #4CAF50;
}

.nha-error-message {
    background: #f44336;
}

.nha-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: nhaSpin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes nhaSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.nha-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.nha-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.nha-modal-header {
    background: #667eea;
    color: #fff;
    padding: 15px 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nha-modal-title {
    font-size: 22px;
    font-weight: bold;
}

.nha-close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0 10px;
}

.nha-modal-body {
    padding: 20px;
}

.nha-testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.nha-testimonial-video {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

.nha-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.nha-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.nha-testimonial-info {
    margin-top: 15px;
    text-align: center;
    color: #555;
    font-size: 15px;
}

.nha-modal-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.nha-btn-secondary {
    background: #6c757d;
}

.nha-btn-secondary:hover {
    background: #5a6268;
}

/* Honeypot field - hidden from users */
.nha-email-confirm-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nha-container {
        padding: 30px 20px;
    }
    
    .nha-container h2 {
        font-size: 24px;
    }
    
    .nha-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nha-modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .nha-container {
        padding: 20px;
    }
    
    .nha-container h2 {
        font-size: 20px;
    }
    
    .nha-container h3 {
        font-size: 18px;
    }
    
    .nha-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .nha-testimonial-video {
        min-width: 100%;
    }
    
    .nha-score-display {
        font-size: 48px;
    }
}