/* 전역 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --beige: #EFE9DF;
    --dark-grey: #5F5D61;
    --warm-gold: #B8A384;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--dark-grey);
    background-color: var(--beige);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 히어로 섹션 */
.hero {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--dark-grey) 0%, #3a383b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.02) 49%, rgba(255,255,255,0.02) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.02) 49%, rgba(255,255,255,0.02) 51%, transparent 52%);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--beige);
    margin-bottom: 12px;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* 컨테이너 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 예약 섹션 */
.reservation-section {
    padding: 80px 0;
}

/* 탭 버튼 */
.tab-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    padding: 18px 32px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--dark-grey);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 163, 132, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover {
    border-color: var(--warm-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184, 163, 132, 0.3);
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: var(--dark-grey);
    color: var(--white);
    border-color: var(--dark-grey);
    box-shadow: 0 6px 20px rgba(95, 93, 97, 0.4);
    transform: scale(1.05);
}

.tab-btn.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1rem;
    opacity: 0.8;
}

/* 탭 콘텐츠 */
.tab-content {
    display: none;
    animation: fadeOut 0.3s ease;
}

.tab-content.active {
    display: block;
    animation: fadeInSlide 0.4s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* 예약 폼 */
.reservation-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
}

.form-group {
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-grey);
    font-size: 1rem;
}

.required {
    color: #d32f2f;
}

input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s ease;
    min-height: 52px;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--warm-gold);
    box-shadow: 0 0 0 3px rgba(184, 163, 132, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #757575;
}

/* 안내 박스 */
.notice-box {
    padding: 16px 20px;
    background: #fff9c4;
    border-left: 4px solid #fbc02d;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
    line-height: 1.6;
    animation: slideDown 0.3s ease;
}

.notice-box strong {
    color: #d32f2f;
    font-weight: 700;
    font-size: 1.05em;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 숙박 기간 표시 */
.stay-info {
    padding: 14px 18px;
    background: #e8f5e9;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
}

.stay-label {
    font-weight: 600;
    color: #2e7d32;
    font-size: 1rem;
}

/* 체크박스 */
.consent-group {
    margin-top: 32px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--dark-grey);
}

.checkbox-label span {
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--dark-grey);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 32px;
    min-height: 56px;
}

.submit-btn:hover {
    background: #4a484c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow);
}

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

/* 안내 카드 섹션 */
.info-section {
    padding: 60px 0 80px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px var(--shadow);
}

.info-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 16px;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #616161;
}

.contact-info {
    margin-top: 16px;
}

.contact-info:first-of-type {
    margin-top: 0;
}

.contact-info strong {
    display: block;
    font-size: 1.0625rem;
    color: var(--dark-grey);
    margin-bottom: 8px;
}

.phone-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--warm-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--dark-grey);
}

/* 푸터 */
.footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 32px 0;
    text-align: center;
}

.footer p {
    font-size: 0.9375rem;
    opacity: 0.8;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--dark-grey);
    color: var(--white);
    padding: 28px 32px;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 32px;
    text-align: center;
}

.modal-body p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--dark-grey);
    margin-bottom: 20px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-highlight {
    font-weight: 600;
    color: var(--warm-gold);
}

.modal-footer {
    padding: 0 32px 32px;
    text-align: center;
}

.modal-btn {
    padding: 16px 48px;
    background: var(--dark-grey);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.modal-btn:hover {
    background: #4a484c;
    transform: translateY(-2px);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .reservation-section {
        padding: 60px 0;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .tab-btn {
        min-width: 100%;
        padding: 16px 24px;
    }

    .reservation-form {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .form-row .form-group {
        margin-bottom: 28px;
    }

    .form-row .form-group:last-child {
        margin-bottom: 0;
    }

    input[type="text"],
    input[type="tel"],
    input[type="date"],
    select {
        font-size: 16px; /* iOS zoom 방지 */
        width: 100%;
        box-sizing: border-box;
    }
    
    input[type="date"] {
        padding: 14px 12px;
        min-height: 52px;
    }

    .submit-btn {
        padding: 16px;
        font-size: 1.0625rem;
    }

    .info-section {
        padding: 40px 0 60px;
    }

    .info-cards {
        gap: 16px;
    }

    .info-card {
        padding: 24px 20px;
    }

    .info-card h3 {
        font-size: 1.25rem;
    }

    .info-card p {
        font-size: 0.9375rem;
    }

    .phone-link {
        font-size: 1.125rem;
    }

    .modal-content {
        width: 92%;
    }

    .modal-header {
        padding: 24px 20px;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 24px 20px;
    }

    .modal-body p {
        font-size: 1rem;
    }

    .modal-footer {
        padding: 0 20px 24px;
    }

    .modal-btn {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .container {
        padding: 0 16px;
    }
}
