/* 기본 리셋 및 폰트 설정 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Malgun Gothic', sans-serif; line-height: 1.6; color: #333; }
a { text-decoration: none; color: inherit; }

/* 헤더 & 네비게이션 (PC 기본) */
header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: #fff; border-bottom: 1px solid #ddd; }
.logo { font-size: 1.5rem; font-weight: bold; color: #0056b3; }
.menu-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav ul li a { font-weight: bold; transition: color 0.3s; }
nav ul li a:hover { color: #0056b3; }

/* 메인 컨테이너 */
.container { padding: 3rem 2rem; max-width: 800px; margin: 0 auto; text-align: center; }
.placeholder-text { font-size: 1.2rem; color: #666; margin-top: 2rem; padding: 3rem; background: #f9f9f9; border-radius: 8px; }

/* 예약 폼 디자인 */
.reserve-form { max-width: 500px; margin: 2rem auto; text-align: left; padding: 2rem; background: #f4f4f4; border-radius: 8px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.form-group input { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 4px; }
.submit-btn { width: 100%; padding: 1rem; background: #0056b3; color: white; border: none; border-radius: 4px; font-size: 1.1rem; cursor: pointer; }
.submit-btn:hover { background: #004494; }

/* 모바일 반응형 (768px 이하) */
@media (max-width: 768px) {
    header { flex-direction: column; align-items: flex-start; }
    .logo { padding-bottom: 1rem; }
    .menu-toggle { display: block; position: absolute; top: 1rem; right: 1.5rem; }
    nav { width: 100%; display: none; /* JS로 토글 */ }
    nav.active { display: block; }
    nav ul { flex-direction: column; width: 100%; gap: 0; }
    nav ul li { border-top: 1px solid #eee; }
    nav ul li a { display: block; padding: 1rem 0; }
}

/* 푸터(Footer) 영역 스타일 */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 3rem; /* 메인 콘텐츠와의 간격 */
}

footer .company-name {
    font-weight: bold;
    color: #343a40;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

footer .footer-info {
    margin-bottom: 1rem;
}

footer .footer-info span {
    display: inline-block;
}

/* 모바일 화면에서는 세로로 줄바꿈 처리 */
@media (max-width: 768px) {
    footer .divider {
        display: none; /* 모바일에서는 구분선 숨김 */
    }
    footer .footer-info span {
        display: block; /* 각 항목을 한 줄씩 표시 */
    }
}
/* 예약하기 3단 그리드 레이아웃 */
.reserve-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr; /* 3칸 비율 */
    gap: 20px;
    align-items: start;
}
.step-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.step-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}
.step-desc { text-align: center; color: #666; margin-top: 1rem; font-size: 0.9rem; }

/* 달력 스타일 */
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: bold;}
.calendar-header button { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.calendar-table { width: 100%; text-align: center; border-collapse: collapse; }
.calendar-table th { padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid #eee; }
.calendar-table td { padding: 12px 0; cursor: pointer; transition: 0.2s; border-radius: 4px;}
.calendar-table td:hover { background: #f0f8ff; }
.calendar-table td.selected { background: #0056b3; color: white; font-weight: bold; }
.calendar-table td.disabled { color: #ccc; cursor: not-allowed; }

/* 시간 선택 스타일 */
.time-list { display: flex; flex-direction: column; gap: 10px; }
.time-item { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; cursor: pointer; padding: 5px 0;}
.time-item input { width: 18px; height: 18px; }
.time-item.disabled { cursor: not-allowed; }

/* 상세 폼 스타일 */
.detail-form .form-row { margin-bottom: 1rem; text-align: left; }
.detail-form label { display: block; font-size: 0.9rem; font-weight: bold; margin-bottom: 5px; color: #444; }
.detail-form input, .detail-form select { padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.flex-row { display: flex; align-items: center; gap: 5px; }
.btn-black { background: #333; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.btn-black:hover { background: #555; }
.counter-box { display: flex; align-items: center; }
.counter-box button { width: 35px; height: 35px; border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 1.2rem; }
.counter-box input { width: 50px; text-align: center; border: 1px solid #ccc; border-left: none; border-right: none; height: 35px; border-radius: 0; pointer-events: none; }
.privacy-box { border: 1px solid #eee; background: #fafafa; padding: 15px; border-radius: 4px; font-size: 0.85rem; margin-top: 1.5rem; text-align: left;}
.privacy-agree { display: block; margin-top: 10px; font-weight: bold; color: #d9534f; cursor: pointer;}

/* 모바일 반응형 (세로로 배치) */
@media (max-width: 900px) {
    .reserve-grid { grid-template-columns: 1fr; }
}
.reserve-container {
    max-width: 1200px !important;
}
