/* 커스텀 폰트 등록 */
@font-face {
    font-family: 'Paperlogy';
    src: url('Paperlogy-4Regular.ttf') format('truetype');
    /* font-weight: 500; */
    font-style: normal;
    font-display: swap; /* 웹폰트 로딩 중 텍스트 표시 방식 */
}

/* 기본 스타일 리셋 및 폰트 설정에서 폰트 패밀리 수정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Paperlogy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}


/* 버튼에도 폰트 적용 */
.option-btn, .location-btn, .pipe-btn, .purpose-btn, .next-btn, .prev-btn, .restart-btn {
    font-family: 'Paperlogy', sans-serif;
}

/* 모바일에서 그리드 조정 */
@media (max-width: 480px) {
    .location-grid,
    .pipe-grid {
        gap: 8px;
    }
    
    .location-btn,
    .pipe-btn {
        font-size: 14px;
        padding: 12px;
    }
    
    .summary-grid {
        gap: 8px;
    }
    
    .summary-item {
        padding: 12px;
    }
    
    .cost-value {
        font-size: 24px;
    }
    
}/* 수도 관경 선택 그리드 스타일 - Step 3 */
.pipe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    max-width: 712px;
    margin-left: auto;
    margin-right: auto;
}

.pipe-btn {
    padding: 16px;
    border-radius: 0 20px 20px 20px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    width: 350px;
}



body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 컨테이너 스타일 */
.container {
    background-color: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 840px;
    min-height: 700px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 헤더 영역 스타일 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    color: #1a4388;
    font-weight: bold;
    font-size: 20px;
}

.logo b {
    font-weight: 800;
}

.step {
    color: #333;
    font-size: 16px;
}

.progress-bar {
    height: 4px; /* 기존 2px에서 약간 두껍게 변경 */
    background: linear-gradient(to right, #003C77 0%, #56B6FF 50%, #56B6FF 100%);
    width: 100%;
    transition: all 0.3s ease;
}

/* 메인 콘텐츠 영역 스타일 */
main {
    padding: 40px 20px;
}

.question {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: normal;
}

/* 옵션 버튼 스타일 - Step 1 */
.options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.option-btn {
    padding: 16px;
    border-radius: 0 20px 20px 20px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    width: 350px;
}

/* 장소 선택 그리드 스타일 - Step 2 */
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    max-width: 712px;
    margin-left: auto;
    margin-right: auto;
}

.location-btn {
    padding: 16px;
    border-radius: 0 20px 20px 20px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    width: 350px;
}

/* 식당 버튼 스타일 - 이미지에 맞게 왼쪽 정렬 */
.restaurant-btn {
    grid-column: 1 / 2;
    max-width: 100%;
    width: 350px;
}

/* 수도 용도 버튼 스타일 - Step 4 */
.purpose-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.purpose-btn {
    padding: 16px;
    border-radius: 0 20px 20px 20px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    width: 350px;
}

/* 물 사용량 입력 필드 스타일 */
.input-container {
    position: relative;
    max-width: 350px;
    margin: 0 auto 40px;
}

.water-input {
    width: 100%;
    padding: 16px;
    border-radius: 0 20px 20px 20px;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    outline: none;
    padding-right: 60px; /* 단위 표시를 위한 공간 */
}

.water-input::placeholder {
    color: #A2A2A2;
}

.water-input:focus {
    border-color: #4d95ff;
}

.unit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* PC 버전 호버 효과 */
@media (min-width: 769px) {
    .option-btn:hover,
    .location-btn:hover,
    .pipe-btn:hover,
    .purpose-btn:hover {
        border-color: #56B6FF;
    }
}

/* 버튼 선택 상태 스타일 */
.option-btn.selected,
.location-btn.selected,
.pipe-btn.selected,
.purpose-btn.selected {
    background-color: #4d95ff;
    color: white;
    border-color: #4d95ff;
}

/* 버튼 컨테이너 스타일 */
.next-btn-container,
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    max-width: 712px;
    margin: auto;
}

/* 결과 페이지 스타일 */
.result-title {
    color: #333;
    font-size: 14px;
}

.result-main {
    padding: 40px 20px;
}

.result-heading {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    font-weight: normal;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 40px;
    max-width: 712px;
    margin-left: auto;
    margin-right: auto;
}

.summary-item {
    padding: 16px;
    border-radius: 0 20px 20px 20px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}

.summary-label {
    font-size: 14px;
    color: #003C77;
    margin-bottom: 8px;
    font-weight: 600;
}

.summary-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.cost-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    max-width: 712px;
    margin-left: auto;
    margin-right: auto;
}

.cost-item {
    width: 100%;
    margin-bottom: 20px;
}

.cost-label {
    font-size: 20px;
    color: #003C77;
    margin-bottom: 8px;
}

.cost-value {
    font-size: 36px;
    color: #000;
    font-weight: 700;
}

.restart-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #1a4388;
    background-color: #fff;
    color: #1a4388;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.restart-btn:hover {
    background-color: #f5f8ff;
}

.result-button-container {
    justify-content: flex-start;
}

/* 다음 버튼 스타일 */
.next-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background-color: #ddd;
    color: #fff;
    font-size: 14px;
    cursor: not-allowed;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.next-btn.active {
    background-color: #1a4388;
    cursor: pointer;
}

/* 이전 버튼 스타일 */
.prev-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #1a4388;
    background-color: #fff;
    color: #1a4388;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.prev-btn:hover {
    background-color: #f5f8ff;
}

.arrow {
    margin-left: 5px;
}

.arrow-left {
    margin-right: 5px;
}

/* 반응형 디자인을 위한 미디어 쿼리 */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    main {
        padding: 20px;
    }
    
    .question {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .result-heading {
        font-size: 18px;
    }

    .cost-container {
        flex-direction: column;
    }
    .cost-label {
        font-size: 18px;
    }
    .cost-value {
        font-size: 34px;
        margin-bottom: 10px;
    }
    .restart-btn {
        font-size: 18px;
    }

    .option-btn, .location-btn, .pipe-btn, .purpose-btn {
        width: 100%;
    }
}