@charset "utf-8";

/* 기본 스크롤바 완전히 숨김 */
html {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
    background: transparent;
}

/* 커스텀 스크롤바 컨테이너 */
.custom-scrollbar {
    position: fixed;
    top: 0;
    right: 5px;
    width: 12px;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    padding: 0 3px;
    box-sizing: border-box;
}

/* 모바일/터치 기기에서는 스크롤바 숨김 */
@media (hover: none) and (pointer: coarse) {
    .custom-scrollbar,
    .scrollbar-hover-zone {
        display: none !important;
    }
}

.custom-scrollbar.visible,
.custom-scrollbar:hover {
    opacity: 1;
    pointer-events: auto;
}

.custom-scrollbar:hover {
    pointer-events: auto;
}

/* 스크롤바 호버 영역 (오른쪽 끝 부분) */
.scrollbar-hover-zone {
    position: fixed;
    top: 0;
    right: 0;
    width: 20px;
    height: 100vh;
    z-index: 9998;
    pointer-events: auto;
    cursor: default;
}

/* 스크롤바 트랙 */
.custom-scrollbar-track {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* 스크롤바 썸(thumb) */
.custom-scrollbar-thumb {
    position: absolute;
    right: 0;
    width: 6px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.2s ease;
    min-height: 20px;
}

.custom-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
    width: 8px;
}

.custom-scrollbar-thumb.dragging {
    background-color: rgba(0, 0, 0, 0.6);
    width: 8px;
}

:root {
    /* color */
    --black: #131313;
    --white: #F4F4F4;
    --blue: #034387;
    --light-blue: #EDF3FA;
    --navy: #00254D;
    --dimmed: #DDDDDD;

    /* font-weight */
    --regular: 400;
    --medium: 500;
    --semibold: 600;
    --bold: 700;
    --extra-bold: 700;
}

*,
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--black);
}

.merri_weather {
    font-family: 'Merriweather', serif;
}

.hide {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    line-height: 1;
    font-size: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    color: transparent;
    border: 0;
    display: block;
}

.pc {
    display: block !important;
}

.tablet {
    display: none !important;
}

.mo {
    display: none !important;
}

.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 1024px) {
    .pc {
        display: none !important;
    }

    .tablet {
        display: block !important;
    }

    .mo {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .pc {
        display: none !important;
    }

    .tablet {
        display: none !important;
    }

    .mo {
        display: block !important;
    }
}

/* Top Button */
.top_btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: var(--blue);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0;
    box-sizing: border-box;
}

.top_btn svg path {
    stroke: var(--white);
    transition: stroke 0.3s ease-in-out;
}

.top_btn.show {
    opacity: 1;
    visibility: visible;
}

.top_btn:hover {
    background-color: var(--blue);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    color: var(--white);
}

/* 배경이 파란색일 때만 화살표를 흰색으로 (푸터 영역 제외) */
.top_btn:hover:not(.in_footer) svg path {
    stroke: var(--white) !important;
}

.top_btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* 푸터 영역에 있을 때 색상 변경 */
.top_btn.in_footer {
    background-color: white;
    color: var(--black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.top_btn.in_footer svg path {
    stroke: var(--black);
}

.top_btn.in_footer:hover {
    background-color: var(--dimmed);
    color: var(--black);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* 푸터 영역에서 호버 시에도 화살표는 검은색 유지 */
.top_btn.in_footer:hover svg path {
    stroke: var(--black) !important;
}


.top_btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* 반응형: 태블릿 */
@media screen and (max-width: 1024px) {
    .top_btn {
        bottom: 30px;
        right: 30px;
        width: 48px;
        height: 48px;
    }

    .top_btn svg {
        width: 22px;
        height: 22px;
    }
}

/* 반응형: 모바일 */
@media screen and (max-width: 768px) {
    .top_btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .top_btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Contact Quick Button (문의하기 퀵메뉴) - 항상 노출, 탑버튼과 디자인 차별화 */
.contact_quick_btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 52px;
    height: 52px;
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    color: var(--blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9997;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(3, 67, 135, 0.15);
    padding: 0;
    box-sizing: border-box;
}

.contact_quick_btn.with_top {
    bottom: 104px;
}

.contact_quick_btn:hover {
    box-shadow: 0 6px 16px rgba(3, 67, 135, 0.25);
    transform: translateY(-2px);
}

.contact_quick_btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* 푸터 영역: 어두운 배경에 맞춰 스타일 변경 */
.contact_quick_btn.in_footer {
    background-color: var(--white);
    color: var(--blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact_quick_btn.in_footer:hover {
    background-color: var(--light-blue);
    color: var(--blue);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.contact_quick_btn.in_footer svg {
    stroke: var(--blue);
}

@media screen and (max-width: 1024px) {
    .contact_quick_btn {
        bottom: 30px;
        right: 30px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
    }
    .contact_quick_btn.with_top {
        bottom: 92px;
    }
    .contact_quick_btn svg {
        width: 22px;
        height: 22px;
    }
}

@media screen and (max-width: 768px) {
    .contact_quick_btn {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        border-radius: 50%;
    }
    .contact_quick_btn.with_top {
        bottom: 78px;
    }
    .contact_quick_btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Inquiry Modal (문의하기 팝업) */
.inquiry_modal_overlay {
    position: fixed;
    inset: 0;
    background: rgba(19, 19, 19, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.inquiry_modal_overlay.is_open {
    opacity: 1;
    visibility: visible;
}

.inquiry_modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--light-blue);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    padding: 28px 24px 32px;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.inquiry_modal_overlay.is_open .inquiry_modal {
    transform: translate(-50%, -50%) scale(1);
}

.inquiry_modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.inquiry_modal_header h3 {
    font-size: 20px;
    font-weight: var(--semibold);
    color: var(--black);
    margin: 0;
}

.inquiry_modal_close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.inquiry_modal_close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--black);
}

.inquiry_modal_close svg {
    width: 24px;
    height: 24px;
}

.inquiry_modal .inquiry_card {
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.inquiry_modal .inquiry_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.inquiry_modal .inquiry_field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inquiry_modal .inquiry_field.full {
    grid-column: 1 / -1;
}

.inquiry_modal .inquiry_label {
    font-size: 14px;
    font-weight: var(--semibold);
    color: #1e2230;
}

.inquiry_modal .inquiry_input,
.inquiry_modal .inquiry_textarea {
    width: 100%;
    border: 1px solid #d7dbe6;
    border-radius: 2px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.2;
    background-color: #fff;
    box-sizing: border-box;
}

.inquiry_modal .inquiry_textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.4;
}

.inquiry_modal .inquiry_input:focus,
.inquiry_modal .inquiry_textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(3, 67, 135, 0.12);
}

.inquiry_modal .inquiry_meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
}

.inquiry_modal .inquiry_consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #424656;
    max-width: 100%;
}

.inquiry_modal .inquiry_consent input {
    margin-top: 2px;
}

.inquiry_modal .inquiry_submit {
    border: none;
    background-color: var(--blue);
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inquiry_modal .inquiry_submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.inquiry_modal .inquiry_status {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #424656;
    display: none;
}

.inquiry_modal .inquiry_status.is-visible {
    display: block;
}

.inquiry_modal .inquiry_status.success {
    color: #1f7a1f;
    font-weight: var(--semibold);
    background-color: #e7f7e7;
    border: 1px solid #bfe8bf;
    border-radius: 2px;
    padding: 10px 12px;
}

.inquiry_modal .inquiry_status.error {
    color: #b42318;
}

@media screen and (max-width: 768px) {
    .inquiry_modal {
        padding: 20px 16px 24px;
        max-height: 85vh;
    }
    .inquiry_modal_header h3 {
        font-size: 18px;
    }
    .inquiry_modal .inquiry_card {
        padding: 16px;
    }
    .inquiry_modal .inquiry_grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .inquiry_modal .inquiry_label,
    .inquiry_modal .inquiry_input,
    .inquiry_modal .inquiry_textarea {
        font-size: 12px;
    }
    .inquiry_modal .inquiry_meta {
        flex-direction: column;
        align-items: stretch;
    }
    .inquiry_modal .inquiry_consent {
        font-size: 12px;
    }
}