/* ===========================================
   뇌-자율신경 클리닉 페이지 스타일
   =========================================== */


/* ===========================================
   탭 메뉴 섹션
   =========================================== */

.clinic-tabs-section {
    width: 100%;
    background: #F7F7FB;
    border-bottom: 1px solid #E5E5EC;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
}

.clinic-tabs-section.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tabs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0;
}

.tabs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
}

.tab-item {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: none;
    color: #555555;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item.active {
    color: #111111;
    font-weight: 700;
}

.tab-item:hover {
    color: #111111;
}


/* ===========================================
   클리닉 섹션 공통
   =========================================== */

.clinic-section {
    width: 100%;
    padding: 0;
    margin: 0;
}


/* ===========================================
   인트로 배너
   =========================================== */

.section-intro-banner {
    width: 100%;
    height: 228px;
    position: relative;
    overflow: hidden;
    background: #010101;
    border-bottom: 1px solid #BFBFBF;
}

.intro-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.intro-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}


/* .intro-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.60) 100%);
} */

.intro-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: max-content;
}

.intro-banner-title {
    color: white;
    font-size: 40px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 64px;
    margin: 0;
}

.intro-banner-subtitle {
    opacity: 0.80;
    color: white;
    font-size: 20px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
}


/* ===========================================
   인트로 섹션 (만성 소화 전용)
   =========================================== */

.section-intro {
    width: 100%;
    padding: 180px 0;
    background: black;
    position: relative;
    overflow: hidden;
}

.intro-bg-pattern {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: none;
}

.intro-bg-pattern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.intro-question {
    color: white;
    font-size: 36px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 57.60px;
    text-align: center;
    margin: 0;
}

.intro-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.intro-answer {
    color: white;
    font-size: 30px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    margin: 0;
}

.intro-description {
    color: white;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 25.60px;
    text-align: center;
    margin: 0;
}

.intro-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 80px;
}

.feature-card {
    width: 390px;
    padding: 40px 8px;
    background: linear-gradient(129deg, rgba(11, 43, 24, 0.50) 0%, rgba(4.54, 67.43, 61.14, 0.50) 100%);
    border: 1px solid #4E4E4E;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 52px;
    height: 52px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-text {
    color: white;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    margin: 0;
}


/* ===========================================
   접근방식 섹션
   =========================================== */

.approach-section {
    width: 100%;
    padding: 150px 0;
}

.approach-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.approach-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.approach-label {
    color: #005E32;
    font-size: 20px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 32px;
    margin: 0;
}

.approach-title {
    color: #111111;
    font-size: 36px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 57.60px;
    margin: 0;
}

.approach-description {
    color: #555555;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 25.60px;
    margin: 0;
}

.approach-image {
    width: 585px;
    height: 487px;
    background: #FDFDFD;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.approach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ===========================================
   원인교정치료 섹션
   =========================================== */

.treatment-section {
    width: 100%;
    padding: 150px 0px;
    background: #F7F7FB;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.treatment-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.treatment-label {
    color: #005E32;
    font-size: 20px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
    margin: 0;
}

.treatment-title {
    color: #111111;
    font-size: 36px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 57.60px;
    text-align: center;
    margin: 0;
}

.treatment-cards {
    width: 100%;
    display: flex;
    gap: 16px;
    max-width: 1207px;
}

.treatment-card {
    flex: 1;
    padding: 30px 20px;
    background: white;
    border: 1px solid #E5E5EC;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-step {
    display: inline-flex;
    padding: 4px 16px;
    background: #F7F7FB;
    border-radius: 2px;
    border: 1px solid #E5E5EC;
    color: #767676;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    line-height: 25.60px;
    width: fit-content;
}

.card-title {
    color: #111111;
    font-size: 18px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    line-height: 28.80px;
    margin: 0;
}

.card-description {
    color: #555555;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    line-height: 25.60px;
    margin: 0;
}

.self-check-btn {
    width: 380px;
    padding: 16px;
    background: #E0E0E0;
    border-radius: 8px;
    border: none;
    color: #111111;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.self-check-btn:hover {
    background: #005903;
    color: #fff;
}


/* ===========================================
   자가진단 체크리스트 팝업
   =========================================== */

.self-check-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.self-check-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    padding: 60px 80px;
    background: white;
    border-radius: 8px;
    overflow-y: auto;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #555555;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #111111;
}

.modal-title {
    color: #005E32;
    font-size: 20px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 600;
    line-height: 38.40px;
    text-align: center;
    margin: 0 0 8px 0;
}

.modal-subtitle {
    color: #111111;
    font-size: 36px;
    font-family: 'MaruBuriOTF', 'MaruBuri', 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 51.20px;
    text-align: center;
    margin: 0 0 40px 0;
}

.modal-checklist {
    width: 100%;
    padding: 40px;
    background: #F7F7FB;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    /* 기본 체크박스 숨기기 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    /* 체크되지 않은 상태 - SVG 배경 */
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='21' height='21' fill='white' stroke='%23E0E0E0'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* 부드러운 전환 효과 */
    transition: all 0.2s ease;
}


/* 체크된 상태 */

.checkbox-item input[type="checkbox"]:checked {
    /* 체크된 상태 - 체크마크 포함 SVG */
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='21' height='21' fill='white' stroke='%2318522F'/%3E%3Cpath d='M6 10.5L9.33333 14L16 7' stroke='%2318522F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* 호버 효과 */

.checkbox-item:hover input[type="checkbox"] {
    transform: scale(1.05);
}

.checkbox-item span {
    color: #111111;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 25.60px;
}

.modal-notice {
    color: #555555;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: 25.60px;
    text-align: center;
    margin: 0 0 32px 0;
}

.modal-cta-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #18522F;
    border-radius: 8px;
    color: white;
    font-size: 20px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.modal-cta-btn:hover {
    background: #0D3A1F;
}


/* ===========================================
   반응형 - 태블릿 (1024px 이하)
   =========================================== */

@media (max-width: 1024px) {
    /* 탭 메뉴 */
    .clinic-tabs-section {
        top: 0;
    }
    .tabs-container {
        padding: 12px 0px;
    }
    .tabs-wrapper {
        flex-wrap: wrap;
    }
    .tab-item {
        padding: 12px 8px;
        font-size: 16px;
        line-height: 25.60px;
    }
    /* 인트로 배너 */
    .section-intro-banner {}
    .intro-banner-title {
        font-size: 26px;
        line-height: 41.60px;
    }
    .intro-banner-subtitle {
        font-size: 20px;
        line-height: 32px;
    }
    .intro-bg-pattern img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 24% 50%;
    }
    /* 인트로 섹션 */
    .section-intro {
        padding: 80px 16px;
    }
    .intro-question {
        font-size: 26px;
        line-height: 41.60px;
    }
    .intro-answer {
        font-size: 20px;
        line-height: 32px;
    }
    .intro-description {
        font-size: 14px;
        line-height: 22.40px;
    }
    .intro-features {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin: 0;
    }
    .feature-card {
        width: 100%;
        max-width: 400px;
        padding: 30px 8px;
    }
    /* 접근방식 섹션 */
    .approach-section {
        padding: 80px 16px;
    }
    .approach-content {
        flex-direction: column;
        gap: 40px;
    }
    .approach-text {
        width: 100%;
        gap: 8px;
    }
    .approach-label {
        font-size: 16px;
        font-weight: 600;
        line-height: 25.60px;
    }
    .approach-title {
        font-size: 21px;
        line-height: 33.60px;
    }
    .approach-description {
        font-size: 14px;
        font-weight: 300;
        line-height: 22.40px;
    }
    .approach-image {
        width: 100%;
        height: auto;
        aspect-ratio: 585 / 487;
        margin: 30px 0 16px;
    }
    .image-label {
        font-size: 12px;
        line-height: 19.20px;
        padding: 2px 10px;
    }
    .image-label.label-1 {
        top: 30%;
        left: 60%;
    }
    .image-label.label-2 {
        top: 65%;
        left: 20%;
    }
    /* 원인교정치료 섹션 */
    .treatment-section {
        padding: 80px 16px;
    }
    .treatment-label {
        font-size: 16px;
        font-weight: 600;
        line-height: 25.60px;
    }
    .treatment-title {
        font-size: 21px;
        line-height: 33.60px;
    }
    .treatment-cards {
        flex-direction: column;
    }
    .treatment-card {
        padding: 24px 16px;
    }
    .card-step {
        font-size: 14px;
        line-height: 22.40px;
        padding: 3px 12px;
    }
    .card-title {
        font-size: 16px;
        line-height: 25.60px;
    }
    .card-description {
        font-size: 14px;
        font-weight: 300;
        line-height: 22.40px;
    }
    .self-check-btn {
        width: 100%;
        max-width: 380px;
        font-size: 16px;
        line-height: 25.60px;
        padding: 12px;
    }
    /* 팝업 */
    .modal-content {
        padding: 60px 16px;
        max-height: 85vh;
    }
    .modal-close {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
    }
    .modal-title {
        font-size: 16px;
        line-height: 28.80px;
        margin: 0;
    }
    .modal-subtitle {
        font-size: 20px;
        line-height: 38.40px;
        margin-bottom: 24px;
    }
    .modal-checklist {
        padding: 30px 16px;
        margin-bottom: 24px;
    }
    .checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    .checkbox-item span {
        font-size: 14px;
        line-height: 22.40px;
    }
    .modal-notice {
        font-size: 14px;
        line-height: 22.40px;
        margin-bottom: 24px;
    }
    .modal-cta-btn {
        font-size: 18px;
        line-height: 28.80px;
        padding: 16px;
    }
}


/* ===========================================
   반응형 - 작은 모바일 (480px 이하)
   =========================================== */

@media (max-width: 480px) {
    /* .approach-title {
        font-size: 19px;
        line-height: 30.40px;
    }
    .treatment-title {
        font-size: 19px;
        line-height: 30.40px;
    }
    .modal-subtitle {
        font-size: 20px;
        line-height: 32px;
    } */
}


/* ===========================================
   애니메이션 효과
   =========================================== */

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}


/* 스크롤 부드럽게 */

html {
    scroll-behavior: smooth;
}