/* 기본 스타일 - HeyDealer 스타일로 변경 */
:root {
    --primary-color: #2563EB; /* 헤이딜러 주요 색상 - 로얄 블루 */
    --secondary-color: #555555;
    --background-color: #f8fafc;
    --text-color: #333333;
    --light-gray: #e0e0e0;
    --white: #ffffff;
    --dark-gray: #333333;
    --success-color: #00c853;
    --warning-color: #ffc107;
    --danger-color: #f44336;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 버튼 스타일 - HeyDealer 스타일 */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px; /* 더 둥근한 버튼 */
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #1d4ed8; /* 더 진한 블루 */
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* 파란색 배경에 흰색 글씨의 버튼 스타일 */
.btn-primary2 {
    display: inline-block;
    background-color: #0066cc; /* 파란색 배경 */
    color: var(--white); /* 흰색 글씨 */
    padding: 12px 24px;
    border-radius: 50px; /* 더 둥근한 버튼 */
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary2:hover {
    background-color: #0052a3; /* 더 진한 파란색 */
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 50px; /* 더 둥근한 버튼 */
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background-color: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* 헤더 스타일 - HeyDealer 스타일 */
header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 {
    color: var(--dark-gray);
    font-size: 28px;
    font-weight: 800;
}

.logo h1 span {
    color: var(--primary-color);
}

.logo p {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    color: var(--dark-gray);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-gray);
}

/* 히어로 섹션 - HeyDealer 스타일 */
.hero {
    padding: 100px 0 80px;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* 비디오 배경 스타일 */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    display: none; /* 기본적으로 숨김 */
}

/* 모바일에서는 이미지 표시 및 텍스트 설정 */
@media screen and (max-width: 767px) {
    .hero-image {
        display: block;
    }
    
    /* 모바일용 텍스트 표시 */
    .pc-description {
        display: none;
    }
    
    .mobile-description {
        display: block;
    }
    
    /* 모바일용 타이틀 표시 */
    .pc-title {
        display: none;
    }
    
    .mobile-title {
        display: block;
        color: initial;
    }
    
    .hero-content p {
        color: initial;
    }
}

.hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

/* 데스크톱에서만 비디오 표시 */
@media screen and (min-width: 768px) {
    .hero-video-background {
        display: block; /* 데스크톱에서만 표시 */
    }
    
    /* 비디오가 있을 때 hero 섹션 스타일 조정 */
    .hero {
        position: relative;
        background-color: rgba(0, 0, 0, 0.4); /* 비디오 위에 오버레이 */
    }
    
    .hero .container {
        position: relative;
        z-index: 1; /* 비디오 위에 콘텐츠 표시 */
    }
    
    /* PC/모바일 텍스트 구분 */
    .pc-title {
        display: block !important;
        font-size: 160px !important; /* 적절한 크기로 조정 */
        color: #ffffff !important; /* 흰색 */
        margin-bottom: 20px !important;
        font-weight: bold !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
        letter-spacing: 2px !important;
        line-height: 1.2 !important;
    }
    
    .mobile-title {
        display: none;
    }
    
    .pc-description {
        display: block;
    }
    
    .mobile-description {
        display: none;
    }
    
    /* 비디오 배경일 때 텍스트 색상 조정 */
    .hero-content h2.pc-title {
        color: #f1f1f1; /* 흰색에 가까운 그레이 */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .hero-content .pc-description {
        color: #f1f1f1; /* 흰색에 가까운 그레이 */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    /* '한번에 전세계에서' 부분만 밝은 하늘색으로 변경 */
    .hero-content h2 span {
        color: #7dd3fc; /* 밝은 하늘색 */
    }
    
    /* PC에서는 이미지 숨김 */
    .hero-image {
        display: none;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50%;
    height: 120%;
    background-color: #eff6ff; /* 연한 블루 배경 */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--dark-gray);
}

.hero-content h2 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-content h2 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(37, 99, 235, 0.2);
    z-index: -1;
}

.hero-content p {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 기능 섹션 - HeyDealer 스타일 */
.features {
    padding: 100px 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.features::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40%;
    height: 60%;
    background-color: #fff8f6;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark-gray);
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 92, 56, 0.2);
}

.feature-icon {
    font-size: 46px;
    color: var(--primary-color);
    margin-bottom: 25px;
    background-color: rgba(128, 128, 128, 0.1);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.feature-card p {
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 16px;
}

/* 이용 방법 섹션 */
.how-it-works {
    padding: 80px 0;
    background-color: var(--white);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.step p {
    color: var(--secondary-color);
}

/* 고객 후기 섹션 */
.testimonials {
    padding: 80px 0;
    background-color: var(--background-color);
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 300px;
    flex: 1;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 14px;
    color: var(--secondary-color);
}

/* CTA 섹션 - HeyDealer 스타일 */
.cta {
    padding: 100px 0;
    background: #2563EB;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(150px, -150px);
}

.cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-100px, 100px);
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 18px;
    padding: 15px 30px;
}

.cta .btn-primary:hover {
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 푸터 스타일 */
footer {
    background-color: #2d3748;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links, .footer-contact {
    margin-bottom: 20px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-contact p i {
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

/* 폼 스타일 */
/* 입력 폼과 버튼 수평 정렬을 위한 스타일 */
.input-with-button {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 5px !important;
}

.input-with-button input {
    flex: 1 !important;
    height: 38px !important; /* 버튼과 동일한 높이 */
    padding: 6px 12px !important;
    font-size: 16px !important;
    border-radius: var(--border-radius) !important;
    border: 1px solid #ced4da !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 0 15px !important;
    height: 38px !important; /* 입력 폼과 동일한 높이 */
    line-height: 38px !important;
    border-radius: var(--border-radius) !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 100px !important; /* 버튼 최소 너비 설정 */
    vertical-align: middle !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.btn-primary:hover {
    background-color: #1d4ed8; /* 조금 더 진한 파란색 */
}

/* 중복확인 버튼에 대한 호버 효과 제거 */
#email-check-btn:hover,
#business-check-btn:hover {
    background-color: var(--primary-color) !important; /* 기본 배경색 유지 */
    transform: none !important; /* 슬라이드 효과 제거 */
    transition: none !important; /* 애니메이션 제거 */
}

.btn-primary:disabled {
    background-color: #a0aec0; /* 회색으로 비활성화 상태 표시 */
    cursor: not-allowed;
}

/* 폼 필드 비활성화 스타일 */
input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 유효성 피드백 스타일 */
.valid-feedback {
    color: var(--success-color);
    font-size: 14px;
    margin-top: 5px;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 5px;
}

/* 중복확인 완료 아이콘 */
.check-icon {
    color: var(--success-color);
    margin-left: 10px;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .steps {
        flex-direction: column;
    }

    .step {
        margin-bottom: 30px;
    }

    .footer-content > div {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-content > div {
        flex: 0 0 100%;
    }
}

/* 로그인 및 회원가입 페이지 스타일 */
.auth-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 우편번호 검색 입력 필드와 버튼 스타일 */
.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex: 3; /* 입력창이 더 넘어지도록 비율 조정 */
}

.input-with-button button {
    flex: 1;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 100px;
    max-width: 120px;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 대시보드 스타일 */
.dashboard {
    padding: 40px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title h2 {
    font-size: 28px;
    font-weight: 700;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dashboard-card-title {
    font-size: 18px;
    font-weight: 600;
}

.dashboard-card-icon {
    font-size: 20px;
    color: var(--primary-color);
}

.dashboard-card-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-card-description {
    font-size: 14px;
    color: var(--secondary-color);
}

.dashboard-table {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.dashboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th, .dashboard-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.dashboard-table th {
    background-color: #f1f5f9;
    font-weight: 600;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table tr:hover {
    background-color: #f8fafc;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.status-inactive {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* 알림 메시지 스타일 */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* 이용약관 페이지 스타일 */
.terms-section {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 20px;
    background-color: #fff;
}

.terms-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--primary-color);
}

.terms-content {
    margin-bottom: 15px;
}

.terms-scroll {
    height: 200px;
    overflow-y: scroll;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    padding: 15px;
    background-color: #f8f9fa;
    font-size: 14px;
    line-height: 1.6;
}

.terms-agree {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.checkbox-container input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.required {
    color: #dc3545;
    margin-left: 5px;
}

.agree-all-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.agree-all-button {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background-color: #f1f5f9;
    color: #333;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agree-all-button:hover {
    background-color: #e2e8f0;
}

.agree-all-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
