/* =============================================
   Skill Map Lab — Diagnosis Form (diagnosis_form.html)
   ============================================= */

body {
    line-height: 1.8;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin: 20px 0 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--col-terra), var(--col-blue));
    width: 0%;
    transition: width 0.3s ease;
}

.form-section {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid #eee;
}

.section-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.question-item {
    margin-bottom: 2.5rem;
}

.question-item:last-child {
    margin-bottom: 0.5rem;
}

.q-label {
    display: block;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.q-num {
    color: var(--col-blue);
    font-family: var(--font-en);
    margin-right: 0.5rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-box {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.radio-box:hover {
    border-color: #ddd;
    background: #fafafa;
}

.radio-box input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--col-terra);
    transform: scale(1.2);
}

.radio-box:has(input:checked) {
    border-color: var(--col-terra);
    background: #fff9f5;
    font-weight: 600;
}

.btn-submit {
    background: var(--text-main);
    color: #fff;
    border: none;
    padding: 1.2rem 5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    font-family: var(--font-serif);
    display: block;
    margin: 3rem auto 0;
    width: 100%;
    max-width: 400px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .form-section {
        padding: 1.5rem;
    }

    .radio-box {
        padding: 12px;
        font-size: 0.95rem;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .form-container {
        max-width: 680px;
    }
}
