@charset "utf-8";

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 9999;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

.sec-title {
    margin-bottom: 60px;
}

.sec-title h2 {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.sec-title h2 img {
    width: 40px;
    transform: translateY(-2px);
}

.sec-title p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.template-view .tv-faq .inner .sec-title h2,
.template-view .tv-process .inner .sec-title h2,
.template-view .tv-benefit .inner .sec-title h2 {
    font-size: 2rem;
}

.template-view .tv-faq .inner .sec-title {
    text-align: center;
}

@media (max-width:768px) {

    .template-view .tv-faq .inner .sec-title h2,
    .template-view .tv-process .inner .sec-title h2,
    .template-view .tv-benefit .inner .sec-title h2 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 12px;
        display: flex;
        line-height: 1.6;
    }

    .sec-title p {
        font-size: 1rem;
    }
    
    .template-view .tv-faq .inner .sec-title {
        text-align: left;
    }
}


.template-view {
    padding: 150px 0;
}

.template-view .tv-inner {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    display: grid;
    /* grid 아이템의 기본 min-width:auto로 인한 콘텐츠(이미지) 기반 확장 방지 */
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
}

.template-view .tv-preview {
    position: relative;
    min-width: 0;
    /* 이미지가 grid 폭을 밀어내지 않도록 */
}

.template-view .tv-preview .circle {
    height: 24px;
    align-items: center;
    display: flex;
    background: #f1f1f1;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 4px 4px 0 0;
}

.template-view .tv-preview .circle ul {
    display: flex;
    padding-left: 10px;
}

.template-view .tv-preview .circle ul li {
    background-color: #d3d3d3;
    border-radius: 50%;
    height: 6px;
    width: 6px;
    display: block;
}

.template-view .tv-preview .circle ul li:not(:last-child) {
    margin-right: 6px;
}

.template-view .tv-preview .thumb-wrap {
    height: 550px;
    overflow-x: hidden;
    overflow-y: auto;
    /* 스크롤바로 인한 폭 변화(리플로우) 최소화 */
    scrollbar-gutter: stable;
}

.template-view .tv-preview .thumb-wrap::-webkit-scrollbar {
    width: 6px;
    height: 10px;
    margin: 0 2px;
    background-color: rgba(0, 0, 0, 0);
    -webkit-border-radius: 100px;
}

.template-view .tv-preview .thumb-wrap::-webkit-scrollbar:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.template-view .tv-preview .thumb-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.4);
    -webkit-border-radius: 100px;
    border: 2px solid transparent;
}

.template-view .tv-preview .thumb-wrap::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.61);
    -webkit-border-radius: 100px;
}

.template-view .tv-preview-pc img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.template-view .tv-preview-mo {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 200px;
}

.template-view .tv-preview-mo img {
    width: 100%;
    border-radius: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.template-view .tv-info {
    display: flex;
    flex-direction: column;
}

.template-view .tv-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-view .tv-code {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    text-decoration: none;
}

.template-view a.tv-code:hover {
    text-decoration: underline;
}

.template-view .tv-util button {
    position: relative;
    width: 24px;
    height: 24px;
    background: none;
    border: 0;
    cursor: pointer;
}

.template-view .tv-util .tooltip {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

/* 말풍선 꼬리 */
.template-view .tv-util .tooltip::after {
    content: "";
    position: absolute;
    top: -0.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.3rem solid transparent;
    border-right: 0.3rem solid transparent;
    border-bottom: 0.3rem solid #111;
}

.template-view .tv-util button:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.template-view .tv-title {
    font-size: 1.5rem;
    margin: 1rem 0 0;
}

.template-view .tv-price {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.template-view .tv-price .price-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.template-view .tv-price .price-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.template-view .tv-price .discount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff3b30;
}

.template-view .tv-price .original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.template-view .tv-price .final-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
}

.template-view .price-note {
    margin: 0.35rem 0 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #8b939e;
    font-weight: 400;
}

/* 버튼 */
.template-view .btn-estimate {
    display: inline-flex;
    align-self: flex-end;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.6rem;
    background: #f3f4f6;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
}

.template-view .btn-estimate img {
    width: 0.9rem;
    height: 0.9rem;
}


.template-view .btn-estimate {
    font-size: 0.9rem;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #F0F6FF;
    padding: 6px 8px;
    font-weight: 600;
    border-radius: 4px;
}

.template-view .tv-desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    word-break: keep-all;
}

.template-view .tv-feature {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
}

.template-view .tv-feature li {
    margin-bottom: 0.8rem;
    position: relative;
    color: #333;
    font-size: 1rem;
}

.template-view .tv-feature li > span {
text-transform: uppercase;
}

.template-view .tv-feature li img {
    transform: translateY(-1px);
}

.template-view .tv-feature li.highlight {
    font-weight: 600;
}

.template-view .tv-cta {
    display: flex;
    gap: 1rem;
}

.template-view .swiper-wrapper {
    height: auto !important;
}

.template-view .tv-cta a {
    flex: 1;
    height: 52px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
}

.template-view .btn-preview {
    background: #F0F6FF;
    color: #2563eb;
}

.template-view .btn-consult {
    background: #000;
    color: #fff;
}

/* 추천 디자인: tv-inner grid 밖 독립 블록 — .tv-inner 와 동일 폭 래퍼 + list.css 카드 */
.template-view .tv-recommend {
    margin-bottom: 60px;
    padding: 80px 0;
    width: 100%;
    box-sizing: border-box;
}

.template-view .tv-recommend-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.template-view .tv-recommend .solution-wrap {
    max-width: 100%;
}

/* rentcar와 동일 .template-list 래퍼 — 자식이 Swiper 하나뿐이므로 list.css·layout의 그리드 규칙을 덮어 Swiper 폭 유지 */
.template-view .tv-recommend .solution-wrap .sec-template .template-wrap > .template-list.tv-recommend-template-list {
    display: block;
    width: 100%;
    margin-top: 40px;
    grid-template-columns: unset;
    column-gap: unset;
    row-gap: unset;
}

.template-view .tv-recommend .recommendSwiper {
    width: 100%;
    overflow: hidden;
}

.template-view .tv-recommend .recommendSwiper .swiper-wrapper {
    align-items: stretch;
}

.template-view .tv-recommend .recommendSwiper .swiper-slide {
    height: auto;
}

.template-view .tv-recommend .recommendSwiper .swiper-slide > .template-card {
    height: 100%;
}


.template-view .tv-banner {
    padding: 100px 0;
    background: #f9f9f9;
    margin-top: 60px;
}

.template-view .tv-banner .desc {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.template-view .tv-banner .desc h2 {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

.template-view .tv-banner .desc p {
    line-height: 1.5;
    font-size: 1.2rem;
    color: #555;
}

.template-view .tv-benefit {
    padding: 120px 0;
}

.template-view .tv-benefit .inner {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}


/* ===== grid ===== */
.template-view .tv-benefit .benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* ===== item ===== */
.template-view .tv-benefit .benefit-item {
    display: flex;
    flex-direction: column;
    /* row → col */
    gap: 1.6rem;
    background: #fff;
    border-radius: 1.2rem;
}

/* image */
.template-view .tv-benefit .benefit-item .img {
    width: 100%;
    height: 360px;
    background: #eee;
    border-radius: 0.8rem;
    overflow: hidden;
}

.template-view .tv-benefit .benefit-item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* text */
.template-view .tv-benefit .benefit-item .txt {
    width: 100%;
}


.template-view .tv-benefit .benefit-item .txt h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.template-view .tv-benefit .benefit-item .txt p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    word-break: keep-all;
}

.template-view .tv-process {
    padding: 120px 0;
    background: rgba(249, 249, 249, 0.5);
}

.template-view .tv-process .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.template-view .tv-process .tv-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
}

.template-view .tv-process .tv-tabs button {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: .4;
    cursor: pointer;
}

.template-view .tv-process .tv-tabs button.active {
    opacity: 1;
    border-bottom: 2px solid #000;
}

.template-view .tv-process .tv-panel {
    display: none;
    gap: 48px;
    align-items: center;
    /* 🔥 stretch → center */
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fff;
}

.template-view .tv-process .tv-panel.active {
    display: flex;
}

.template-view .tv-process .txt {
    width: 55%;
    padding: 0 40px;
}

.template-view .tv-process .txt h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.template-view .tv-process .txt p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.template-view .tv-process .img {
    flex: 0 0 45%;
    overflow: hidden;
    height: 360px;
    background: #eee;
    border-radius: 16px;
    border-left: 1px solid #eee;
}

.template-view .tv-process .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

@media (max-width: 768px) {
    .template-view .tv-process .tv-panel.active {
        flex-direction: column;
    }

    .template-view .tv-process .img {
        height: 220px;
    }
}

.template-view .tv-faq {
    padding: 72px 0 0;
}

.template-view .tv-faq .inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.template-view .tv-faq .faq-list {
    margin: 40px auto 0;
    word-break: keep-all;
}

.template-view .tv-faq .faq-list .boxwrap {
    overflow: hidden;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 0 40px;
    margin-bottom: 20px;
}

.template-view .tv-faq .faq-list .question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    cursor: pointer;
}

.template-view .tv-faq .faq-list .question .mark {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    line-height: 50px;
}

.template-view .tv-faq .faq-list .question .tit {
    box-sizing: border-box;
    width: calc(100% - 50px - 30px);
    font-size: 1.2rem;
    color: #000;
    font-weight: 600;
    margin-left: 24px;
    line-height: 1.4;
}

.template-view .tv-faq .faq-list .question .arr {
    width: 30px;
    text-align: center;
}

.template-view .tv-faq .faq-list .question .arr:after {
    display: inline-block;
    content: "";
    width: 12px;
    height: 12px;
    margin-top: 12px;
    border-right: 3px solid #222;
    border-bottom: 3px solid #222;
    transform: rotate(45deg);
    transition: all 0.4s;
}

.template-view .tv-faq .faq-list .question.active .arr:after {
    transform: rotate(225deg) translate(-6px, -6px);
}

.template-view .tv-faq .faq-list .answer {
    display: none;
    padding: 25px 0;
    border-top: 1px solid #ddd;
}

.template-view .tv-faq .faq-list .answer > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.template-view .tv-faq .faq-list .answer > div .mark {
    width: 50px;
    height: 50px;
    background: #505255;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 50px;
}

.template-view .tv-faq .faq-list .answer > div .txt {
    box-sizing: border-box;
    width: calc(100% - 30px);
    font-size: 17px;
    color: #666;
    line-height: 180%;
    margin-left: 24px;
}

.template-view .tv-faq .faq-list .answer > div a {
    font-size: 17px;
    color: #666;
    line-height: 180%;
    display: block;
}

/* ===== 상담 CTA 요약 (/process·/pricing·/benefits 의 *-summary 와 동일 톤) ===== */
.template-view-summary {
    padding: 80px 0;
}

.template-view-summary .inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.template-view-summary .template-view-summary-card {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding: 36px 28px;
    background: linear-gradient(180deg, #f0f5ff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-align: center;
}

.template-view-summary .sec-title {
    margin-bottom: 24px;
    text-align: center;
}

.template-view-summary .sec-title h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px;
    color: #111827;
}

.template-view-summary .sec-title p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
    word-break: keep-all;
}

.template-view-summary .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #2563eb;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.template-view-summary .btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

@media (max-width: 768px) {
    .template-view-summary {
        padding: 80px 0;
    }

    .template-view-summary .template-view-summary-card {
        padding: 28px 18px;
    }

    .template-view-summary .sec-title h2 {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .template-view-summary .sec-title p {
        font-size: 1rem;
    }
}


/* 반응형 */
@media (max-width: 1024px) {
    .template-view .tv-inner {
        grid-template-columns: 1fr;
    }

    .template-view .tv-preview-mo {
        right: 1rem;
        bottom: -3rem;
    }
}

.estimate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1000;
}

.estimate-modal-inner {
    position: relative;
    width: 60%;
    height: 90%;
    margin: 2% auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-width: 820px;
}

.estimate-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.estimate-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px;
}

.estimate-content iframe {
    width: 100%;
    height: 100%;
}

.estimate-footer {
    padding: 10px;
    border-top: 1px solid #ddd;
    text-align: right;
    background: #f9f9f9;
}

.estimate-footer button {
    padding: 8px 16px;
    margin-left: 8px;
    border: 1px solid #123c8b;
    background: #214d9f;
    color: #fff;
    cursor: pointer;
}

.estimate-footer .btn-close {
    border-color: #7b7b7b;
    background: #9b9b9b;
}

@media (max-width:1024px) {
    .estimate-modal-inner {
        width: 90%;
    }
}

/* ===== responsive ===== */
@media (min-width:769px) {
    .template-view .mbr {
        display: none;
    }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    .template-view,
    .template-view .tv-inner,
    .template-view .tv-preview,
    .template-view .tv-preview .thumb-wrap,
    .template-view .tv-preview .tv-preview-pc {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .template-view .tv-info {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .template-view .tv-preview {
        overflow: hidden;
    }

    .template-view .tv-preview .thumb-wrap {
        height: 340px;
        max-width: calc(100vw - 32px);
        overflow-x: hidden;
        overflow-y: auto;
    }

    .template-view .tv-preview .tv-preview-pc {
        overflow: hidden;
    }

    .template-view .tv-preview .tv-preview-pc img {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        object-fit: contain;
        box-sizing: border-box;
    }

    .template-view .tv-benefit,
    .template-view .tv-process {
        padding: 80px 0; 
    }
    
    .template-view .tv-faq {
        padding: 56px 0 0;
    }
    
    .template-view .tv-benefit .benefit-grid {
        grid-template-columns: 1fr;
    }

    .template-view .tv-benefit .benefit-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .template-view .tv-benefit .benefit-item .img {
        width: 100%;
    }

    .template-view .tv-banner .desc h2 {
        font-size: 1.4rem;
    }

    .template-view .tv-banner .desc p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .template-view .mbr {
        display: block;
    }

    .template-view .tv-process .tv-tabs {
        gap: 16px;
    }

    .template-view {
        padding: 100px 0 80px;
    }

    .estimate-content {
        padding: 0 20px;
    }

    .estimate-modal-inner {
        width: 96%;
    }
    
    .template-view .tv-process .tv-tabs button {
        font-size: .9rem;
    }
    
    .template-view .tv-process .tv-panel {
        align-items: flex-start;
        gap:24px;
    }
    
    .template-view .tv-process .txt {
        padding: 20px;
        width: 100%;
    }
    
    .template-view .tv-faq .faq-list .boxwrap {
        padding: 0 20px;
    }
    
    .template-view .tv-faq .faq-list .question .mark {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 15px;
    }
    
    .template-view .tv-faq .faq-list .question .tit {
        margin-left: 16px;
    }
}
