@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600;700&display=swap');

:root {
    --primary-color: #5B86E5;
    --background-color: #F4F7FC;
    --card-background: #FFFFFF;
    --text-color: #333;
    --text-light-color: #777;
    --border-color: #EAEAEA;
    --accent-color: #FFC978;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Pretendard', sans-serif; background-color: var(--background-color); color: var(--text-color); display: flex; justify-content: center; padding-top: 50px; }
.progress-container { width: 100%; height: 8px; background-color: var(--border-color); position: fixed; top: 0; left: 0; z-index: 10; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(to right, var(--accent-color), var(--primary-color)); transition: width 0.4s ease; }
.survey-container { width: 100%; max-width: 680px; padding: 1rem; }
.survey-header { text-align: center; margin-bottom: 2.5rem; }
.survey-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.survey-header p { font-size: 1.1rem; color: var(--text-light-color); }
.question-card { background-color: var(--card-background); border-radius: 20px; padding: 2rem; margin-bottom: 1.5rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.question-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1.5rem; }
.description { font-size: 0.95rem; color: var(--text-light-color); margin-top: -1rem; margin-bottom: 1.5rem; }
.option-group { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.option-group input[type="radio"], .option-group input[type="checkbox"] { display: none; }
.option-group label { padding: 0.8rem 1.5rem; border: 1px solid var(--border-color); border-radius: 12px; cursor: pointer; font-weight: 600; transition: all 0.2s ease-in-out; }
.option-group input:checked + label { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
/* .text-input 관련 4줄 삭제됨 */
.chore-list { display: flex; flex-direction: column; gap: 1.5rem; }
.chore-item { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.chore-item > label { font-size: 1.1rem; font-weight: 600; }
.chore-options { display: flex; gap: 0.5rem; }
.chore-options input { display: none; }
.chore-options label { padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s ease-in-out; }
.chore-options input:checked + label { background-color: var(--accent-color); color: #333; border-color: var(--accent-color); }
button[type="submit"], .back-button { width: 100%; padding: 1.2rem; background-color: var(--primary-color); color: white; font-size: 1.2rem; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s; margin-top: 1rem; }
button[type="submit"]:hover, .back-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(91, 134, 229, 0.4); opacity: 0.9; }

/* 결과 페이지 스타일 */
.result-box { text-align: center; padding: 1rem; }
.stars { font-size: 2.5rem; color: #FFC978; margin-bottom: 1rem; }
#my-score-text { font-size: 1.1rem; font-weight: 600; }
.chart-container { position: relative; height: 300px; width: 100%; }
.back-button { margin-top: 2rem; text-decoration: none; display: block; text-align: center; }

@media (max-width: 600px) {
    .survey-header h2 { font-size: 1.5rem; }
    .question-card { padding: 1.5rem; }
    .chore-item { flex-direction: column; align-items: flex-start; }
}