:root {
    --primary-color: #0d6efd;
    --secondary-color: #ffc107;
}

body {
    background-color: #f8f9fa;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 모바일 터치 최적화 */
input, select, button {
    touch-action: manipulation;
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
    border-radius: 0 0 20px 20px;
    padding-bottom: 3rem !important;
}

.card {
    transition: transform 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* =========================================
   예약 페이지 레이아웃 (Reservation Page)
   ========================================= */

/* [공통/기본(모바일)] 스타일 */

/* 1. 컨테이너 기본: 수직 배치 */
body.reservation-page .reservation-container {
    display: block;
    padding-bottom: 100px; /* PC에서는 무시되거나 재정의됨, 모바일 하단바 여백 */
}

/* 2. 우측 계산 영역: 모바일에서는 숨김 */
body.reservation-page .reservation-calc-area {
    display: none !important;
}

/* 3. 모바일 하단바: 모바일에서는 보임 */
body.reservation-page .mobile-bottom-bar {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* [PC 확장 레이아웃] (Min-width: 992px) */
@media (min-width: 992px) {
    
    body {
        background-color: #e9ecef; /* PC 배경색 변경 */
    }

    /* 1. 컨테이너: 가로 배치 (Flex) */
    body.reservation-page .reservation-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start;
        gap: 20px;
        max-width: 1200px; /* PC 최대 너비 제한 */
        margin: 0 auto;    /* 중앙 정렬 */
        padding-bottom: 40px; /* 하단 여백 재정의 */
    }

    /* [좌측] 예약 폼 영역 */
    body.reservation-page .reservation-form-area {
        flex: 2; /* 2/3 비율 */
        width: 66%; 
        background: #fff;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(0,0,0,0.05);
    }

    /* [우측] 계산 영역: PC에서는 보임 */
    body.reservation-page .reservation-calc-area {
        display: block !important;
        flex: 1; /* 1/3 비율 */
        width: 33%;
        background: #fff;
        padding: 0;
        border-radius: 18px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
        overflow: hidden;
        
        /* 스크롤 시 따라오기 */
        position: sticky;
        top: 20px;
        height: auto;
        z-index: 100;
    }

    /* ========== 요금 계산 카드 커스텀 ========== */
    .calc-header {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        color: #fff;
        padding: 22px 26px;
        display: flex;
        align-items: center;
        gap: 14px;
    }
    .calc-header-icon {
        width: 42px;
        height: 42px;
        background: rgba(255,255,255,0.15);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
        flex-shrink: 0;
        backdrop-filter: blur(4px);
    }
    .calc-header-sub {
        display: block;
        font-size: 12px;
        color: rgba(255,255,255,0.55);
        margin-top: 2px;
    }

    .calc-body {
        padding: 20px 24px 8px;
    }

    /* 요금 그룹 */
    .calc-fee-group {
        margin-bottom: 6px;
        padding-bottom: 6px;
        border-bottom: 1px dashed #f0f0f0;
    }
    .calc-fee-group:last-of-type {
        border-bottom: none;
    }
    .surcharge-group {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* 요금 행 */
    .calc-fee-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .calc-fee-row.main-row {
        padding: 10px 0;
    }
    .calc-fee-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        color: #444;
    }
    .calc-fee-icon {
        font-size: 15px;
        width: 20px;
        text-align: center;
    }
    .calc-fee-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #0d6efd;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 10px;
        margin-left: 4px;
    }
    .calc-fee-value {
        font-size: 14.5px;
        font-weight: 700;
        color: #333;
    }

    /* 하위 행 */
    .calc-fee-sub {
        margin-left: 28px;
        padding-left: 12px;
        border-left: 2px solid rgba(13, 110, 253, 0.15);
    }
    .calc-fee-row.sub-row {
        padding: 5px 0;
        font-size: 13px;
        color: #888;
    }
    .calc-fee-row.sub-row span:last-child {
        font-weight: 600;
        color: #666;
    }

    /* 할증 행 */
    .surcharge-row {
        padding: 8px 0 !important;
    }

    /* 쿠폰 */
    .calc-coupon {
        padding: 12px 0 6px;
    }
    .calc-coupon-input {
        display: flex;
        align-items: center;
        background: #f7f8fa;
        border: 1.5px solid #eee;
        border-radius: 12px;
        padding: 4px 4px 4px 14px;
        gap: 8px;
        transition: border-color 0.25s ease;
    }
    .calc-coupon-input:focus-within {
        border-color: #c5d5f5;
    }
    .calc-coupon-input i {
        color: #bbb;
        font-size: 16px;
        flex-shrink: 0;
    }
    .calc-coupon-field {
        flex: 1;
        border: none;
        background: transparent;
        outline: none;
        font-size: 13.5px;
        color: #333;
        padding: 6px 0;
    }
    .calc-coupon-field::placeholder {
        color: #bbb;
    }
    .calc-coupon-btn {
        background: #0d6efd;
        color: #fff;
        border: none;
        border-radius: 9px;
        padding: 7px 16px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    .calc-coupon-btn:hover {
        background: #0b5ed7;
        transform: translateY(-1px);
    }

    /* 총 금액 */
    .calc-total-area {
        margin: 0 24px;
        padding: 18px 0;
        border-top: 2px solid #1a1a2e;
    }
    .calc-total-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }
    .calc-total-label {
        font-size: 15px;
        font-weight: 700;
        color: #1a1a2e;
    }
    .calc-total-value {
        font-size: 26px;
        font-weight: 800;
        color: #0d6efd;
        letter-spacing: -0.5px;
        transition: all 0.3s ease;
    }
    .calc-total-note {
        font-size: 12px;
        color: #aaa;
        margin: 6px 0 0;
        text-align: right;
    }

    /* 예약 버튼 */
    .calc-submit-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: calc(100% - 48px);
        margin: 0 24px 16px;
        padding: 16px 22px;
        background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
        color: #fff;
        border: none;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    .calc-submit-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }
    .calc-submit-btn:hover::before {
        transform: translateX(100%);
    }
    .calc-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(13, 110, 253, 0.35);
    }
    .calc-submit-btn:active {
        transform: translateY(0) scale(0.98);
    }
    .calc-submit-btn-text {
        display: flex;
        align-items: center;
        position: relative;
        z-index: 1;
    }
    .calc-submit-btn-arrow {
        width: 34px;
        height: 34px;
        background: rgba(255,255,255,0.2);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1;
        transition: all 0.25s ease;
    }
    .calc-submit-btn:hover .calc-submit-btn-arrow {
        background: rgba(255,255,255,0.3);
        transform: translateX(4px);
    }

    /* 안내 뱃지 */
    .calc-info {
        display: flex;
        justify-content: center;
        gap: 16px;
        padding: 14px 24px 20px;
    }
    .calc-info-item {
        font-size: 11.5px;
        color: #999;
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
    .calc-info-item i {
        font-size: 12px;
    }

    /* 3. 모바일 하단바: PC에서는 숨김 */
    body.reservation-page .mobile-bottom-bar {
        display: none !important;
    }
    
    /* PC Wrapper 설정 */
    .pc-wrapper {
        min-height: 100vh;
        background-color: transparent;
    }
}

/* [모바일 전용 조정] (Max-width: 991px) */
@media (max-width: 991px) {
    /* 모바일 래퍼 중앙 정렬 (옵션) - 현재는 full width 사용 */
    .mobile-wrapper {
        max-width: 480px;
        margin: 0 auto;
        background-color: #fff;
        min-height: 100vh;
        position: relative;
    }
    
    /* 모바일 하단바 너비 제한 (래퍼 사용 시) */
    .mobile-wrapper .mobile-bottom-bar {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 버튼 모바일 최적화 */
.btn-lg {
    font-size: 1.2rem;
}

/* 꽉 찬 너비 요소 */
.full-width {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.mobile-wrapper > .container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Mobile bottom navigation (admin mobile) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1030;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    padding: 6px 8px 10px;
}
.mobile-bottom-nav a {
    flex: 1;
    text-decoration: none;
    color: #6b7280;
    text-align: center;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mobile-bottom-nav a i {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
    margin: 0 0 3px 0;
    line-height: 1;
}
.mobile-bottom-nav a span {
    line-height: 1.1;
    font-weight: 700;
}
.mobile-bottom-nav a.active {
    color: var(--brand-green, #03c75a);
    font-weight: 800;
}
.mobile-bottom-nav-spacer {
    display: block;
    height: 74px; /* fixed nav height */
}
