/* =========================
   Loading Box
========================= */

#loadingBox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: none;
    background: rgba(6,29,63,.28) !important;
    backdrop-filter: blur(3px);
}

#loadingBox .ring-wrap {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 126px;
    height: 126px;
    transform: translate(-50%,-50%) !important;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

#loadingBox .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--dv-teal-500), var(--dv-blue-600), var(--dv-copper-500), var(--dv-teal-500));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 0);
    animation: dvSpin .9s linear infinite;
}

#loadingBox .ring-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    color: var(--dv-navy-900) !important;
    font-size: 20px !important;
    font-weight: 900;
    white-space: nowrap;
}

@keyframes dvSpin {
    to { transform: rotate(360deg); }
}

/* =========================
   Common Footer CTA
========================= */

.footer-cta-section {
    position: relative;
    overflow: hidden;
    padding: 74px 0 78px;
    background: linear-gradient(135deg, var(--dv-navy-950), var(--dv-navy-800) 58%, #075b78);
}

.footer-cta-section::before {
    content: "";
    position: absolute;
    right: -110px;
    top: -160px;
    width: 410px;
    height: 410px;
    border-radius: 50%;
    background: rgba(36,184,196,.15);
}

.footer-cta-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr auto;
    gap: 30px;
    align-items: center;
    padding: 34px 36px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 26px;
    background: rgba(255,255,255,.07);
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
}

.footer-cta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #69dbe3;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .18em;
}

.footer-cta-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.footer-cta-content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.8vw, 2.2rem);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -.055em;
}

.footer-cta-content p {
    margin: 13px 0 0;
    color: rgba(255,255,255,.74);
    font-size: .96rem;
    line-height: 1.68;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-cta-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 900;
    white-space: nowrap;
    transition: transform .2s ease;
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
}

.footer-cta-btn--primary,
.footer-cta-btn--gold {
    color: var(--dv-navy-950) !important;
    background: linear-gradient(180deg, #7be1e6, #31b6c3);
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 14px 28px rgba(0,0,0,.2);
}

.footer-cta-btn--line {
    color: #fff !important;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.28);
}

/* =========================
   Footer
========================= */

footer.doubleview-footer,
footer.firstone-footer {
    padding: 50px 0 42px;
    text-align: center;
    background: var(--dv-navy-950) !important;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 18px !important;
}

.footer-logo-img {
    width: 220px !important;
    height: auto !important;
    max-height: 68px;
    object-fit: contain;
}

.footer-partnership {
    margin-bottom: 18px;
}

.footer-partnership .btn,
#btnBudongsan {
    padding: .66rem 1.15rem !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: rgba(255,255,255,.08) !important;
    font-size: .9rem !important;
    font-weight: 850 !important;
}

.footer-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 850;
}

.footer-copy {
    max-width: 920px;
    margin: 9px auto 0;
    color: rgba(255,255,255,.54);
    font-size: .8rem;
    line-height: 1.65;
    letter-spacing: -.018em;
}

.footer-info {
    margin: 11px 0 0;
    color: rgba(255,255,255,.78);
    font-size: .89rem;
    line-height: 1.65;
}

.footer-info + .footer-info {
    margin-top: 2px;
}

/* =========================
   Sticky Consultation Buttons
========================= */

nav.sticky-menu {
    position: fixed !important;
    right: 13px !important;
    bottom: 13px !important;
    z-index: 9999 !important;
}

nav.sticky-menu ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

nav.sticky-menu li {
    margin: 0 0 9px !important;
}

nav.sticky-menu li:last-child {
    margin-bottom: 0 !important;
}

nav.sticky-menu a.sticky-btn {
    width: 88px !important;
    height: 88px !important;
    min-width: 88px !important;
    min-height: 88px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 6px !important;
    border: 2px solid rgba(255,255,255,.85) !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: linear-gradient(180deg, var(--dv-teal-600), var(--dv-blue-700)) !important;
    box-shadow: 0 13px 27px rgba(6,29,63,.24);
    text-align: center !important;
}

nav.sticky-menu a.sticky-btn i {
    color: #fff !important;
    font-size: 21px !important;
}

nav.sticky-menu a.sticky-btn span {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
}

nav.sticky-menu a.sticky-btn.kakao-btn {
    color: #191919 !important;
    background: #FEE500 !important;
    border-color: #fff !important;
}

nav.sticky-menu a.sticky-btn.kakao-btn span {
    color: #191919 !important;
}

nav.sticky-menu .kakao-img {
    width: 24px !important;
    height: 24px !important;
}

nav.sticky-menu a.sticky-btn.sticky-btn-sms {
    color: #fff !important;
    background: #1A73E8 !important;
}

.sticky-item-mobile-only {
    display: none !important;
}

.kakao-sticky-menu {
    display: block !important;
}

@media (max-width: 991.98px) {
    .footer-cta-card {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .footer-cta-section {
        padding: 54px 0 58px;
    }

    .footer-cta-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .footer-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-cta-btn {
        width: 100%;
    }

    footer.doubleview-footer,
    footer.firstone-footer {
        padding: 42px 0 36px;
    }

    .footer-logo-img {
        width: 196px !important;
    }

    nav.sticky-menu {
        right: 8px !important;
        bottom: 8px !important;
    }

    nav.sticky-menu li {
        margin-bottom: 3px !important;
    }

    nav.sticky-menu a.sticky-btn {
        width: 66px !important;
        height: 66px !important;
        min-width: 66px !important;
        min-height: 66px !important;
        gap: 1px !important;
        padding: 4px 2px !important;
    }

    nav.sticky-menu a.sticky-btn i {
        font-size: 17px !important;
    }

    nav.sticky-menu a.sticky-btn span {
        margin-top: 3px !important;
        font-size: 11px !important;
        line-height: 1.02 !important;
    }

    nav.sticky-menu .kakao-img {
        width: 18px !important;
        height: 18px !important;
    }

    .sticky-item-mobile-only {
        display: block !important;
    }
}
