* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 32px;
}

h1 {
    text-align: center;
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section h2 {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
    font-weight: 600;
}

/* 행사 종류 카드 */
.event-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-card {
    cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-card .card-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.2s;
    background: #fff;
}

.checkbox-card input:checked + .card-body {
    border-color: #4a7dff;
    background: #f0f5ff;
}

.checkbox-card.funeral input:checked + .card-body { border-color: #555; background: #f5f5f5; }
.checkbox-card.wedding input:checked + .card-body { border-color: #e8789a; background: #fdf0f4; }
.checkbox-card.birthday input:checked + .card-body { border-color: #c4963c; background: #fdf6ec; }
.checkbox-card.first-birthday input:checked + .card-body { border-color: #5b9bd5; background: #eef5fb; }

.card-icon {
    font-size: 22px;
}

.card-label {
    font-size: 14px;
    font-weight: 500;
}

/* 금액 범위 듀얼 슬라이더 */
.range-slider-wrap {
    padding: 4px 0;
}

.range-track {
    position: relative;
    height: 6px;
    margin: 18px 0 10px;
}

.range-track input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    outline: none;
}

.range-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4a7dff;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(74, 125, 255, 0.4);
    position: relative;
    z-index: 1;
}

.range-track input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4a7dff;
    cursor: pointer;
    pointer-events: all;
    border: none;
    box-shadow: 0 1px 4px rgba(74, 125, 255, 0.4);
}

/* 트랙 배경 */
.range-track::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background: #dde3f0;
    border-radius: 3px;
    top: 0;
}

/* 선택 범위 강조 */
.range-fill {
    position: absolute;
    height: 6px;
    background: #4a7dff;
    border-radius: 3px;
    top: 0;
    pointer-events: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #4a7dff;
    margin-top: 4px;
}

.hint {
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
}

/* 월 선택 */
.month-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: #f0f0f0;
}

.months {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.month-checkbox {
    cursor: pointer;
}

.month-checkbox input[type="checkbox"] {
    display: none;
}

.month-checkbox span {
    display: block;
    text-align: center;
    padding: 8px 4px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    background: #fff;
}

.month-checkbox input:checked + span {
    background: #4a7dff;
    color: #fff;
    border-color: #4a7dff;
}

/* 생성 정보 */
.generation-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    padding: 12px;
    background: #f8f8fa;
    border-radius: 8px;
}

.generation-info strong {
    font-size: 20px;
    color: #4a7dff;
}

/* 생성 버튼 */
.btn-generate {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4a7dff, #6c5ce7);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 125, 255, 0.35);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 반응형 */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        border-radius: 0;
    }

    .event-types {
        grid-template-columns: 1fr;
    }

    .months {
        grid-template-columns: repeat(4, 1fr);
    }

    .amount-range {
        flex-direction: column;
        gap: 8px;
    }

    .range-separator {
        display: none;
    }
}
