* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: white;
    min-height: 100vh;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 20px 0;
}

.header-content {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 60px;
    width: auto;
}

.header-logo:hover {
    transform: scale(1.05);
}

.page-frame {
    background: white;
    padding: 0;
}

.content-wrapper {
    width: 1000px;
    margin: 0 auto;
    background: white;
    min-height: calc(100vh - 150px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-radius: 12px;
    margin-top: 30px;
}

.form-header {
    background: white;
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid #EB891B;
}

.form-title {
    color: #21426D;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.form-description {
    color: #21426D;
    font-size: 14px;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.progress-container {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #21426D, #EB891B);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: #21426D;
    font-weight: 600;
    font-size: 14px;
}

.form-container {
    padding: 40px;
    background: white;
}

.section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    color: #21426D;
    font-size: 28px;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #EB891B;
}

.question-group {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #21426D;
    transition: all 0.3s ease;
}

.question-group.missing-required {
    background: #fff3cd;
    border-left-color: #ffc107;
    border: 2px solid #ffc107;
}

.question-group.missing-required .question-title::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.question-title {
    color: #21426D;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.question-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    font-style: italic;
}

.scale-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.scale-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #21426D;
}

.scale-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.2;
}

.scale-ends {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #21426D;
    font-weight: 600;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-option, .radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.checkbox-option:hover, .radio-option:hover {
    background-color: #f0f0f0;
}

.checkbox-option input, .radio-option input {
    width: 16px;
    height: 16px;
    accent-color: #21426D;
}

.textarea-field {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.textarea-field:focus {
    outline: none;
    border-color: #21426D;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.matrix-table th {
    background: #21426D;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.matrix-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.matrix-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #21426D;
    background: #f8f9fa;
}

.matrix-table tr:nth-child(even) {
    background: #f8f9fa;
}

.matrix-table input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #21426D;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #21426D;
    color: white;
}

.btn-primary:hover {
    background: #1a3555;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.completion-message {
    display: none;
    text-align: center;
    padding: 60px 30px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    margin: 40px 0;
}

.completion-message.show {
    display: block;
}

.completion-message h3 {
    color: #155724;
    margin-bottom: 15px;
}

.completion-message p {
    color: #155724;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .page-frame {
        padding: 0 20px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .scale-container {
        justify-content: center;
    }
    
    .matrix-table {
        font-size: 12px;
    }
    
    .matrix-table th,
    .matrix-table td {
        padding: 6px 4px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

