/* Trauma Questionnaire Styles - From Working HTML */

/* Modal Overlay */
.trauma-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    backdrop-filter: blur(4px);
}

.trauma-modal-overlay.active {
    display: block;
}

/* Modal Container */
.trauma-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 100000;
}

/* Close Button */
.trauma-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-function: center;
    transition: all 0.2s;
    z-index: 10;
}

.trauma-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.trauma-modal-close::before,
.trauma-modal-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: #333;
}

.trauma-modal-close::before {
    transform: rotate(45deg);
}

.trauma-modal-close::after {
    transform: rotate(-45deg);
}

/* Modal Inner */
.trauma-modal-inner {
    height: 90vh;
    max-height: 800px;
    overflow-y: auto;
    padding: 40px;
}

/* Screens */
.modal-screen {
    display: none;
}

.modal-screen.active {
    display: block;
}

/* Instructions */
.trauma-modal-inner h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.trauma-modal-inner p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.instructions-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.instructions-list h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 15px;
}

.instructions-list ul {
    list-style: none;
    padding: 0;
}

.instructions-list li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 30px;
}

.instructions-list li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #667eea;
    font-size: 20px;
}

/* Question Screen */
#question-number {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#question-text {
    color: #333;
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 500;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.answer-btn:hover {
    background: #ffffff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Progress Bar */
.progress-container {
    margin-top: 30px;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Primary Button */
.primary-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.consent-text {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin-top: 15px;
}

/* Processing/Success Screens */
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon::after {
    content: '✓';
    color: white;
    font-size: 40px;
    font-weight: bold;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .trauma-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .trauma-modal-inner {
        padding: 30px 20px;
    }
    
    #question-text {
        font-size: 18px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
