/* Variables */
:root {
    --background: #fffdfb;
    --foreground: #1f2937;
    --border: #00000014;
    --primary: #e283ae;
    --primary-foreground: #ffffff;
    --secondary: #fff1f6;
    --secondary-foreground: #ad597b;
    --muted: #9ca3af;
    --muted-text: #6b7280;
    --card: #ffffff;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --font-family: "Inter", sans-serif;
    --container-max: 1400px;
    /* 1920px 대응 컨텐츠 너비 */
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 120px 0;
}

.section-alt {
    background-color: var(--secondary);
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 251, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-content {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* 로고 스타일 및 효과 */
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.nav-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* 네비게이션 링크 */
.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-text);
    font-weight: 500;
    font-size: 15px;
    transition: 0.2s;
    position: relative;
}

/* Nav CTA Container */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}


/* Language Dropdown Styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s ease;
    height: 44px;
    /* Align with mobile button height if needed */
}


.lang-trigger:hover {
    border-color: var(--primary);
    background: var(--secondary);
}

.lang-trigger .active-lang {
    margin: 0 2px;
}

.lang-trigger iconify-icon:first-child {
    font-size: 18px;
    color: var(--primary);
}

.lang-trigger iconify-icon:last-child {
    font-size: 14px;
    color: var(--muted);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 150px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown.active .lang-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--foreground);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.lang-item:hover {
    background: var(--secondary);
    color: var(--primary);
}

.lang-item.active {
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700;
}

.lang-item iconify-icon {
    font-size: 20px;
}

/* Language Switcher Styles (Old list styles removed or kept for footer if needed) */
.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}


.lang-link {
    text-decoration: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.lang-link:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(226, 131, 174, 0.3);
}

.lang-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.lang-link iconify-icon {
    font-size: 20px;
}

.nav-top .lang-link {
    width: 24px;
    height: 24px;
    background: white;
}


/* Specific adjustment for mobile navbar to prevent collisions */
@media (max-width: 1200px) {
    .nav-content {
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }
}

.footer .lang-switcher {
    margin-bottom: 24px;
    justify-content: flex-start;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile specific dropdown adjustment */
@media (max-width: 991px) {
    .nav-top .container {
        justify-content: center;
    }

    .lang-menu {
        right: 50%;
        transform: translateX(50%);
        min-width: 180px;
    }

    .lang-dropdown:hover .lang-menu,
    .lang-dropdown.active .lang-menu {
        transform: translateX(50%);
    }
}


/* Typography */
.h1 {
    font-size: clamp(40px, 4.5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.h2 {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.2;
}

.h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.text-lg {
    font-size: 18px;
    color: var(--muted-text);
}

.text-base {
    font-size: 16px;
    color: var(--muted-text);
}

.sub-badge {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 36px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    text-decoration: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

/* 하단 CTA 전용 버튼 스타일 (추가됨) */
.btn-white {
    background: white;
    color: var(--foreground);
}

.btn-white:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Components */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    height: 100%;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.icon-box {
    width: 56px;
    height: 56px;
    background: var(--secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 24px;
}

.hero-img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.rounded-img {
    width: 100%;
    border-radius: var(--radius-xl);
    object-fit: cover;
}

/* Table */
.table-scroll {
    overflow-x: auto;
}

.table-wrapper {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    background: white;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.comparison-table th {
    background: #f9fafb;
    font-weight: 700;
}

/* Highlight "Lip Lase" Column (2nd Column) */
.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
    background-color: var(--secondary);
    color: #ad597b;
    /* secondary-foreground */
    font-weight: 700;
}

/* Specific styling for the top header of highlighted column */
.comparison-table th:nth-child(2) {
    border-radius: 12px 12px 0 0;
    /* Rounded top */
}

/* Row Hover Effect */
.comparison-table tbody tr {
    transition: transform 0.2s ease, background-color 0.2s;
}

.comparison-table tbody tr:hover {
    background-color: #fff;
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    /* Required for shadow */
    z-index: 1;
}

/* Remove old highlight class if not needed, or keep for safety */
.highlight-cell {
    background: var(--secondary) !important;
    color: var(--secondary-foreground);
}

/* Protocol */
.step-card {
    border-left: 2px solid var(--border);
    padding-left: 30px;
    position: relative;
}

.step-num {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.list-dots {
    padding-left: 20px;
    color: var(--muted-text);
}

.list-dots li {
    margin-bottom: 10px;
}

/* Review */
.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid white;
}

.result-box {
    background: var(--background);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin-top: 30px;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.badge-primary {
    background: var(--primary);
}

.badge-dark {
    background: var(--foreground);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 24px;
    cursor: pointer;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-body {
    margin-top: 16px;
    color: var(--muted-text);
    display: none;
}

/* CTA */
.cta-dark {
    background: #111827;
    padding: 120px 0;
    color: white;
    text-align: center;
}

.cta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    margin: 30px 0 50px;
}

.flex-center-gap {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.flex-gap {
    display: flex;
    gap: 24px;
    /* Increased spacing between buttons */
    align-items: center;
    flex-wrap: wrap;
}


/* Footer */
.footer {
    background-color: #f9fafb;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    color: var(--muted-text);
}

.footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

.footer-brand .logo {
    color: var(--foreground);
    margin-bottom: 16px;
}

.footer-slogan {
    font-size: 15px;
    max-width: 250px;
}

.footer-links-group {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    color: var(--foreground);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--muted-text);
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 40px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    font-size: 13px;
    color: var(--muted-text);
    text-decoration: none;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--muted-text);
    font-size: 28px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-5px) rotate(8deg);
}

/* --- Responsive Layout --- */
@media (max-width: 1200px) {
    .grid-2 {
        gap: 40px;
    }

    .container {
        padding: 0 24px;
    }
}

@media (max-width: 991px) {
    .nav-links {
        display: none !important;
    }

    /* 링크들은 확실히 숨김 */
    /* 상담 예약 버튼과 드롭다운 레이아웃 */
    .nav-cta {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    .navbar .btn {
        height: 44px;
        padding: 0 16px;
        font-size: 13px;
        flex: 1;
        /* 가로 가득 채우기 (드롭다운 제외) */
    }

    .lang-trigger {
        padding: 0 10px;
        height: 44px;
    }

    .lang-trigger .active-lang {
        display: none;
        /* 모바일에서는 지구본만 표시하여 공간 확보 */
    }


    /* 상단 상담버튼 모바일 사이즈 */

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .hero-text-box {
        text-align: center;
    }

    /* Mobile: Image First, Text Second */
    .hero .image-container {
        order: -1;
        margin-bottom: 30px;
    }

    .flex-gap,
    .flex-center-gap {
        justify-content: center;
        flex-direction: column;
    }

    /* 모바일에서 섹션 내 일반 버튼은 가로를 꽉 채우도록 */
    .section .btn,
    .cta-dark .btn {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand .logo {
        margin: 0 auto 16px;
    }


    .footer-slogan {
        margin: 0 auto;
    }

    .footer-links-group {
        justify-content: center;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 15px;
    }

    .footer-social {
        justify-content: center;
    }

    .section,
    .section-alt {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .h1 {
        font-size: 36px;
    }
}

/* Before & After Styles */
.review-case {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.review-case:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    /* 사진 사이 아주 미세한 간격 */
    background: #eee;
}

.ba-item {
    position: relative;
    overflow: hidden;
}

.ba-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 정사각형 유지 */
    object-fit: cover;
    display: block;
}

.ba-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ba-label.active {
    background: var(--primary);
}

.ba-content {
    padding: 30px;
}

.ba-content .h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--foreground);
}

.ba-content .text-base {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted-text);
}

/* 모바일 대응: 3열에서 1열로 */
@media (max-width: 991px) {
    .ba-grid {
        gap: 4px;
    }

    .ba-content {
        padding: 20px;
    }
}

/* Image Comparison Slider */
.ba-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1.5;
    overflow: hidden;
    cursor: ew-resize;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.before-img,
.after-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* 초기값 */
    height: 100%;
    overflow: hidden;
    border-right: 3px solid white;
    /* 중앙 선을 조금 더 잘 보이게 두껍게 */
    z-index: 2;
}

.after-img {
    width: 1000%;
    /* 부모 너비에 상관없이 원본 크기 유지용 (카드 너비의 10배 정도 넉넉히) */
    max-width: none;
    height: 100%;
}

/* 실제 드래그를 감지하는 투명 Input */
.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

/* 핸들 버튼 */
.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 5;
}

.slider-button::before,
.slider-button::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transform: translateY(-50%);
}

.slider-button::before {
    border-right: 8px solid #333;
    left: 8px;
}

.slider-button::after {
    border-left: 8px solid #333;
    right: 8px;
}

.ba-info {
    padding: 24px;
    text-align: center;
}


/* DB Form Section */
.db-section {
    background-color: #f8f9fa;
}

.db-card {
    display: grid;
    grid-template-columns: 42% 58%;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* 왼쪽 파란 영역 */
.db-info-side {
    background-color: #2b5a8c;
    /* 이미지와 유사한 다크블루 */
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-white-opacity {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
}

.kakao-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffeb00;
    color: #3c1e1e;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 12px;
    width: fit-content;
    transition: 0.3s;
}

.kakao-btn iconify-icon {
    font-size: 32px;
}

.kakao-sub {
    display: block;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.8;
}

.kakao-main {
    display: block;
    font-size: 16px;
    font-weight: 800;
}

.kakao-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 235, 0, 0.3);
}

/* 오른쪽 입력 영역 */
.db-form-side {
    padding: 60px;
    background: white;
}

.form-notice {
    color: #999;
    font-size: 14px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: #ccc;
    font-weight: 700;
    margin-bottom: 8px;
}

.input-group input,
.input-group select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    font-size: 18px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-bottom-color: #2b5a8c;
}

.phone-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-inputs select {
    width: 80px;
    cursor: pointer;
}

.agree-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.agree-group label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.submit-btn {
    background-color: #2b5a8c;
    color: white;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #1e4063;
}

/* 모바일 대응 */
@media (max-width: 991px) {
    .db-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .db-info-side {
        padding: 40px;
    }

    .db-form-side {
        padding: 40px;
    }

    .phone-inputs {
        gap: 10px;
    }
}

/* DB Form Section - 기존 핑크 테마 적용 */
.db-section {
    background-color: var(--secondary);
}

/* 연한 핑크 배경 */

.db-card {
    display: grid;
    grid-template-columns: 42% 58%;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(226, 131, 174, 0.15);
    /* 핑크빛 은은한 그림자 */
}

/* 왼쪽 안내 영역 */
.db-info-side {
    background-color: var(--primary);
    /* 메인 핑크 컬러 */
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-white-opacity {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
}

.kakao-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fae100;
    /* 카카오 고유색 유지 */
    color: #3c1e1e;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 12px;
    width: fit-content;
    transition: 0.3s;
}

.kakao-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(250, 225, 0, 0.3);
}

/* 오른쪽 입력 영역 */
.db-form-side {
    padding: 60px;
    background: white;
}

.form-notice {
    color: var(--muted-text);
    font-size: 14px;
    margin-bottom: 40px;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.input-group input,
.input-group select {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-size: 18px;
    outline: none;
    transition: 0.3s;
    color: var(--foreground);
}

.input-group input:focus {
    border-bottom-color: var(--primary);
}

.phone-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-inputs select {
    width: 80px;
}

.agree-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agree-group input[type="checkbox"] {
    accent-color: var(--primary);
}

.agree-group label {
    font-size: 14px;
    color: var(--muted-text);
    cursor: pointer;
}

.submit-btn {
    background-color: var(--primary);
    /* 버튼도 핑크로 통일 */
    color: white;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #e48db4;
    transform: translateY(-2px);
}

/* WhatsApp Specific Styles */
.whatsapp-btn {
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 22px 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    font-weight: 700;
    font-size: 18px;
    width: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn iconify-icon {
    font-size: 36px;
}

.whatsapp-info {
    text-align: center;
}

.whatsapp-number {
    display: block;
    font-size: 24px;
    letter-spacing: 1px;
    font-weight: 800;
}

.whatsapp-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* LINE Specific Styles */
.line-btn {
    background: #06C755;
    color: white;
    text-decoration: none;
    padding: 22px 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.3);
    font-weight: 700;
    font-size: 18px;
    width: 100%;
}

.line-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(6, 199, 85, 0.4);
}

.line-btn iconify-icon {
    font-size: 36px;
}

.line-info {
    text-align: center;
}

.line-id {
    display: block;
    font-size: 24px;
    letter-spacing: 1px;
    font-weight: 800;
}

.line-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* WeChat Specific Styles */
.wechat-btn {
    background: #07C160;
    color: white;
    text-decoration: none;
    padding: 22px 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(7, 193, 96, 0.3);
    font-weight: 700;
    font-size: 18px;
    width: 100%;
}

.wechat-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(7, 193, 96, 0.4);
}

.wechat-btn iconify-icon {
    font-size: 36px;
}

.wechat-info {
    text-align: center;
}

.wechat-id {
    display: block;
    font-size: 24px;
    letter-spacing: 1px;
    font-weight: 800;
}

.wechat-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* Multi-channel Contact Grid */
.contact-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.qr-box {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.qr-box:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.qr-code-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    .contact-grid-wrapper {
        grid-template-columns: 1fr;
    }
}





/* 모바일 대응 */
@media (max-width: 991px) {
    .db-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .db-info-side,
    .db-form-side {
        padding: 40px;
    }
}

/* Utils */
.mb-16 {
    margin-bottom: 16px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-64 {
    margin-bottom: 64px;
}

.mt-8 {
    margin-top: 8px;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.text-primary {
    color: var(--primary);
}

/* Scroll Animation Utilities */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items (optional refinement) */
.grid-3 .animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.grid-3 .animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.grid-4 .animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.grid-4 .animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.grid-4 .animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

/* --- Phase 2: Visual Enhancements --- */

/* 1. Animated Gradient Background for Hero */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-gradient {
    background: linear-gradient(-45deg, #fffdfb, #fff0f5, #fce7f3, #fffdfb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-link {
    text-decoration: none;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-link:hover,
.lang-link.active {
    color: var(--primary);
    font-weight: 700;
}

/* Divider between langs */
.lang-link:not(:last-child)::after {
    content: "|";
    color: #e5e5e5;
    margin-left: 12px;
    font-weight: 400;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* 3. Button Shimmer Effect */
@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

/* 4. Image Hover Zoom Effect */
.img-hover-zoom {
    overflow: hidden;
    display: block;
    border-radius: var(--radius-xl);
    /* Ensure radius matches */
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* 5. Protocol Card Interactive Hover */
/* 5. Protocol Card Interactive Hover */
.step-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    border: 1px solid var(--border);
    /* Make border visible by default */
    padding: 40px 30px;
    /* Increase vertical padding */
    background: white;
    /* Ensure it looks like a box */
    height: 100%;
    /* Match height in grid */
    min-height: 240px;
    /* Ensure substantial size */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(226, 131, 174, 0.2);
}

/* 6. Video Showcase Section */
.video-showcase {
    background-color: #fff;
    padding-bottom: 80px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    /* Center it within the right column (or 0 for left align) - Let's use auto for aesthetics */
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-element {
    width: 100%;
    display: block;
    object-fit: cover;
}

.video-cta {
    text-align: center;
    margin-top: 40px;
}



/* 6. Button Pulse Animation */
/* 6. Button Pulse Animation (Softened) */
@keyframes pulse-border {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(226, 131, 174, 0.3);
    }

    /* Reduced opacity */
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 6px rgba(226, 131, 174, 0);
    }

    /* Reduced spread */
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(226, 131, 174, 0);
    }
}

.btn-pulse {
    animation: pulse-border 3s infinite;
    /* Slower duration */
}