@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700;900&display=swap');

body {
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #f0f2f5;        
}

.page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 40px;
    position: relative;
}

/* Page 1 */
.page1 {
    color: #fff;
    overflow: hidden;

    /* 메인 배경 이미지 설정 */
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page1 .content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.page1 .intro-text {
    max-width: 500px;
}

.page1 .intro-text h1 {
    font-size: 2rem;
    font-weight: 700; /* bold */
    color: #000;
}

.page1 .intro-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #00aaff;
    margin: 20px 0;
    line-height: 1.2;
}

.page1 .intro-text .h2-sub {
    color: #666; /* 다크 그레이 */
    font-weight: 400; /* non-bold */
    font-size: 2.8rem; /* 20% 크기 축소 */
}

.page1 .intro-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666; /* 다크 그레이 */
}

.page1 .intro-text .highlight-text {
    color: #000;
    font-weight: 700; /* bold */
}

.phone-animation-container {
    position: relative;
    animation: slideInFromRight 1s ease-out forwards;
}

.phone-image {
    width: 400px; /* 아이폰 이미지 크기 20% 더 키움 */
    height: auto;
}

.side-image-1, .side-image-2 {
    position: absolute;
    width: 96px; /* 옆 이미지 크기 20% 줄임 */
    opacity: 0; /* 애니메이션 시작 전 숨김 */
    animation: fadeIn 0.5s ease-out forwards; /* 새로운 fadeIn 애니메이션 적용 */
}

.side-image-1 {
    top: 40%;
    left: 290px; /* 이미지 위치 조정 */
    animation-delay: 1s; /* iphone.png 애니메이션(1s) 후 시작 */
}

.side-image-2 {
    top: calc(40% + 40px); /* 1.png 높이와 간격에 따라 조절 */
    left: 280px; /* 이미지 위치 조정 */
    animation-delay: 1.2s; /* 1.png 보다 0.2초 늦게 시작 */
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Page 2 */
.page2 {
    background-color: #fff; /* 짝수 섹션: 흰색 */
}

.page2 h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.consult-status {
    width: 100%;
    max-width: 1000px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 30px; /* 통계 섹션과의 간격 */
    border-bottom: 2px solid #007bff; /* 파란색 구분선 추가 */
}

.consult-status thead {
    position: relative; /* z-index 적용을 위한 position 설정 */
    z-index: 10;        /* 스크롤되는 tbody보다 위에 있도록 설정 */
    background-color: #fff; /* 헤더 배경색을 불투명하게 설정 */
}

.table-scroll-container {
    height: 306px; /* 6개 행의 높이 (1개 행 높이 51px * 6) */
    overflow: hidden;
    position: relative; /* thead의 position: sticky 기준점 */
}

#consult-list {
    /* 11개 원본 + 6개 복제본 = 17개. 11개 스크롤. 11 * 51px = 561px */
    animation: scroll-up 22s linear infinite;
}

.table-scroll-container:hover #consult-list {
    animation-play-state: paused;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }
    100% {
        /* 11개 항목의 높이만큼 위로 스크롤 */
        transform: translateY(-561px); 
    }
}


.consult-status table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.consult-status th,
.consult-status td {
    padding: 12px 5px; /* 패딩 조정 */
    height: auto; /* 높이 자동 조정 */
    font-size: 0.9rem; /* 폰트 크기 조정 */
}

.consult-status th {
    background-color: #f9f9f9;
    font-weight: bold;
    border-bottom: none; /* 헤더의 하단 보더 제거 */
}

/* 테이블 행 호버 효과 */
.consult-status tbody tr:hover {
    background-color: #f5f5f5; /* 연한 회색 배경 */
    cursor: pointer;
}

/* 날짜 컬럼 너비 지정 */
.consult-status th:nth-child(1),
.consult-status td:nth-child(1) {
    width: 5%;
}

/* 신청종류 컬럼 너비 지정 */
.consult-status th:nth-child(2),
.consult-status td:nth-child(2) {
    width: 28%;
}

/* 이름 컬럼 너비 지정 */
.consult-status th:nth-child(3),
.consult-status td:nth-child(3) {
    width: 17%;
}

/* 내용 컬럼이 너무 넓어지지 않도록 너비 지정 */
.consult-status th:nth-child(4),
.consult-status td:nth-child(4) {
    width: 30%;
}

/* 신청상태 컬럼 너비 지정 */
.consult-status th:nth-child(5),
.consult-status td:nth-child(5) {
    width: 0%;
    white-space: nowrap; /* 상태 텍스트 줄바꿈 방지 */
}

.consult-status td:nth-child(4) {
    text-align: left;
}

.status-completed {
    background-color: #007bff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 1000px;
}

.stat-item {
    background: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin: 0; /* 좌우 마진 제거 */
}

.stat-item h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #555;
}

.stat-item .count {
    font-size: 3.5rem;
    font-weight: 900;
    color: #007bff;
    margin: 0;
}

/* Page 3 */
.page3 {
    /* 홀수 섹션: 기본 body 배경색 유지 */
}

.page3 h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.features-trophy {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px; /* 컨테이너 높이 지정 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.trophy-image {
    max-width: 60%;
    max-height: 100%;
}

.feature-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.8); /* 20% 투명도 적용 */
    color: #333;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(221, 221, 221, 0.8); /* 테두리도 약간 투명하게 */
    text-align: center;
    width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 그림자 연하게 조정 */
}

.feature-box p {
    margin: 0 0 10px;
    font-size: 0.8rem; /* 10% 폰트 크기 축소 */
    color: #666;
}

.feature-box strong {
    font-size: 1.1rem; /* 10% 폰트 크기 축소 */
    font-weight: 900;
    color: #333;
}

/* Special Deals Page */
.page-special-deals {
    background-color: #fff; /* 짝수 섹션: 흰색 */
}

.page-special-deals h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.deal-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.deal-image {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease; /* 부드러운 전환 효과 */
}

.deal-card:hover .deal-image {
    transform: scale(1.05); /* 이미지 5% 확대 */
}

/* 특정 차량 이미지 크기 조정 */
.deal-card img[src="./sorento.png"],
.deal-card img[src="./granduer.png"] {
    transform: scale(1.3); /* 이미지 30% 확대 */
    margin-top: 25%; /* 상단 여백 추가 */
    margin-bottom: 35%; /* 하단 여백 추가 */
}

/* 카니발, 스포티지 호버 시 크기 축소 */
.deal-card:hover img[src="./carnival.png"],
.deal-card:hover img[src="./kia_sportage.png"] {
    transform: scale(0.8); /* 이미지 20% 축소 */
}

.deal-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 10px;
}

.deal-spec {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    flex-grow: 1; /* 카드의 높이가 달라도 가격과 버튼이 하단에 오도록 함 */
}

.deal-pricing {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #555;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.monthly-fee {
    font-size: 1.3rem;
    font-weight: 900;
    color: #007bff;
    margin-top: 15px;
}

.deal-button {
    width: 100%;
    padding: 12px;
    border: 1px solid #007bff;
    background: transparent;
    color: #007bff;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.deal-button:hover {
    background-color: #007bff;
    color: #fff;
}

/* Page 4 */
.page4 {
    /* 홀수 섹션: 기본 body 배경색 유지 */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 최소 너비 조정 */
    gap: 30px;
    width: 100%;
    max-width: 1100px;
}

.benefit-item {
    /* 카드 스타일 제거 */
    text-align: center;
}

.benefit-item:hover {
    /* 호버 효과 제거 */
    transform: none;
    box-shadow: none;
}

.benefit-item .icon-placeholder {
    font-size: 3rem;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #d1e7ff; /* 아이콘 배경색을 더 진하게 변경 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #007bff;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.benefit-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Page 5 */
.page5 {
    /* 홀수 섹션: 기본 body 배경색 유지 */
}

.page5 h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.process-flow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
}

.process-step {
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.process-step .icon {
    font-size: 3rem;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #d1e7ff; /* 아이콘 배경색을 더 진하게 변경 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #007bff;
}

.process-step h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 80px;
    /* Align items */
}

.process-step p {
    color: #666;
}

.step-p {
    font-size: 1.2rem; /* 폰트 크기 키움 */
    font-weight: bold;
    margin-top: -30px; /* 위로 이동 */
}

.arrow {
    font-size: 3rem;
    color: #ccc;
    margin-top: 30px;
}

.mobile-break {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        /* 전체 rem 단위 폰트 크기를 30% 줄임 */
        font-size: 70%; 
    }
.side-image-1 {
    top: 40%;
    left: 235px;
    /* 이미지 위치 조정 */
}

.side-image-2 {
    top: calc(40% + 40px);
    /* 1.png 높이와 간격에 따라 조절 */
    left: 225px;
    /* 이미지 위치 조정 */
}
    .page {
        padding: 20px;
        min-height: auto;
    }

    .page1 .content {
        flex-direction: column;
    }

    .page1 .intro-text {
        text-align: center;
        margin-bottom: -80px; /* h2 태그의 여백을 상쇄하기 위해 음수 마진을 적용합니다. */
    }

    .page1 .intro-text h2 {
        margin-top: -10px; /* h1과의 간격 조정 */
        margin-bottom: 5px; /* p 태그와의 간격 조정 */
        line-height: 1; /* 줄 간격 추가 조정 */
    }

    .page1 .intro-text p {
        margin-top: 0; /* h2와의 간격 조정 */
        line-height: 1.5; /* 단락 내 줄 간격 조정 */
    }

    .phone-image {
        margin-top: 0px;
        width: 330px; /* 모바일에서 10% 크기 축소 */
    }

    /* 개별 폰트 크기 조정 */
    .page2 h2, .page3 h2, .page5 h2 {
        font-size: 2rem;
    }

    .consult-status th, .consult-status td {
        padding: 10px;
        font-size: 0.8rem;
    }

    .consult-status .status-completed {
        font-size: 0.6rem; /* 폰트 크기 추가 축소 */
        padding: 2px 8px; /* 패딩 추가 축소 */
        border-radius: 10px;
        white-space: nowrap; /* 텍스트가 잘리지 않도록 줄바꿈 방지 */
    }

    .stat-item {
        padding: 20px;
    }

    .stat-item .count {
        font-size: 1.68rem; /* 40% 크기 축소 */
    }

    .feature-box {
        padding: 15px;
    }

    .benefit-item h3 {
        font-size: 1rem;
    }

    .benefit-item p {
        font-size: 0.8rem;
    }

    .process-step h3 {
        font-size: 1rem;
    }

    .stats {
        /* flex-direction: column; 제거하여 한 줄로 표시 */
        padding: 10px;
        gap: 5px;
    }

    .stat-item {
        padding: 15px 5px; /* 좌우 패딩 축소 */
        margin: 0;
    }

    .stat-item h3 {
        font-size: 0.9rem; /* 제목 폰트 크기 축소 */
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr); /* 모바일에서 2열로 변경 */
        gap: 20px; /* 모바일에서 카드 간 간격 조정 */
    }

    .deals-grid {
        grid-template-columns: 1fr; /* 모바일에서 1열로 변경 */
    }

    .features-trophy {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .trophy-image {
        /* display: none; 제거하여 모바일에서도 표시 */
        margin-bottom: 30px; /* 카드들과의 간격 추가 */
    }

    .feature-box {
        position: static;
        margin-bottom: 20px;
        width: 80%;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .mobile-break {
        display: block;
    }

    /* 모바일 플로팅 버튼 크기 조정 */
    .floating-btn {
        font-size: 1.1rem; /* 폰트 크기 10% 축소 */
        padding: 13px 18px; /* 패딩 축소 */
    }
}

/* Contact Form Section */
.page-form {
    background-color: #fff; /* 짝수 섹션: 흰색 */
}

.page-form h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.contact-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.privacy-group {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.privacy-group input[type="checkbox"] {
    margin-right: 10px;
}

.privacy-view-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.submit-btn {
    padding: 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.modal-body {
    overflow-y: auto;
    line-height: 1.6;
}

/* Floating Buttons Container */
.floating-btn-container {
    position: fixed;
    bottom: 5px; /* 푸터와의 간격을 위해 위치 조정 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px; /* 버튼 사이 간격 */
    z-index: 999;
}

.floating-btn {
    /* width: auto; 제거 */
    background-image: linear-gradient(45deg, #007bff, #00aaff);
    color: white;
    text-align: center;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);    
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap; /* 글자 줄바꿈 방지 */
}

.floating-btn:hover {
    background-image: linear-gradient(45deg, #0069d9, #0099e6);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

body {
    padding-bottom: 80px; /* 푸터가 보일 수 있도록 body 하단에 여백 추가 */
}

/* Footer */
.footer {
    position: relative; /* z-index 적용을 위해 position 속성 추가 */
    z-index: 1000;      /* 다른 요소들 위에 표시되도록 z-index 설정 */
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #465a70; /* 푸터 상단에 구분선 추가 */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* 중앙 정렬 요청에 따라 변경 */
    align-items: center;
    flex-wrap: wrap; /* 화면이 작을 때 줄바꿈 허용 */
}

.footer-content p {
    margin: 5px 10px; /* 좌우 여백 추가 */
}

.footer-content a {
    color: #fff;
    text-decoration: none; /* 밑줄 제거 */
    transition: color 0.3s; /* 색상 변경 애니메이션 */
}

.footer-content a:hover {
    color: #00aaff; /* 호버 시 색상 변경 */
}