/* Category Assessment Page Styles */

.assessment-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0;
}

.assessment-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back Button */
.back-button-wrapper {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: #764ba2;
    transform: translateX(-5px);
}

/* Title */
.assessment-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 2rem;
    text-align: center;
}

/* Notice Box */
.notice-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notice-icon {
    color: #2196f3;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.notice-box p {
    margin: 0;
    color: #212529;
    line-height: 1.6;
}

.notice-box strong {
    font-weight: 700;
}

/* Progress Section */
.progress-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-label {
    font-weight: 600;
    color: #212529;
}

.progress-percentage {
    font-weight: 700;
    color: #667eea;
    font-size: 1.125rem;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

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

/* Step Indicators */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-indicator {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}

.step-indicator.completed:not(:last-child)::after {
    background: #667eea;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-indicator.active .step-circle {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step-indicator.completed .step-circle {
    background: #667eea;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.4;
}

.step-indicator.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.step-indicator.completed .step-label {
    color: #212529;
}

/* Form Content */
.form-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.placeholder-text {
    color: #6c757d;
    font-size: 1.125rem;
    text-align: center;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .assessment-page {
        padding: 1rem 0;
    }

    .assessment-title {
        font-size: 1.5rem;
    }

    .steps-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .step-indicator:not(:last-child)::after {
        display: none;
    }

    .step-circle {
        margin: 0 0 0.5rem 0;
    }

    .step-indicator {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .form-content {
        padding: 2rem 1.5rem;
    }

    .notice-box {
        flex-direction: column;
        gap: 0.75rem;
    }

    .progress-section {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .assessment-container {
        padding: 0 15px;
    }

    .assessment-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .notice-box {
        padding: 1rem;
    }

    .form-content {
        padding: 1.5rem 1rem;
    }

    .placeholder-text {
        font-size: 1rem;
    }
}

/* Question Card Styles */
.question-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.question-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.question-number {
    color: #667eea;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Radio Button Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.radio-option.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.radio-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-circle.selected {
    border-color: #667eea;
    border-width: 2px;
}

.radio-inner {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
}

.radio-option span {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

/* Text Input Question */
.text-input-group {
    margin-bottom: 1.5rem;
}

.text-input-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
}

.text-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s ease;
    background: white;
}

.text-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.text-input::placeholder {
    color: #adb5bd;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn-back,
.btn-next,
.btn-submit {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back {
    background: white;
    color: #667eea;
    border: 2px solid #e9ecef;
}

.btn-back:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.btn-next,
.btn-submit {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-next:hover,
.btn-submit:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-submit {
    font-size: 0.95rem;
    padding: 1.25rem 2rem;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-error {
    width: 100%;
    padding: 1rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.submit-error i {
    font-size: 1.25rem;
}

/* Summary Section */
.summary-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.summary-group {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.summary-group:last-child {
    margin-bottom: 0;
    border-left-color: #28a745;
}

.summary-group h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.summary-group p {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.summary-group p:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments for Questions */
@media (max-width: 768px) {
    .question-card {
        padding: 1.5rem;
    }

    .question-title {
        font-size: 1rem;
    }

    .radio-option {
        padding: 0.875rem 1rem;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .btn-back {
        order: 2;
    }

    .btn-next,
    .btn-submit {
        order: 1;
    }

    .summary-section {
        padding: 1.5rem;
    }

    .summary-group {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .question-card {
        padding: 1rem;
    }

    .question-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .radio-option {
        padding: 0.75rem;
    }

    .radio-option span {
        font-size: 0.9rem;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        font-size: 0.85rem;
        padding: 1rem 1.5rem;
    }

    .summary-section {
        padding: 1rem;
    }

    .summary-group {
        padding: 0.875rem;
    }

    .summary-group h3 {
        font-size: 1rem;
    }

    .summary-group p {
        font-size: 0.9rem;
    }
}

/* Dynamic Fields Styles */
.dynamic-fields {
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.field-group {
    position: relative;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.field-group:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.field-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field-row:last-child {
    margin-bottom: 0;
}

.field-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.field-item-small {
    flex: 0 0 150px;
}

.field-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.field-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.3s ease;
    background: white;
}

.field-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-input::placeholder {
    color: #adb5bd;
    font-size: 0.875rem;
}

.field-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.3s ease;
    background: white;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.field-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-textarea::placeholder {
    color: #adb5bd;
    font-size: 0.875rem;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-add:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Responsive Adjustments for Dynamic Fields */
@media (max-width: 768px) {
    .field-row {
        flex-direction: column;
        gap: 1rem;
    }

    .field-item-small {
        flex: 1;
    }

    .field-group {
        padding: 1rem;
    }

    .btn-remove {
        top: 0.5rem;
        right: 0.5rem;
    }

    .dynamic-fields {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .field-group {
        padding: 0.875rem;
    }

    .field-input,
    .field-textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .field-label {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }

    .btn-add {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
    }
}
