/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;700&family=Cormorant+Garamond:wght@300;400;500&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
}

/* Global Typography */
h1 {
    font-size: 90px !important;
}

h2 {
    font-size: 28px !important;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 40px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: transparent;
    padding: 20px 0;
}

.header.scrolled .navigation {
    display: none;
}

.header.scrolled .logo,
.header.scrolled .contact {
    color: #7a6e66;
}

.header.scrolled .logo h1,
.header.scrolled .contact span {
    color: #7a6e66;
}

.header.scrolled .contact::before {
    color: #7a6e66;
}

.header.scrolled .contact span::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%237a6e66" viewBox="0 0 24 24"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}

/* 모바일에서 스크롤 시 헤더 요소별 숨김 - 햄버거 메뉴만 유지 */
@media (max-width: 768px) {
    .header.scrolled .logo,
    .header.scrolled .navigation,
    .header.scrolled .contact {
        opacity: 0;
        visibility: hidden;
    }
    
    .header.scrolled .mobile-menu-toggle {
        opacity: 1;
        visibility: visible;
    }
}

.header-container {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    flex: 0 0 auto;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 24px !important;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.navigation a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navigation a:hover {
    color: #ffffff;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

.contact {
    flex: 0 0 auto;
}

.contact a {
    text-decoration: none;
    color: inherit;
}

.contact span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact span::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Main Visual Section */
.main-visual {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    /* transition 제거 - JS에서 처리 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 1;
}

/* JavaScript에서 고정 레이어 순서를 관리하므로 CSS z-index 제거 */

.slide::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    z-index: 1;
    opacity: inherit;
}

.slide[data-bg="slide1"]::before {
    background-image: url('images/slide1.jpg');
}

.slide[data-bg="slide2"]::before {
    background-image: url('images/slide2.jpg');
}

.slide[data-bg="slide3"]::before {
    background-image: url('images/slide3.jpg');
}

.slide.fade-out {
    opacity: 0;
}

/* 맨 위 슬라이드가 사라질 때 사용 */
.slide.top-layer {
    z-index: 10;
}

/* JavaScript로 줌 애니메이션 제어 (CSS 애니메이션 제거) */
.slide::before {
    transform: scale(var(--zoom-scale, 1));
    transition: none; /* CSS transition 완전 제거 */
}

.slide-content {
    text-align: center;
    z-index: 15; /* 슬라이드 이미지(z:11-13)보다 높게 설정 */
    opacity: 1; /* 항상 보이도록 설정 */
    transform: translateY(0); /* 항상 제자리에 위치 */
    transition: all 0.8s ease-out;
    position: relative;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 88px !important;
    font-weight: 300;
    margin-bottom: 35px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    /* CSS 애니메이션 제거 - JavaScript로 처리 */
}

.main-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(30px);
    /* CSS 애니메이션 제거 - JavaScript로 처리 */
}

.slide-button {
    margin-top: 70px;
    padding: 12px 30px 13px 30px;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    /* CSS 애니메이션 제거 - JavaScript로 처리 */
}

.slide-button:active {
    transform: translateY(0);
}

.slide-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-info {
    position: absolute;
    bottom: 80px;
    left: 40px;
    z-index: 16; /* 슬라이드 콘텐츠보다도 높게 설정 */
    opacity: 0.9; /* 항상 보이도록 설정 */
    transition: opacity 0.8s ease-in-out;
}

.slide-title {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 60px;
    left: 40px;
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 20; /* UI 요소가 항상 위에 보이도록 */
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    width: 0;
    transition: width 0.1s linear;
}

/* Navigation Dots */
.slide-navigation {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 21; /* UI 요소가 항상 위에 보이도록 */
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #ffffff;
}

.nav-dot:hover {
    border-color: #776e67;
    background: #776e67;
}

/* Consultation Section */
/* Consultation Section */
.consultation-section {
    min-height: 100vh;
    background: #ffffff;
    padding: 0;
}

.consultation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tab Section */
.section-title {
    margin-bottom: 20px;
    text-align: center;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.section-title p {
    color: #666;
    font-size: 16px;
    margin: 8px 0 0 0;
    font-weight: 400;
}

/* Customer Registration Title - 관심고객등록 전용 스타일 */
.customer-registration-title {
    margin-bottom: 30px;
    text-align: center;
}

.customer-registration-title h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 48px !important;
    font-weight: 600 !important;
    color: #7a6e66 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.customer-registration-title p {
    color: #666;
    font-size: 18px;
    margin: 12px 0 0 0;
    font-weight: 400;
}

/* Consultation Title - 관심고객등록 타이틀 일관성 유지 */
.consultation-title {
    margin-bottom: 20px;
    text-align: center;
}

.consultation-title h2 {
    font-family: 'Arial', 'Noto Sans KR', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
    letter-spacing: normal;
    text-transform: none;
}

/* Consultation Category - 마감재 리스트와 동일한 스타일 */
.consultation-category {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.consultation-content {
    padding: 30px 0;
}

.consultation-form-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 10px 0;
    text-align: center;
    color: #7a6e66;
}

.consultation-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    border-bottom: 1px solid #ddd;
}

.consultation-tabs li {
    flex: 1;
}

.consultation-tabs li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.consultation-tabs li.active a {
    background: #776e67;
    color: #ffffff;
    border: 1px solid #776e67;
    border-bottom: 1px solid #776e67;
    position: relative;
    z-index: 1;
}

/* Form Container */
.form-container {
    background: #ffffff;
    padding: 30px 0;
}

/* Registration Table */
.registration-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.registration-table th {
    width: 15%;
    padding: 15px;
    background: transparent;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    text-align: left;
    font-weight: 400;
    color: #333;
    vertical-align: middle;
}

.registration-table td {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    vertical-align: middle;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 16px 18px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    color: #333;
    background: #f5f5f5;
    text-align: center;
}

.form-input:focus {
    outline: none;
    background: #f0f0f0;
}

.registration-table tr:first-child th,
.registration-table tr:first-child td {
    border-top: 3px solid #776e67;
}

.name-input {
    width: 310px;
    max-width: 410px;
}

/* Phone Section */
.phone-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-section select {
    padding: 16px 30px 16px 18px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    color: #333;
    background: #f5f5f5;
    min-width: 130px;
    text-align: center;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23666" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.phone-section .form-input {
    flex: 1;
    max-width: 160px;
    min-width: 130px;
}

.phone-section span {
    color: #666;
    font-weight: 500;
}

/* Location Section */
.location-section {
    display: flex;
    gap: 10px;
}

.location-section select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #ffffff;
}

/* Interest Section */
.interest-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.interest-section label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 12px 15px;
    border-radius: 4px;
    min-height: 45px;
}

.interest-section input[type="checkbox"] {
    margin-right: 6px;
}

/* Transaction Section */
.transaction-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.transaction-section label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 12px 15px;
    border-radius: 4px;
    min-height: 45px;
}

.transaction-section input[type="checkbox"] {
    margin-right: 6px;
}

/* Notice Section */
.notice-section {
    margin-bottom: 30px;
    margin-top: 10px;
}

.notice-section p {
    margin: 3px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.2;
}

.notice-section span {
    color: #666;
    font-weight: 400;
}

/* Terms Section */
.consultation h2:not(.customer-registration-title h2),
.consultation-form h2:not(.customer-registration-title h2),
section.consultation h2:not(.customer-registration-title h2),
#consultation h2:not(.customer-registration-title h2) {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
    margin-top: 50px !important;
}

.terms-section {
    margin-bottom: 30px;
    padding: 10px 20px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    height: 200px;
    overflow-y: auto;
}

.terms-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.terms-section dl {
    margin: 0;
}

.terms-section dt {
    font-weight: 600;
    color: #333;
    margin-top: 2px;
    margin-bottom: 1px;
    font-size: 14px;
}

.terms-section dd {
    margin: 0 0 2px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.1;
}

.terms-section strong {
    color: #333;
}

/* Privacy Delegation */
.privacy-delegation {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.privacy-delegation h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.delegation-table {
    width: 100%;
    border-collapse: collapse;
}

.delegation-table th,
.delegation-table td {
    padding: 12px;
    border: 1px solid #dee2e6;
    text-align: left;
    font-size: 14px;
}

.delegation-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.delegation-table td {
    color: #666;
}

/* Agreement Section */
.agreement-section {
    margin-bottom: 30px;
}

.agreement-item {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.agreement-item h5 {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin: 0;
    flex-shrink: 0;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.radio-group input[type="radio"] {
    margin-right: 6px;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    accent-color: #000000;
}

/* New Agreement Section */
.new-agreement-section {
    margin-top: 30px;
}

.agreement-all {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 5px;
}

.agreement-all label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.agreement-list {
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.agreement-item-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.agreement-item-new:last-child {
    border-bottom: none;
}

.agreement-item-new label {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.view-terms {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    position: relative;
}

.view-terms::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(-45deg);
    margin-right: 2px;
}

.view-terms:hover {
    background: #f0f0f0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: none;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    padding-right: 40px;
}

.modal-body {
    line-height: 1.6;
    color: #333;
}

.modal-body p {
    margin-bottom: 10px;
    color: #333;
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.modal-body table td {
    padding: 8px 12px;
    border: 1px solid #ccc;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.modal-body table p {
    margin: 0;
    color: #333;
}

/* Marketing Methods */
.marketing-methods {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.method-checkboxes {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.method-checkboxes label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.method-checkboxes input[type="checkbox"] {
    margin-right: 6px;
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.button-group {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.button-group li a,
.button-group li button {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn {
    background: #776e67;
    color: #ffffff;
    border: 1px solid #776e67;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.submit-btn:hover {
    background: #6a635c;
    border-color: #6a635c;
}

.button-group li a:not(.submit-btn) {
    background: #ffffff;
    color: #666;
    border: 1px solid #ced4da;
}

.button-group li a:not(.submit-btn):hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* 햄버거 메뉴 버튼 - 기본적으로 숨김 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 스크롤 시 햄버거 메뉴에 흰색 동그란 배경 추가 */
.header.scrolled .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* 스크롤 시 햄버거 메뉴 색상 변경 */
.header.scrolled .mobile-menu-toggle span {
    background: #7a6e66;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 스크롤 시 활성화된 햄버거 메뉴 색상 */
.header.scrolled .mobile-menu-toggle.active span:nth-child(1),
.header.scrolled .mobile-menu-toggle.active span:nth-child(3) {
    background: #7a6e66;
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: right 0.3s ease;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #1a1a1a;
    padding: 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-navigation {
    margin-top: 20px;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation li {
    margin-bottom: 25px;
}

.mobile-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 0;
}

.mobile-navigation a:hover {
    color: #776e67;
}

.mobile-contact {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.mobile-contact a {
    text-decoration: none;
    color: inherit;
}

.mobile-contact span {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-contact span::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* 모바일 반응형 - 768px 이하 */
@media (max-width: 768px) {
    /* 헤더 */
    .header {
        padding: 10px 0;
    }
    
    .header-container {
        padding: 0 20px 0 20px;
    }
    
    .navigation,
    .contact {
        display: none;
    }
    
    .logo h1 {
        font-size: 18px !important;
        letter-spacing: 2px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 서브페이지 타이틀 모바일 최적화 */
    .sub-page-title h1 {
        font-size: 48px !important;
        line-height: 1.3;
        margin-bottom: 10px !important;
    }
    
    .sub-page-title h2 {
        font-size: 16px !important;
        line-height: 1.4;
        margin-bottom: 15px !important;
    }
    
    .title-container {
        flex-direction: row !important;
        gap: 2px !important;
        margin-bottom: 15px !important;
        padding: 0 20px;
    }
    
    .sub-page-header {
        padding: 70px 0 20px !important;
    }
    
    /* 슬라이드 텍스트 */
    .main-title {
        font-size: 48px !important;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }
    
    .main-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .slide-button {
        margin-top: 40px;
        padding: 12px 25px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    /* 슬라이드 정보 */
    .slide-info {
        left: 20px;
        bottom: 40px; /* 더 아래로 이동 */
    }
    
    .slide-title {
        font-size: 12px;
    }
    
    /* 프로그레스 바 */
    .progress-bar {
        left: 20px;
        width: 120px;
        bottom: 30px; /* 하단에서 조금 더 위로 */
    }
    
    /* 네비게이션 도트 */
    .slide-navigation {
        right: 20px;
        left: auto;
        transform: none;
        bottom: 30px; /* 프로그레스 바와 같은 높이 */
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
}

/* 태블릿 크기 (768px ~ 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-title {
        font-size: 72px !important;
        letter-spacing: 3px;
        margin-bottom: 30px;
    }
}

/* 작은 모바일 크기 (480px 이하) */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px !important;
        letter-spacing: 1px;
    }
    
    .main-title {
        font-size: 36px !important;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }
    
    .main-subtitle {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    /* 서브페이지 타이틀 작은 모바일 최적화 */
    .sub-page-title h1 {
        font-size: 24px !important;
        line-height: 1.2;
    }
    
    .sub-page-title h2 {
        font-size: 14px !important;
        line-height: 1.3;
    }
    
    .title-container {
        gap: 0px !important;
        margin-bottom: 10px !important;
        padding: 0 15px;
    }
    
    .sub-page-header {
        padding: 60px 0 15px !important;
    }
}

/* Footer Styles */
.footer {
    background: #64584f;
    color: #ffffff;
    padding: 25px 0 15px;
    border-top: 1px solid #e0e0e0;
}

.footer-mobile-text {
    display: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 15px;
    align-items: start;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.footer-logo-section img {
    height: 50px;
    width: auto;
}

.footer-company-section,
.footer-contact-section, 
.footer-privacy-section {
    display: block;
}

.footer-mobile-text {
    display: none;
}

.footer-section h3 {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-section p {
    color: #b0b0b0;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0;
}

.footer-section .info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
    color: #b0b0b0;
    font-size: 12px;
    line-height: 1.4;
}

.footer-section .info-label {
    color: #c0c0c0;
    font-weight: normal;
    white-space: nowrap;
}

.footer-section .info-value {
    color: #b0b0b0;
    text-align: right;
}

.footer-section .info-value a {
    color: #aaaaaa;
    text-decoration: none;
}

.footer-section .info-value a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #8a7a6f;
    padding-top: 10px;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 11px;
    margin: 0;
    line-height: 1.4;
    word-break: keep-all;
}

.company-info {
    max-width: none;
    width: 100%;
    display: block;
    grid-template-columns: none;
    gap: 0;
}

.company-row {
    display: none;
}

@media (max-width: 768px) {
    /* Consultation Section Mobile */
    .consultation-section {
        padding: 20px 0;
    }
    
    .consultation-container {
        padding: 0 15px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .customer-registration-title h2 {
        font-size: 28px !important;
        margin-bottom: 10px !important;
        line-height: 1.2;
    }
    
    .customer-registration-title p {
        font-size: 14px;
        margin: 10px 0 20px 0;
        line-height: 1.4;
    }

    /* Registration Table Mobile - 가로 형태 유지 */
    .registration-table {
        width: 100%;
        min-width: 100%;
        font-size: 12px;
        border-collapse: collapse;
        display: table;
    }
    
    .registration-table tbody {
        display: table-row-group;
    }
    
    .registration-table tr {
        display: table-row;
    }
    
    .registration-table th,
    .registration-table td {
        display: table-cell;
        padding: 8px 4px;
        text-align: center;
        vertical-align: middle;
        border-top: 1px solid #dee2e6;
        border-bottom: 1px solid #dee2e6;
        white-space: nowrap;
        font-size: 12px;
    }
    
    .registration-table th {
        font-weight: 600;
        color: #555;
        background: #f8f9fa;
        width: 15%;
        min-width: 60px;
    }
    
    .registration-table td {
        width: auto;
    }
    
    .registration-table tr:first-child th,
    .registration-table tr:first-child td {
        border-top: 3px solid #776e67;
    }

    /* Form inputs mobile - 가로 테이블용 */
    .form-input {
        padding: 12px 6px;
        font-size: 12px;
        width: 100%;
        min-width: 80px;
        height: 44px;
        box-sizing: border-box;
    }
    
    .name-input {
        width: 100% !important;
        max-width: none !important;
        min-width: auto !important;
        text-align: left !important;
        height: 44px;
        padding: 12px 6px;
    }
    
    /* Phone Section Mobile */
    .phone-section {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .phone-section select {
        flex: 1 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 12px 4px;
        font-size: 11px;
        text-align: center !important;
        text-align-last: center !important;
        box-sizing: border-box;
        height: 44px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 4px center;
        background-repeat: no-repeat;
        background-size: 12px;
        padding-right: 20px;
        direction: ltr;
    }
    
    .phone-section input {
        flex: 1 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 12px 4px;
        font-size: 11px;
        text-align: center;
        box-sizing: border-box;
        height: 44px;
    }
    
    .phone-section span {
        font-size: 11px;
        margin: 0 2px;
        flex-shrink: 0;
    }

    /* Interest and Transaction Sections Mobile */
    .interest-section,
    .transaction-section {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-start;
        align-items: center;
    }
    
    .interest-section label,
    .transaction-section label {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 4px 6px;
        font-size: 13px;
        background: transparent !important;
        border-radius: 4px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .interest-section input[type="checkbox"],
    .transaction-section input[type="checkbox"] {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }

    /* Notice Section Mobile */
    .notice-section {
        margin: 15px 0;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .notice-section p {
        font-size: 11px;
        line-height: 1.4;
        margin: 5px 0;
        color: #666;
    }
    
    .notice-section span {
        color: #666;
        font-weight: bold;
    }

    /* Agreement Section Mobile */
    .new-agreement-section {
        margin: 15px 0;
    }
    
    .agreement-all {
        padding: 8px;
        background: #f8f6f4;
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .agreement-all label {
        font-size: 15px;
        font-weight: 600;
        color: #333;
    }
    
    .agreement-list {
        margin-bottom: 8px;
    }
    
    .agreement-item-new {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px;
        border: 0px;
        border-radius: 6px;
        margin-bottom: 0;
        background: white;
    }
    
    .agreement-item-new label {
        font-size: 12px;
        color: #333;
        line-height: 1.3;
        flex: 1;
        margin-right: 8px;
    }
    
    .agreement-item-new input[type="checkbox"] {
        width: 14px;
        height: 14px;
        margin-right: 6px;
        flex-shrink: 0;
    }
    
    .view-terms {
        padding: 4px 8px;
        font-size: 10px;
        background: #776e67;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .view-terms::before {
        display: none;
    }
    
    .view-terms::after {
        content: '보기';
    }

    /* Submit Section Mobile */
    .submit-section {
        margin: 20px 0;
        text-align: center;
    }
    
    .button-group {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        font-weight: 600;
        background: #776e67;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s;
    }
    
    .submit-btn:hover {
        background: #5f564f;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        max-width: 400px;
        margin: 10% auto;
        padding: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .modal-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .modal-body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .modal-body table {
        width: 100%;
        font-size: 10px;
        border-collapse: collapse;
    }
    
    .modal-body table td,
    .modal-body table th {
        padding: 4px;
        border: 1px solid #ccc;
        word-break: break-word;
    }
    
    .close {
        font-size: 24px;
        line-height: 1;
        padding: 5px;
    }

    /* Footer Mobile */
    .footer {
        padding: 20px 0 15px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-content {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .footer-logo-section {
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }
    
    .footer-logo-section img {
        height: 30px !important;
        width: auto !important;
    }
    
    .footer-company-section,
    .footer-contact-section, 
    .footer-privacy-section {
        display: none !important;
    }
    
    .footer-mobile-text {
        display: block !important;
        flex: 1;
        text-align: right !important;
        margin-left: 15px !important;
    }
    
    .footer-mobile-text p {
        font-size: 11px !important;
        text-align: right !important;
        color: #b0b0b0;
        line-height: 1.3;
        margin: 0;
        word-break: keep-all;
        padding: 0;
        width: 100%;
    }
    
    .footer-mobile-text a {
        color: #aaaaaa;
        text-decoration: none;
    }
    
    .footer-mobile-text a:hover {
        color: #e0e0e0;
        text-decoration: underline;
    }
}