/* ===================================
   CSS 변수 및 기본 설정
=================================== */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===================================
   리셋 및 기본 스타일
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ===================================
   공통 클래스
=================================== */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.btn-full {
    width: 100%;
}

/* ===================================
   상단 띠 배너
=================================== */
.top-banner {
    width: 100%;
    height: 50px;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.top-banner-company {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.top-banner-message {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
}

.top-banner-message #countdown {
    font-weight: 700;
    color: #ff6b6b;
    font-family: 'Consolas', 'Monaco', monospace;
}

.top-banner-phone {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

/* 모바일 배너 기본 숨김 */
.top-banner-mobile {
    display: none;
}

/* 모바일 배너 2줄 레이아웃 */
.top-banner-mobile .top-banner-inner {
    flex-direction: column;
    gap: 2px;
    padding: 8px 20px;
}

.top-banner-row-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.top-banner-row-2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 모바일 배너 카운트다운 스타일 (PC와 동일하게) */
.top-banner-mobile .top-banner-message #countdown-mobile {
    font-weight: 700;
    color: #ff6b6b;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* ===================================
   메인 히어로 섹션 (정책자금 16조)
=================================== */
.main-hero-section {
    margin-top: 20px;
}

.main-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.main-hero-img.img-pc {
    display: block;
}

.main-hero-img.img-mobile {
    display: none;
}

/* ===================================
   헤더 / 네비게이션
=================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* ===================================
   히어로 섹션
=================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fff;
    padding-top: 80px;
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
}

/* 플로팅 이미지 컨테이너 */
.hero-floating-images {
    position: absolute;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 1;
    opacity: 0;
    transform: translateY(-50%) scale(0);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-floating-images.left {
    left: 50%;
    transform: translateY(-50%) translateX(-50%) scale(0);
}

.hero-floating-images.right {
    right: 50%;
    transform: translateY(-50%) translateX(50%) scale(0);
}

.hero-floating-images.left.visible {
    opacity: 1;
    left: 5%;
    transform: translateY(-50%) translateX(0) scale(1);
}

.hero-floating-images.right.visible {
    opacity: 1;
    right: 5%;
    transform: translateY(-50%) translateX(0) scale(1);
}

.floating-img {
    overflow: hidden;
}

.floating-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* 각 이미지별 기울기 및 위치 */
.floating-img-1 {
    transform: rotate(-8deg) translateX(15px);
}

.floating-img-2 {
    transform: rotate(5deg) translateX(-10px);
}

.floating-img-3 {
    transform: rotate(8deg) translateX(-15px);
}

.floating-img-4 {
    transform: rotate(-5deg) translateX(10px);
}

/* 플로팅 애니메이션 */
.hero-floating-images.visible .floating-img-1 {
    animation: floatUp1 4s ease-in-out infinite;
}

.hero-floating-images.visible .floating-img-2 {
    animation: floatDown2 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.hero-floating-images.visible .floating-img-3 {
    animation: floatDown3 4s ease-in-out infinite;
    animation-delay: 0.3s;
}

.hero-floating-images.visible .floating-img-4 {
    animation: floatUp4 4s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes floatUp1 {
    0%, 100% {
        transform: rotate(-8deg) translateX(15px) translateY(0);
    }
    50% {
        transform: rotate(-8deg) translateX(15px) translateY(-35px);
    }
}

@keyframes floatDown2 {
    0%, 100% {
        transform: rotate(5deg) translateX(-10px) translateY(0);
    }
    50% {
        transform: rotate(5deg) translateX(-10px) translateY(35px);
    }
}

@keyframes floatDown3 {
    0%, 100% {
        transform: rotate(8deg) translateX(-15px) translateY(0);
    }
    50% {
        transform: rotate(8deg) translateX(-15px) translateY(35px);
    }
}

@keyframes floatUp4 {
    0%, 100% {
        transform: rotate(-5deg) translateX(10px) translateY(0);
    }
    50% {
        transform: rotate(-5deg) translateX(10px) translateY(-35px);
    }
}

.hero-content {
    text-align: center;
    color: var(--dark-color);
}

.hero-badge {
    display: inline-block;
    font-size: 2rem;
    font-weight: 900;
    color: #2a80ff;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-buttons .btn-primary {
    background-color: #2a80ff;
    padding: 18px 70px;
    border-radius: 50px;
    font-size: 1.2rem;
}

.hero-buttons .btn-primary:hover {
    background-color: #1a6ce6;
}

.hero-image {
    margin: 0 auto;
    max-width: 700px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   특징 섹션
=================================== */
.features-section {
    padding: 150px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #f8f9fc;
}

.features-section .container {
    width: 100%;
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-left {
    text-align: left;
}

.features-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.features-title .highlight {
    color: #2a80ff;
}

.features-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.features-left .btn-primary {
    background-color: #2a80ff;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.15rem;
}

.features-left .btn-primary:hover {
    background-color: #1a6ce6;
}

/* 오른쪽 슬라이드 카드 - 세로 스크롤 캐러셀 */
.features-right {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.slide-cards {
    position: relative;
    width: 100%;
    height: 480px;
}

.slide-card {
    position: absolute;
    width: 100%;
    left: 0;
    background: transparent;
    padding: 28px 45px;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-card p {
    font-size: 2rem;
    color: rgba(100, 100, 120, 0.5);
    margin: 0;
    text-align: center;
    transition: all 0.5s ease;
    white-space: nowrap;
}

.slide-card .highlight {
    color: rgba(42, 128, 255, 0.5);
    font-weight: 600;
}

/* 중앙 활성 카드 */
.slide-card.active {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.slide-card.active p {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--dark-color);
}

.slide-card.active .highlight {
    color: #2a80ff;
    font-weight: 700;
}

/* ===================================
   정책자금 안내 섹션
=================================== */
.policy-section {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
}

.policy-section .container {
    width: 100%;
}

.policy-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.policy-left {
    color: #ffffff;
}

.policy-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.policy-title .highlight {
    color: #ffcc21;
}

.policy-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
}

.policy-checks-list {
    margin-bottom: 60px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 25px;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #5b8def;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.check-item p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* 하단 전체 너비 버튼 */
.policy-button-wrapper {
    margin-top: 60px;
}

.btn-policy-full {
    display: block;
    background: linear-gradient(90deg, #4a90e2 0%, #5b9fef 100%);
    color: #ffffff;
    padding: 25px 70px;
    border-radius: 60px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(74, 144, 226, 0.4);
    width: 100%;
}

.btn-policy-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(74, 144, 226, 0.5);
}

/* 오른쪽 플로팅 이미지 */
.policy-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.policy-floating-img {
    animation: floatUpDown 3s ease-in-out infinite;
    max-width: 100%;
}

.policy-floating-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.review-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 25px;
    min-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateX(-5px);
}

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

.reviewer-name {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.review-stars {
    color: #ffc107;
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-before {
    font-size: 1rem;
    color: #999;
}

.review-arrow {
    color: #2a80ff;
    font-size: 0.8rem;
}

.review-after {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* ===================================
   대상자 섹션
=================================== */
.target-section {
    padding: 150px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #e8f4fc;
    overflow: hidden;
}

.target-section .container {
    width: 100%;
}

.target-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.target-left {
    text-align: left;
}

.target-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.target-title .highlight {
    color: #2a80ff;
}

.target-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.btn-target {
    display: inline-block;
    background: #2a80ff;
    color: #ffffff;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(42, 128, 255, 0.3);
}

.btn-target:hover {
    background: #1a6ce6;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(42, 128, 255, 0.4);
}

/* 오른쪽 무한 슬라이드 */
.target-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
}

.slide-row {
    overflow: hidden;
    width: 100%;
}

.slide-track {
    display: flex;
    gap: 25px;
    animation: slideLeft 30s linear infinite;
    width: max-content;
}

.slide-track.reverse {
    animation: slideRight 25s linear infinite;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.target-card {
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 50px;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.target-card:hover {
    transform: translateY(-5px);
}

.target-card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.target-card p {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    white-space: nowrap;
}

/* ===================================
   주의사항 섹션
=================================== */
.warning-section {
    padding: 100px 0;
    background: #ff0000;
    text-align: center;
}

.warning-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffff00;
    margin-bottom: 50px;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-list li {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffff00;
    margin-bottom: 20px;
    line-height: 1.5;
}

.warning-list li:last-child {
    margin-bottom: 0;
}

.warning-list li.warning-highlight {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 30px;
}

.warning-note {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 0, 0.8);
}

/* ===================================
   문의 섹션
=================================== */
.contact-section {
    padding: 100px 0 120px;
    background: #ffffff;
}

.contact-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.contact-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

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

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s ease;
    background: #fff;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus {
    outline: none;
    border-color: #2a80ff;
    box-shadow: 0 0 0 3px rgba(42, 128, 255, 0.1);
}

.contact-form input::placeholder {
    color: #aaa;
    font-size: 0.95rem;
}

/* 전화번호 3분할 입력 */
.phone-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-inputs input {
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    min-width: 0;
}

.phone-divider {
    font-size: 1rem;
    color: #ccc;
}

/* 체크박스 스타일 */
.checkbox-group {
    margin-top: 24px;
}

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

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    background: #fff;
    box-sizing: border-box;
    vertical-align: middle;
    transform: translateY(-1px);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #2a80ff;
    border-color: #2a80ff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 0.85rem;
    color: #666;
}

.privacy-link {
    color: #2a80ff;
    text-decoration: none;
    font-weight: 600;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* 제출 버튼 */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: #2a80ff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    background: #1a6ce6;
}

/* 인증번호 발송 버튼 */
.btn-verify {
    flex-shrink: 0;
    padding: 16px 18px;
    background: #fff;
    color: #2a80ff;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #2a80ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-verify:hover {
    background: #2a80ff;
    color: #fff;
}

.btn-verify:disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

/* 인증번호 입력 영역 */
.verify-group {
    animation: slideDown 0.3s ease;
}

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

.verify-inputs {
    display: flex;
    gap: 8px;
}

.verify-inputs input {
    flex: 1;
}

.btn-verify-check {
    flex-shrink: 0;
    padding: 16px 24px;
    background: #10b981;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-verify-check:hover {
    background: #059669;
}

.btn-verify-check:disabled {
    background: #f5f5f5;
    color: #fff
    cursor: not-allowed;
}

.btn-verify-check.verified {
    background: #10b981;
    cursor: default;
}

/* 타이머 및 메시지 */
.verify-timer {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #2a80ff;
    font-weight: 500;
}

.verify-timer.expired {
    color: #ef4444;
}

.verify-message {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.verify-message.success {
    color: #10b981;
}

.verify-message.error {
    color: #ef4444;
}

/* 비활성화된 입력 필드 */
.contact-form input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* ===================================
   푸터
=================================== */
.footer {
    background-color: #1a1a1a;
    color: var(--white-color);
    padding: 50px 0 40px;
    text-align: center;
}

.footer .container {
    max-width: 1000px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-logo-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: -5px;
}

.footer-info {
    margin-bottom: 25px;
    text-align: center;
}

.footer-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 2;
    margin: 0;
}

.footer-info .info-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.footer-info .info-divider {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-info a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: #ffffff;
}

.footer-info .privacy-policy {
    text-decoration: underline;
}

.footer-copyright {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ===================================
   모달 (팝업)
=================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.modal-body h4:not(:first-child) {
    margin-top: 24px;
}

.modal-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.modal-body ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.modal-body ul li {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-modal-close {
    background: #2a80ff;
    color: #fff;
    padding: 12px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-modal-close:hover {
    background: #1a6ce6;
}

/* ===================================
   반응형 스타일
=================================== */
@media (max-width: 1024px) {
    .target-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .floating-img {
        width: 140px;
    }

    .hero-floating-images.left {
        left: 2%;
    }

    .hero-floating-images.right {
        right: 2%;
    }

    .policy-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .policy-right {
        justify-content: center;
    }

    .review-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .review-card {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* 상단 띠 배너 모바일 - PC 숨기고 모바일 표시 */
    .top-banner-pc {
        display: none !important;
    }

    .top-banner-mobile {
        display: flex !important;
        height: 40px;
    }

    .top-banner-mobile .top-banner-inner {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
    }

    .top-banner-mobile .top-banner-company {
        font-size: 12px;
        font-weight: 700;
        color: #ffffff;
    }

    .top-banner-mobile .top-banner-phone {
        font-size: 12px;
        font-weight: 700;
        color: #ffffff;
    }

    .top-banner-mobile .top-banner-message {
        font-size: 13px;
        font-weight: 500;
        color: #ffffff;
    }

    .top-banner-mobile .top-banner-message #countdown-mobile {
        font-weight: 700;
        color: #ff6b6b;
    }

    /* 메인 히어로 섹션 모바일 */
    .main-hero-section {
        margin-top: 10px;
    }

    .main-hero-img.img-pc {
        display: none;
    }

    .main-hero-img.img-mobile {
        display: block;
    }

    /* 주의사항 섹션 모바일 */
    .warning-section {
        padding: 60px 0;
    }

    .warning-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .warning-list li {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .warning-note {
        font-size: 0.9rem;
        display: block;
        margin-top: 5px;
    }

    .warning-list li.warning-highlight {
        font-size: 1.6rem;
        margin-top: 20px;
    }

    /* 모바일 네비게이션 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white-color);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* 히어로 */
    .hero-section {
        padding-top: 60px;
    }

    .hero-floating-images {
        display: flex;
        top: auto;
        bottom: 5%;
        gap: 15px;
    }

    .hero-floating-images.left {
        left: -30px;
        transform: translateY(0) translateX(0) scale(1);
    }

    .hero-floating-images.right {
        right: -30px;
        transform: translateY(0) translateX(0) scale(1);
    }

    .hero-floating-images.left.visible {
        transform: translateY(0) translateX(0) scale(1);
    }

    .hero-floating-images.right.visible {
        right: -30px;
        transform: translateY(0) translateX(0) scale(1);
    }

    .floating-img {
        width: 130px;
    }

    .hero-badge {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons .btn-primary {
        padding: 16px 50px;
        font-size: 1.1rem;
    }

    .hero-image {
        max-width: 100%;
    }

    /* 특징 섹션 768px */
    .features-section {
        padding: 100px 0;
        min-height: auto;
    }

    .slide-cards {
        height: 420px;
    }

    .slide-card {
        padding: 20px 25px;
    }

    .slide-card p {
        font-size: 1.3rem;
        white-space: normal;
    }

    .slide-card.active p {
        font-size: 1.5rem;
    }

    /* 특징 */
    .features-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-left {
        text-align: center;
    }

    .features-title {
        font-size: 2rem;
    }

    /* 정책자금 섹션 */
    .policy-title {
        font-size: 2rem;
        text-align: center;
    }

    .policy-subtitle {
        text-align: center;
    }

    .policy-left {
        text-align: center;
    }

    .policy-image {
        margin: 0 auto 30px;
    }

    .policy-checks-list {
        max-width: 500px;
        margin: 0 auto 30px;
    }

    .policy-floating-img {
        max-width: 350px;
    }

    .policy-button-wrapper {
        margin-top: 40px;
    }

    .btn-policy-full {
        padding: 20px 40px;
        font-size: 1.1rem;
        border-radius: 50px;
    }

    .review-cards {
        flex-direction: column;
        align-items: center;
    }

    .review-card {
        width: 100%;
        max-width: 350px;
    }

    /* 소개 */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text .section-title {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    /* 대상자 섹션 */
    .target-layout {
        gap: 50px;
    }

    .target-left {
        text-align: center;
    }

    .target-title {
        font-size: 2.2rem;
    }

    .target-subtitle {
        font-size: 1rem;
    }

    .btn-target {
        padding: 18px 40px;
        font-size: 1rem;
    }

    .target-card {
        padding: 25px 30px;
        min-width: 180px;
    }

    .target-card-icon {
        width: 55px;
        height: 55px;
    }

    .target-card p {
        font-size: 0.9rem;
    }

    /* 문의 */
    .contact-section {
        padding: 60px 0 80px;
    }

    .contact-wrapper {
        padding: 0 20px;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .phone-inputs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .phone-inputs input {
        padding: 14px 8px;
        flex: 1 1 70px;
    }

    .phone-divider {
        display: none;
    }

    .btn-verify {
        width: 100%;
        margin-top: 10px;
        padding: 14px;
    }

    /* 푸터 모바일 */
    .footer {
        padding: 40px 0 30px;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-logo-text {
        font-size: 1.1rem;
    }

    .footer-info p {
        font-size: 0.8rem;
        line-height: 2;
        color: rgba(255, 255, 255, 0.6);
    }

    .footer-info .info-label {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }

    .footer-info .info-divider {
        margin: 0 6px;
        color: rgba(255, 255, 255, 0.3);
    }

    .footer-copyright {
        padding-top: 20px;
    }

    .footer-copyright p {
        font-size: 0.75rem;
    }

    /* 모달 모바일 */
    .modal-content {
        max-height: 90vh;
        margin: 10px;
        border-radius: 12px;
    }

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

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body h4 {
        font-size: 0.95rem;
    }

    .modal-body p,
    .modal-body ul li {
        font-size: 0.85rem;
    }

    .modal-footer {
        padding: 14px 20px;
    }

    .btn-modal-close {
        padding: 10px 30px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* 상단 띠 배너 480px */
    .top-banner-mobile .top-banner-inner {
        padding: 8px 15px;
        gap: 2px;
    }

    .top-banner-row-1 .top-banner-company {
        font-size: 12px;
        font-weight: 700;
        color: #ffffff;
    }

    .top-banner-row-1 .top-banner-phone {
        font-size: 12px;
        font-weight: 700;
        color: #ffffff;
    }

    .top-banner-row-2 .top-banner-message {
        font-size: 12px;
        font-weight: 500;
        color: #ffffff;
    }

    /* 히어로 480px */
    .hero-floating-images {
        bottom: 3%;
        gap: 10px;
    }

    .hero-floating-images.left {
        left: -20px;
    }

    .hero-floating-images.right {
        right: -20px;
    }

    .hero-floating-images.left.visible {
        left: -20px;
        top: 50%;
    }

    .hero-floating-images.right.visible {
        right: -20px;
        top: 50%;

    }

    .floating-img {
        width: 130px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-badge {
        font-size: 1.2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-buttons .btn-primary {
        padding: 14px 40px;
        font-size: 1rem;
    }

    /* 특징 섹션 480px */
    .features-section {
        padding: 80px 0;
        min-height: auto;
    }

    .features-title {
        font-size: 1.6rem;
    }

    .features-subtitle {
        font-size: 1rem;
    }

    .features-left .btn-primary {
        padding: 16px 40px;
        font-size: 1rem;
    }

    .slide-cards {
        height: 380px;
    }

    .slide-card p {
        font-size: 1.2rem;
        white-space: normal;
    }

    .slide-card.active p {
        font-size: 1.4rem;
    }

    /* 정책자금 섹션 480px */
    .policy-section {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .policy-title {
        font-size: 1.6rem;
    }

    .policy-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .check-item {
        gap: 12px;
        margin-bottom: 20px;
    }

    .check-item p {
        font-size: 1rem;
    }

    .btn-policy-full {
        padding: 18px 30px;
        font-size: 1rem;
    }

    /* 대상자 섹션 480px */
    .target-section {
        padding: 80px 0;
        min-height: auto;
    }

    .target-title {
        font-size: 1.6rem;
    }

    .target-subtitle {
        font-size: 0.95rem;
    }

    .btn-target {
        padding: 16px 35px;
        font-size: 0.95rem;
    }

    .target-card {
        padding: 20px 25px;
        min-width: 150px;
    }

    .target-card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 15px;
    }

    .target-card p {
        font-size: 0.8rem;
    }

    /* 주의사항 섹션 480px */
    .warning-section {
        padding: 50px 0;
    }

    .warning-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .warning-list li {
        font-size: 0.95rem;
    }

    .warning-note {
        font-size: 0.8rem;
    }

    .warning-list li.warning-highlight {
        font-size: 1.3rem;
        margin-top: 15px;
    }

    /* 문의 섹션 480px */
    .contact-section {
        padding: 50px 0 60px;
    }

    .contact-wrapper {
        padding: 0 15px;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-subtitle {
        font-size: 0.9rem;
    }

    .contact-form label {
        font-size: 0.85rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="tel"] {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

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

    .verify-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .btn-verify-check {
        width: 100%;
        padding: 14px;
    }

    /* 푸터 480px */
    .footer-info p {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
        line-height: 2;
    }

    .footer-info .info-label {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }
}
