/* HCSS Survey - Public Survey Styles */

.survey-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--hcss-teal-50) 0%, var(--hcss-gray-50) 50%);
    padding-bottom: 3rem;
}

/* --- Header --- */
.survey-header {
    background: linear-gradient(135deg, var(--hcss-teal) 0%, var(--hcss-teal-dark) 100%);
    color: var(--hcss-white);
    padding: 1.25rem 0;
    box-shadow: var(--shadow-md);
}

.survey-header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.survey-logo {
    height: 48px;
    width: auto;
}

.survey-header-text h1 {
    color: var(--hcss-white);
    font-size: 1.25rem;
    font-weight: 700;
}

.survey-header-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    margin: 0;
}

/* --- Progress Bar --- */
.survey-progress {
    background: var(--hcss-white);
    border-bottom: 1px solid var(--hcss-gray-200);
    padding: 0.75rem 0;
}

.progress-bar {
    height: 6px;
    background: var(--hcss-gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hcss-teal), var(--hcss-blue));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--hcss-gray-500);
    margin-top: 0.375rem;
    text-align: right;
}

/* --- Survey Card --- */
.survey-container {
    max-width: 720px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.survey-intro {
    background: var(--hcss-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-top: 4px solid var(--hcss-teal);
}

.survey-intro h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.survey-intro p {
    color: var(--hcss-gray-600);
    font-size: 0.9375rem;
}

.survey-required-note {
    font-size: 0.8125rem;
    color: var(--hcss-error);
    margin-top: 0.75rem;
}

/* --- Question Groups --- */
.question-group {
    background: var(--hcss-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.question-group:hover {
    box-shadow: var(--shadow-md);
}

.question-group:focus-within {
    border-left-color: var(--hcss-teal);
}

.question-group.has-error {
    border-left-color: var(--hcss-error);
    background-color: var(--hcss-error-light);
}

.question-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--hcss-gray-800);
    margin-bottom: 0.75rem;
}

/* --- File Upload --- */
.file-upload-zone {
    border: 2px dashed var(--hcss-gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--hcss-gray-50);
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: var(--hcss-teal);
    background: var(--hcss-teal-50);
}

.file-upload-zone .upload-icon {
    font-size: 2rem;
    color: var(--hcss-gray-400);
    margin-bottom: 0.5rem;
}

.file-upload-zone .upload-text {
    font-size: 0.875rem;
    color: var(--hcss-gray-600);
}

.file-upload-zone .upload-text strong {
    color: var(--hcss-teal);
}

.file-upload-zone .upload-hint {
    font-size: 0.75rem;
    color: var(--hcss-gray-400);
    margin-top: 0.25rem;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--hcss-gray-50);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}

.file-preview .file-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--hcss-gray-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview .file-size {
    font-size: 0.75rem;
    color: var(--hcss-gray-500);
}

.file-preview .file-remove {
    background: none;
    border: none;
    color: var(--hcss-error);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    line-height: 1;
}

/* --- Upload Progress --- */
.upload-progress {
    margin-top: 0.5rem;
}

.upload-progress-bar {
    height: 4px;
    background: var(--hcss-gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: var(--hcss-teal);
    transition: width 0.2s ease;
}

/* --- Submit Section --- */
.survey-submit {
    background: var(--hcss-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.survey-submit .btn-primary {
    min-width: 200px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.survey-submit .btn-primary:disabled {
    background-color: var(--hcss-gray-300);
    border-color: var(--hcss-gray-300);
}

/* --- Success Screen --- */
.survey-success {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--hcss-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.survey-success .success-icon {
    width: 4rem;
    height: 4rem;
    background: var(--hcss-success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--hcss-success);
}

.survey-success h2 {
    margin-bottom: 0.75rem;
}

.survey-success p {
    color: var(--hcss-gray-600);
    max-width: 400px;
    margin: 0 auto;
}

/* --- Footer --- */
.survey-footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.75rem;
    color: var(--hcss-gray-400);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .survey-intro { padding: 1.25rem; }
    .question-group { padding: 1.25rem; }
    .survey-submit { padding: 1.25rem; }
    .survey-success { padding: 2rem 1.25rem; }
}
