@charset "utf-8";

/* =========================================================
   Footer
   - 푸터 / 하단 공통 영역
   - PC 기본 + 768px 이하 모바일
========================================================= */

.site-footer {
    position: relative;
    z-index: 20;
    padding: 84px 0 92px;
    background: #050505;
    color: rgba(255, 255, 255, .72);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 72px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer__left {
    min-width: 0;
}

.site-footer__logo {
    margin-bottom: 20px;
    color: #fff;
    font-family: inherit;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.site-footer__logo strong {
    color: var(--color-primary);
    font-weight: 900;
}

.site-footer__info,
.site-footer__copy {
    margin: 0;
    color: rgba(255, 255, 255, .64);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.82;
    letter-spacing: -0.04em;
}

.site-footer__copy {
    margin: 0;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    margin-top: 12px;
}

.site-footer__privacy-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .76);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.site-footer__privacy-link:hover,
.site-footer__privacy-link:focus {
    color: #fff;
    outline: none;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    padding-top: 34px;
    white-space: nowrap;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 30px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 999px;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    letter-spacing: -0.04em;
}

.site-footer__links a:hover {
    border-color: var(--color-primary);
    color: #fff;
}


/* ==============================
   Sticky Footer Form
   - tail.php에서 footer_form.php를 include
   - 스크롤 시에도 화면 하단 고정
============================== */

.daehan-sticky-form {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--footer-form-bg, var(--color-primary));
    box-shadow: 0 -12px 26px rgba(0, 0, 0, .22);
}


.daehan-sticky-form__inner {
    display: grid;
    grid-template-columns: 1.05fr 1.05fr 1.15fr 230px 170px 230px;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 22px;
}

.daehan-sticky-form input[type="text"],
.daehan-sticky-form input[type="tel"] {
    width: 100%;
    height: 46px;
    border: 0;
    border-right: 1px solid #ddd;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    outline: none;
}

.daehan-sticky-form input::placeholder {
    color: #777;
}

.daehan-sticky-form__agree {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 230px;
    padding: 0 22px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
    cursor: pointer;
}

.daehan-sticky-form__agree input {
    position: relative;
    flex: 0 0 auto;
    appearance: none;
    -webkit-appearance: none;
    width: 19px;
    height: 19px;
    margin: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.daehan-sticky-form__agree input:checked {
    background:
        radial-gradient(circle at center, #fff 0 38%, transparent 43%),
        transparent;
}

.daehan-sticky-form button {
    width: 170px;
    height: 50px;
    border: 0;
    border-radius: 0;
    background: var(--footer-form-button-bg, var(--footer-form-bg, #050505));
    color: var(--footer-form-button-color, #fff);
    font-family: inherit;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.04em;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

/*
 * 실제 상담신청 버튼은 기존 CSS/브라우저 disabled 스타일에 밀리지 않도록
 * 클래스 기준으로 한번 더 고정합니다.
 */
.daehan-sticky-form .contact_fixed_left_1,
.daehan-sticky-form button.contact_fixed_left_1,
.daehan-sticky-form #btn_submit {
    border: 0 !important;
    border-radius: 0 !important;
    background-color: var(--footer-form-button-bg, var(--footer-form-bg, #050505)) !important;
    color: var(--footer-form-button-color, #fff) !important;
    -webkit-text-fill-color: var(--footer-form-button-color, #fff);
    box-shadow: none !important;
}

.daehan-sticky-form .contact_fixed_left_1:disabled,
.daehan-sticky-form button.contact_fixed_left_1:disabled,
.daehan-sticky-form #btn_submit:disabled {
    opacity: 1;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: var(--footer-form-button-bg, var(--footer-form-bg, #050505)) !important;
    color: var(--footer-form-button-color, #fff) !important;
    -webkit-text-fill-color: var(--footer-form-button-color, #fff);
    box-shadow: none !important;
}

.daehan-sticky-form__tel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 50px;
    padding-left: 24px;
}

.daehan-sticky-form__tel a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 100%;
    text-decoration: none;
}

.daehan-sticky-form__tel img {
    display: block;
    width: 210px;
    max-width: 100%;
    height: auto;
}

body {
    padding-bottom: 0;
}

body:has(.daehan-sticky-form) {
    padding-bottom: 86px;
}


.daehan-sticky-form__agree .daehan-policy-open {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font: inherit;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.04em;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

/* ==============================
   Privacy Modal
============================== */

body.policy-modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, .72);
}

.modal.is-open {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(920px, 100%);
    max-height: min(78vh, 760px);
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    color: #111;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
}

.modal-content .close {
    position: absolute;
    right: 18px;
    top: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.policy_title {
    padding: 30px 34px 22px;
    border-bottom: 1px solid #eee;
}

.policy_title h2 {
    margin: 0;
    color: #111;
    font-family: inherit;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.policy_con {
    max-height: calc(min(78vh, 760px) - 92px);
    overflow-y: auto;
    padding: 28px 34px 36px;
}

.policy_text {
    margin: 0;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.82;
    letter-spacing: -0.035em;
}

/* ==============================
   Mobile Layout (max-width: 768px)
   - 모바일 기준은 768px 하나만 사용
============================== */
@media (max-width: 768px) {
    .site-footer {
        padding: 36px 0 12px;
    }

    .site-footer__inner {
        display: block;
        padding: 0 14px;
    }

    .site-footer__left {
        margin-bottom: 8px;
    }

    .site-footer__logo {
        margin-bottom: 14px;
        font-size: 19px;
        line-height: 1.1;
    }

    .site-footer__info,
    .site-footer__copy {
        font-size: 11px;
        line-height: 1.62;
        letter-spacing: -0.045em;
    }

    .site-footer__bottom {
        gap: 8px;
        margin-top: 8px;
    }

    .site-footer__copy {
        min-width: 0;
        margin: 0;
        white-space: nowrap;
    }

    .site-footer__privacy-link {
        font-size: 10px;
        line-height: 1.3;
        letter-spacing: -0.055em;
    }

    .site-footer__links {
        justify-content: flex-start;
        gap: 4px;
        width: 100%;
        padding-top: 8px;
        overflow: visible;
        flex-wrap: wrap;
    }

    .site-footer__links a {
        flex: 1 1 calc(33.333% - 4px);
        min-width: 0;
        height: 25px;
        padding: 0 4px;
        font-size: 10px;
        line-height: 1;
        letter-spacing: -0.07em;
        white-space: nowrap;
    }

    .daehan-sticky-form__inner {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
    }

    .daehan-sticky-form input[type="text"],
    .daehan-sticky-form input[type="tel"] {
        height: 38px;
        border-right: 0;
        font-size: 12px;
    }

    .daehan-sticky-form__agree {
        min-width: 0;
        padding: 0;
        justify-content: flex-start;
        font-size: 14px;
    }

    .daehan-sticky-form__agree .daehan-policy-open {
        width: auto;
        height: auto;
        font-size: inherit;
        text-align: left;
    }

    .daehan-sticky-form button {
        width: 100%;
        height: 40px;
        font-size: 13px;
    }

    .daehan-sticky-form__tel {
        grid-column: auto;
        justify-content: flex-start;
        height: 40px;
        padding-left: 0;
    }

    .daehan-sticky-form__tel a {
        justify-content: flex-start;
    }

    .daehan-sticky-form__tel img {
        width: 150px;
    }

    body:has(.daehan-sticky-form) {
        padding-bottom: 152px;
    }

    .modal {
        padding: 16px;
    }

    .modal-content {
        max-height: 82vh;
        border-radius: 14px;
    }

    .policy_title {
        padding: 22px 22px 16px;
    }

    .policy_title h2 {
        font-size: 22px;
    }

    .policy_con {
        max-height: calc(82vh - 74px);
        padding: 20px 22px 28px;
    }

    .policy_text {
        font-size: 13px;
        line-height: 1.72;
    }
}
