@import url('https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@master/nanumsquare.css');



* {
    box-sizing: border-box;
}

/* common*/
.visual_w {
    background: url(../images/bg_visual.webp) top center no-repeat;
    height: 630px;
    text-align: left;
}

.visual_w .container {
    width: 1000px;
}

.visual_w p {
    margin: 2rem 0 0
}

.visual_w ul {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0
}

.card {
    border: none !important;
    height: 400px;
}

.card-body {
    padding: 0 0 3.0rem 3rem;
    position: relative;
    font-size: 1.0rem;
}

.card-body h3 {
    font-size: 1.5rem;
    letter-spacing: -2px;
}

.card-body label {
    position: absolute;
    top: -25px;
    left: 5px;
    font-family: serif;
    font-weight: 700;
    font-size: 3.0em;
    font-style: italic;
}

.card-footer {
    background: none !important;
    border-top: 6px solid #1c2841;
    padding-top: 2rem
}


section.intro {
    padding: 40px 0;
    background: #231813;
    font-size: 2rem
}

section {
    padding: 80px 0;
    letter-spacing: -1px;
    word-break: keep-all;
    word-wrap: break-word;
}




h1 {
    font-family: 'Gmarket Sans';
    font-weight: 700;
    letter-spacing: -2px;
    color: #32343c;
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 4rem
}



h1 small {
    color: #1e1e1e;
    font-family: 'NanumSquare';
    font-size: 60%
}

h2 {
    font-family: 'Gmarket Sans';
    font-size: 2.4rem;
    letter-spacing: -3px;
}

h2 small {
    font-family: 'NanumSquare';
    font-size: 65%
}

.big {
    font-size: 2.8rem
}




/*color*/

.f_sky {
    color: #1a90ea
}

.f_blue {
    color: #1a90ea
}

.f_gray {
    color: #d3d7dc
}

.f_blue2 {
    color: #1b98f7
}

.bg_gray {
    background: #edf0f5
}

.bg_white {
    background: #fff !important
}

.bg_sky {
    background: #d2e5f5 !important
}

.bg_yellow {
    background: #fcd225;

    font-family: 'NanumSquare' !important
}

.mt-6 {
    margin-top: 4rem !important
}

.point {
    color: #1a90ea
}

/*contents */


.conts1 {
    padding-bottom: 0
}

.conts2 dl {
    background: #fff;
    padding: 2rem 1rem;
    width: 240px;
    height: 350px;
    margin: 0 .5rem 0 0
}

.conts2 dl dt {
    font-size: 2rem;
    font-family: 'Noto Sans KR'
}

.conts2 dl dd img {
    width: 45%;
}

.conts2 dl dd:nth-of-type(1) {
    margin: 1rem 0;
}

.conts2 dl dd {
    font-size: 1.2rem
}

.box-type01 {
    margin: .5rem
}

.conts3 dl dt {
    background: #1c2841;
    border-radius: 20px;
    color: #fff;
    display: inline;
    padding: .3rem 1.2rem;
    font-size: 1.5rem;
}

.conts3 dl dd {
    letter-spacing: -2px
}

.conts3 dl dd:nth-of-type(1) {
    margin: 1rem 0 0;
    font-family: 'Gmarket Sans';
    font-size: 2.3rem;
    font-weight: 600
}

.conts3 dl dd:nth-of-type(2) {
    font-size: 1.8rem
}

.conts4 {
    padding: 3rem 0;
    font-size: 1.2rem;
    font-family: 'Noto Sans KR'
}

.step_w dd {
    text-align: center;
    margin: 0.9rem 0 0;
    font-family: 'Noto Sans KR';
    font-size: 1.2rem
}

.step_w img {
    width: 100%
}

.line_deco label {
    border-bottom: 18px solid #b5f6fa;
    line-height: 9px;
}

.line_deco li.st1 {
    font-size: 1.9rem;
    font-weight: 600
}

.line_deco li.st2 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 15px;
}

.process {
    display: flex;
    justify-content: flex-start;
    border: 2px solid #1a90ea;
    margin-bottom: .8rem;
    align-items: center
}

.process dt {
    background: #1a90ea;
    width: 40%;
    text-align: center;
    padding: 1.7rem;
    color: #fff;
    font-size: 1.5rem
}

.process dd {
    font-size: 1.2rem;
    padding: 0 0 0 .8rem
}


.txt_group {
    text-align: center;
    margin-top: 2rem;
    letter-spacing: -2px;
}

.txt_group li:first-child {
    font-family: 'NanumSquare';
    font-size: 1.4rem;
    margin-bottom: .5rem
}

.txt_group li:nth-of-type(2) {
    font-family: 'Gmarket Sans';
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 2px solid #1a90ea;
    display: inline-block;
    line-height: 25px
}


.conts7 dl {
    border-top: 4px solid #1c2841;
    padding: 15px 0;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.conts7 dl dt {
    background: url(../images/conts07_icon.png) 2px 15px no-repeat;
    background-size: 30px;
    padding: 10px 0 10px 45px;
    font-size: 1.6rem;
    letter-spacing: -1px;
}

.conts7 dl dd {
    font-size: 1.2rem;
    padding-left: 45px;
}


.img-txt {
    margin-bottom: 2rem
}

.img-txt img {
    width: 100%;
}

.img-txt {
    position: relative;
    text-align: center;
}

.img-txt dl {
    position: absolute;
    bottom: -40px;
    background: #fff;
    padding: 10px 30px;
    left: 50%;
    transform: translate(-50%, 0);
    width: calc(100% - 45px);
    font-size: 1.3rem
}

.img-txt dl dd {
    font-size: 1.0rem
}

.qna_w {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #dfe0e3;
    background: #fff url(../images/conts0901.png) 90% 10% no-repeat;
    background-size: 80px;
    height: 440px;
}

.qna_bg {
    background: #fff url(../images/conts0902.png) 90% 10% no-repeat;
    background-size: 80px;
}

.round {
    background: #1c2841;
    color: #fff;
    padding: .3rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.qna_w dt {
    font-size: 1.7rem;
    line-height: 34px;
    margin-top: 1.5rem;
    letter-spacing: -2px;
}

.qna_w dd {
    font-size: 1.2rem
}

.qna_w dd:nth-of-type(1) {
    padding: .8rem 0
}



/*pc환경 */
@media (min-width:1024px) {

    .onlyMO {
        display: none !important;
    }

    .onlyPC {
        display: block !important;
    }

    .bg2 {
        background: url(../images/conts0505.png) bottom right no-repeat;
        background-size: 80%
    }

    .conts2 dl.st-2 {
        height: 300px
    }

    h1 span:before {
        content: "• ";
        color: #1b90e9;
        padding-right: 1%
    }

    h1:after {
        content: " •";
        color: #1b90e9;
        padding-left: 1%
    }




}




/*모바일 환경 */
@media (max-width:992px) {

    .onlyMO {
        display: block !important;
    }

    .onlyPC {
        display: none !important;
    }


    section {
        padding: 40px 0;
        letter-spacing: -1px;
        word-break: keep-all;
        word-wrap: break-word;
    }

    h1 {
        font-size: 1.7rem;
        letter-spacing: -2px;
        margin-bottom: 2rem
    }

    .card-body h3 {
        font-size: 1.4rem;
        letter-spacing: -2px;
    }

    .card-body label {
        position: absolute;
        top: -18px;
        left: 0;
        font-size: 2.3em;
    }

    .process dt {
        background: #1a90ea;
        width: 40%;
        text-align: center;
        padding: 2.2rem 1.0rem;
        color: #fff;
        font-size: 1.5rem
    }

    .conts2 dl {
        width: 100%;
        height: auto;
        margin: .2rem
    }

    .conts2 dl dt {
        font-size: 1.5rem;
    }

    .conts2 dl dd {
        font-size: 1rem
    }

    .conts3 dl dt {
        font-size: 1.2rem;
    }

    .conts3 dl dd:nth-of-type(1) {
        font-size: 1.3rem;
        margin: 1rem 0 0;
    }

    .conts3 dl dd:nth-of-type(2) {
        font-size: 1.1rem
    }


    .line_deco label {
        line-height: 5px;
    }

    .line_deco li.st1 {
        font-size: 1.3rem;
        letter-spacing: -2px;
    }

    .line_deco li.st2 {
        font-size: 1.2rem;
        line-height: 24px;
    }

    .conts4 {
        font-size: 0.9rem
    }

    .conts5 h1 {
        background: none
    }

    h2 {
        font-family: 'Gmarket Sans';
        font-size: 1.6rem;
        letter-spacing: -2px;
    }

    h2 small {
        color: #586782
    }

    .step_w dd {
        font-size: 1.0rem;
        line-height: 22px;
    }

    .process dd {
        padding: 0.9rem;
        font-size: 1.0rem
    }

    .bg2 {
        background: url(../images/conts0505.png) bottom right no-repeat;
        background-size: 70%
    }

    .txt_group {
        text-align: center;
        margin-top: 2rem;
        letter-spacing: -2px;
    }

    .txt_group li:first-child {
        font-size: 1.3rem;
    }

    .txt_group li:nth-of-type(2) {
        font-size: 1.6rem;
        line-height: 25px
    }

    h1 {
        background: url(../images/dot.png) top center no-repeat;
        background-size: 100%;
        background-position: 0 40px
    }

    .visual_call {
        position: absolute;
        width: 45%;
        right: 0;
        top: 0;
    }

    .bg_yellow {
        font-size: 0.8rem
    }

    .conts7 dl dt {
        font-size: 1.4rem;
        letter-spacing: -2px;
    }

    .conts7 dl dd {
        font-size: 1.0rem;
        padding-left: 45px;
    }

    .qna_w {
        height: auto;
        padding-bottom: 3rem;
    }

    .qna_w dt {
        font-size: 1.3rem;
        line-height: 25px;
        margin-top: 1.5rem;
        letter-spacing: -2px;
    }

    .qna_w dd {
        font-size: 1.0rem
    }



    footer img {
        width: 8rem;
    }
}

/* --- Floating Banner & Chat Modal (Added) --- */
:root {
    --point-color: #1a90ea;
    --point-color-light: #50a9ef;
    --dark-navy: #1c2841;
}

/* Floating Banner */
.floating-banner {
    position: fixed;
    bottom: 40px;
    right: 35px;
    z-index: 1000;
    cursor: pointer;
    animation: floating-bounce 2.5s infinite ease-in-out;
}

.banner-content {
    display: flex;
    align-items: center;
    background: var(--point-color);
    /* Blue */
    padding: 12px 25px 12px 12px;
    border-radius: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    /* White text */
}

.banner-content:hover {
    transform: scale(1.1) translateY(-5px);
    background: var(--point-color-light);
    /* Light Blue */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.banner-text {
    font-weight: 800;
    color: #fff;
    /* White text */
    margin-left: 15px;
    font-size: 18px;
    white-space: nowrap;
}

.banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes floating-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Modal Styling */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px 20px 80px 20px;
    /* Default (Mobile) */
}

/* Desktop Overrides for "Floating" Look */
@media (min-width: 768px) {
    .floating-banner {
        bottom: 60px;
        right: 60px;
    }

    .chat-modal {
        padding: 0;
        /* Reset padding for desktop to use margin positioning */
        align-items: flex-end;
        justify-content: flex-end;
    }

    .chat-modal .modal-container {
        margin-bottom: 140px;
        margin-right: 60px;
    }
}

.chat-modal.hidden {
    display: none !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: var(--point-color);
    /* Blue */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    /* White text */
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: #fff;
    /* White text */
}

.modal-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.hidden {
    display: none !important;
}

.step-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.full-width {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: var(--point-color);
    color: white;
}

.mt-10 {
    margin-top: 10px;
}

.btn-outline-red {
    background: #fff;
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Chat Styling */
.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.message.user {
    align-self: flex-end;
    background: var(--point-color);
    /* Blue */
    color: #fff;
    border-bottom-right-radius: 2px;
}

.message.admin {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    display: flex !important;
    gap: 10px;
    width: 100%;
}

.chat-input-area input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.chat-input-area input:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
}

.send-btn {
    background: var(--point-color);
    /* Blue */
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
}

.welcome-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 2px solid var(--point-color);
    /* Blue */
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    white-space: pre-line;
    margin-bottom: 20px;
}

.welcome-text strong {
    color: #e67e22;
    /* Keep orange/gold for "10만원부터" emphasis or change? Let's keep orange for emphasis */
    font-size: 16px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.option-btn {
    width: 100%;
    padding: 12px;
    background: #f0f8ff;
    /* Lightest Blue */
    border: 1px solid var(--point-color);
    /* Blue */
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #000;
}

.option-btn:hover {
    background: var(--point-color);
    /* Blue */
    color: #fff;
}

@media (max-width: 480px) {
    .floating-banner {
        right: 20px;
        bottom: 20px;
    }

    .banner-text {
        font-size: 13px;
    }

    /* Detached Modal for Mobile */
    .modal-container {
        position: absolute;
        /* Force absolute positioning */
        bottom: 80px;
        /* Slightly lower to ensure space on top */
        right: 20px;
        /* Explicit distance from right */
        left: 20px;
        /* Explicit distance from left */
        width: auto;
        /* Let left/right control width */
        max-width: none;
        /* Reset max-width */
        height: auto;
        /* Fit to content */
        max-height: 85vh;
        /* Prevent overflowing screen height */
        border-radius: 20px;
        margin: 0;
        /* Remove margins as we use position */
    }

    .chat-modal {
        padding: 0;
        display: block;
        /* Disable flex centering to let absolute positioning work */
    }

    /* Compact Mobile Layout */
    .modal-header {
        padding: 12px 15px;
    }

    .modal-content {
        padding: 15px;
        overflow-y: auto;
        /* Allow internal scroll only if absolutely needed */
    }

    .step-desc {
        margin-bottom: 8px;
        font-size: 13px;
        line-height: 1.4;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-group label {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .form-group input {
        padding: 10px;
        font-size: 14px;
    }

    .full-width {
        padding: 12px;
        font-size: 15px;
        margin-top: 5px;
    }

    .mt-10 {
        margin-top: 5px;
    }
}