/* ==========================================================================
   landing.css — 랜딩페이지(랜딩) 등록·조회 페이지 전용
========================================================================== */
:root {
    /* Surface */
    --bg:          #F4F6F9;
    --card:        #FFFFFF;
    --line:        #E5E8EB;
    --line-light:  #F2F4F6;

    /* Text */
    --text:        #191F28;
    --sub-text:    #4E5968;
    --muted:       #8B95A1;

    /* Brand — Mint/Teal */
    --primary:        #0A9FA8;
    --primary-dark:   #088A92;
    --primary-light:  #E0F2F3;

    /* Status */
    --success:        #00B380;
    --success-light:  #E6F7F0;
    --warning:        #F59F00;
    --warning-light:  #FFF6E5;
    --danger:         #F04438;
    --danger-light:   #FFEEED;

    /* Accent */
    --accent:         #8B5CF6;
    --accent-light:   #F3EBFD;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Shadow */
    --shadow-card:  0 1px 4px rgba(17, 24, 39, 0.04), 0 4px 16px rgba(17, 24, 39, 0.04);
    --shadow-focus: 0 0 0 3px rgba(10,159,168,0.20);

    /* Font sizes */
    --fs-xs:   12px;
    --fs-sm:   13px;
    --fs-base: 14px;
    --fs-md:   15px;
    --fs-lg:   17px;
    --fs-xl:   20px;

    /* Layout */
    --max-w:        430px;
    --topbar-h:     56px;
    --tabbar-h:     64px;
    --safe-bottom:  env(safe-area-inset-bottom, 0);
}

/* ─── 사전 질문 아코디언: 항목이 동적으로 늘어나므로 max-height 제한 해제 ── */
#acc2:checked ~ .acc__body {
    max-height: none;
    overflow: visible;
}

/* ─── 이미지 업로드 ──────────────────────────────────────────────────── */
.img-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.img-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--line-light);
}
.img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.img-thumb__del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.55);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.img-thumb__del svg { width: 10px; height: 10px; display: block; }

.img-add-btn {
    width: 80px;
    height: 80px;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-md);
    background: var(--line-light);
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
    font-size: var(--fs-xs);
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s;
}
.img-add-btn:active { border-color: var(--primary); color: var(--primary); }
.img-add-btn svg { width: 20px; height: 20px; }

/* ─── 사전 질문 섹션 구분선 ─────────────────────────────────────────── */
.pre-q-divider {
    height: 1px;
    background: var(--line);
    margin: 20px 0;
}

/* ─── 질문 항목 카드 ──────────────────────────────────────────────────── */
.q-item {
    background: var(--line-light);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.q-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.q-item__label {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--sub-text);
}

.q-item__del {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.q-item__del:active { background: var(--line); }
.q-item__del svg { width: 16px; height: 16px; display: block; }

/* ─── 옵션 행 ─────────────────────────────────────────────────────────── */
.opt-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.opt-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.opt-row__input { flex: 1; min-width: 0; }
.opt-row__del {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.opt-row__del:active { background: var(--line); }
.opt-row__del svg { width: 14px; height: 14px; display: block; }

/* ─── 점선 추가 버튼 ──────────────────────────────────────────────────── */
.add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 44px;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--sub-text);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.add-btn:active { border-color: var(--primary); color: var(--primary); }
.add-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── 질문 목록 래퍼 ──────────────────────────────────────────────────── */
#questionList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

/* ─── 하단 힌트 텍스트 ────────────────────────────────────────────────── */
.landing-hint {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--muted);
    margin: 0 0 8px;
}

/* ─── 조회 화면 : 성공 헤더 ──────────────────────────────────────────── */
.callpage-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 4px 0 8px;
}
.callpage-success__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
}
.callpage-success__icon svg { width: 15px; height: 15px; }
.callpage-success__title {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

/* ─── 조회 화면 : 질문 목록 ──────────────────────────────────────────── */
.q-view-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-light);
}
.q-view-item:last-child { border-bottom: none; padding-bottom: 0; }
.q-view-item:first-child { padding-top: 0; }

.q-view-item__question {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}
.q-view-item__type {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 6px;
}
.q-view-item__detail {
    font-size: var(--fs-sm);
    color: var(--sub-text);
    line-height: 1.6;
}
.q-view-item__options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.q-view-item__option-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--line-light);
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    color: var(--sub-text);
    font-weight: 600;
}

/* ─── URL 복사 행 ─────────────────────────────────────────────────────── */
.url-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.url-row .input { flex: 1; min-width: 0; font-size: var(--fs-xs); }
.url-row .btn   { flex-shrink: 0; height: 44px; padding: 0 16px; }

/* ─── 랜딩페이지 목록 ─────────────────────────────────────────────────── */
.callpage-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.callpage-list__item {
    background: var(--card);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.callpage-list__link {
    display: flex;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.callpage-list__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.callpage-list__title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.callpage-list__date {
    font-size: var(--fs-xs);
    color: var(--muted);
    margin: 0;
}

.callpage-list__arrow {
    flex-shrink: 0;
    color: var(--muted);
}
.callpage-list__arrow svg { width: 18px; height: 18px; display: block; }

/* ─── 빈 상태 ────────────────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 0;
    text-align: center;
}

.empty-state__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--line-light);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state__icon svg { width: 26px; height: 26px; }

.empty-state__text {
    font-size: var(--fs-sm);
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ─── 광고 채널 카드 목록 ────────────────────────────────────────────── */
.ad-channel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-channel-card {
    border-radius: var(--radius-md);
}

.kv-channel-name {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-md);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.2px;
}

/* 광고가 게재된 링크 */
.ad-url-view-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ad-url-display {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
}
.ad-url-link {
    color: var(--primary);
    text-decoration: underline;
    word-break: break-all;
    display: block;
}
.ad-url-empty {
    color: var(--muted);
}
.ad-url-edit-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.ad-url-save-btn, .ad-url-edit-btn {
    padding: 0 16px;
    height: 44px;
}


/* ─── 아코디언 3 max-height 해제 ────────────────────────────────────── */
#acc3:checked ~ .acc__body {
    max-height: none;
    overflow: visible;
}

/* ─── 위자드 스텝 인디케이터 ─────────────────────────────────────────── */
.wizard-header {
    padding: 20px 20px 8px;
}

.wizard-step-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.wz-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wz-step__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: var(--bg, #fff);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.wz-step.active .wz-step__dot {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.wz-step.done .wz-step__dot {
    border-color: var(--primary);
    background: var(--primary-light, #eef2ff);
    color: var(--primary);
}

.wz-step__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.wz-step.active .wz-step__label,
.wz-step.done .wz-step__label {
    color: var(--primary);
}

.wz-connector {
    flex: 1;
    height: 2px;
    background: var(--line);
    margin: 15px 6px 0;
    min-width: 24px;
    transition: background 0.2s;
}

.wz-connector.done {
    background: var(--primary);
}

/* ─── 위자드 하단 네비게이션 버튼 ───────────────────────────────────── */
.wizard-nav {
    display: flex;
    gap: 10px;
}

.wizard-nav .btn {
    flex: 1;
}

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--line);
    color: var(--text);
    font-weight: 600;
}

/* ─── 사전 질문 미리보기 프레임 (connect 페이지 스타일) ───────────────── */
.preview-frame {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

/* ─── 헤더: 제목 / 설명 / 이미지 ─────────────────────────────────────── */
.preview-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.preview-title-input {
    width: 100%;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    border: none;
    background: transparent;
    text-align: center;
    outline: none;
    padding: 0;
    line-height: 1.4;
}
.preview-title-input::placeholder { color: var(--muted); font-weight: 500; }

.preview-desc-input {
    width: 100%;
    font-size: var(--fs-base);
    color: var(--sub-text);
    border: none;
    background: transparent;
    text-align: center;
    resize: none;
    outline: none;
    line-height: 1.6;
    padding: 0;
    font-family: inherit;
    overflow: hidden;
}
.preview-desc-input::placeholder { color: var(--muted); }

/* 이미지 갤러리: 헤더 좌우 패딩을 넘어 꽉 차게 표시 */
.preview-img-gallery {
    width: calc(100% + 40px);
    margin: 8px -20px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}
.preview-img-gallery .img-thumb {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0;
    flex-shrink: 0;
}
.preview-img-gallery .img-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}
.preview-img-gallery .img-thumb__del {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
}
/* 이미지 추가 버튼: 갤러리 안에서 가로 바 형태로 */
.preview-img-gallery .img-add-btn {
    margin: 10px 20px;
    width: calc(100% - 40px);
    height: 40px;
    border-radius: var(--radius-md);
    flex-direction: row;
    gap: 6px;
}

/* ─── 질문 목록 ───────────────────────────────────────────────────────── */
.preview-questions {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

/* ─── 개별 질문 항목 ──────────────────────────────────────────────────── */
.preview-q-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.preview-q-item:last-child { border-bottom: none; }

/* 질문 텍스트 — connect-q-label 스타일로 표시 */
.preview-q-label {
    font-size: var(--fs-md, 16px);
    font-weight: 700;
    color: var(--text);
    border: none;
    background: transparent;
    padding: 0;
    outline: none;
    width: 100%;
    line-height: 1.5;
}
.preview-q-label::placeholder { color: var(--muted); font-weight: 400; }

/* 텍스트 답변 미리보기: 고객에게 보이는 입력창과 동일한 스타일 */
.preview-q-ph-preview {
    background: var(--line-light) !important;
    border-color: transparent !important;
    color: var(--muted) !important;
    cursor: default;
    pointer-events: none;
}

/* 답변 예시(placeholder) 편집 행 */
.preview-q-ph-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.preview-q-ph-label {
    font-size: var(--fs-xs);
    color: var(--muted);
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
}

/* 질문 항목 상단: 삭제 버튼 행 */
.preview-q-item-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -4px;
}

/* 툴바: 유형 선택 */
.preview-q-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 2px;
}

.preview-q-del {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.preview-q-del:active { background: var(--line); color: var(--danger); }
.preview-q-del svg { width: 16px; height: 16px; display: block; }

/* ─── 옵션 추가 버튼 (체크박스/드롭다운) ─────────────────────────────── */
.preview-add-opt-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}
.preview-add-opt-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.preview-add-opt-btn:active { opacity: 0.7; }

/* ─── 질문 추가 영역 ──────────────────────────────────────────────────── */
.preview-add-q-wrap {
    padding: 14px 20px 16px;
    border-top: 1px solid var(--line-light);
}
.preview-add-q-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 40px;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--sub-text);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.preview-add-q-btn:active { border-color: var(--primary); color: var(--primary); }
.preview-add-q-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── 체크박스 옵션 행 ────────────────────────────────────────────────── */
.preview-opt-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--line-light);
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 0;
    cursor: default;
}
.preview-opt-cb {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: default;
    pointer-events: none;
}
.preview-opt-text {
    flex: 1;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    font-size: var(--fs-base);
    color: var(--text);
    outline: none;
}
.preview-opt-text::placeholder { color: var(--muted); }

/* ─── 영역 구분 레이블 (고객 화면 / ✏ 옵션 설정) ────────────────────── */
.preview-section-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.preview-section-label--edit {
    color: var(--sub-text);
}

/* ─── 고객 화면 카드 (배경 없음) ─────────────────────────────────────── */
.preview-customer-card {
    /* no background, no border */
}

/* ─── 드롭다운 미리보기 select ────────────────────────────────────────── */
.preview-dd-select {
    width: 100%;
    cursor: pointer;
}

/* ─── 전체 미리보기 열기 버튼 ────────────────────────────────────────── */
.preview-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--sub-text);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.preview-open-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.preview-open-btn:active { border-color: var(--primary); color: var(--primary); }

/* ─── 전체 미리보기 모달 ──────────────────────────────────────────────── */
.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}
.preview-modal[aria-hidden="false"] {
    pointer-events: auto;
    visibility: visible;
}
.preview-modal__inner {
    width: 100%;
    max-width: var(--max-w, 430px);
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.preview-modal[aria-hidden="false"] .preview-modal__inner {
    transform: translateY(0);
}
.preview-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.preview-modal__title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--text);
}
.preview-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--sub-text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
}
.preview-modal__close:active { background: var(--line-light); }
.preview-modal__close svg { width: 20px; height: 20px; display: block; }
.preview-modal__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 84px;
}
.preview-modal__foot {
    flex-shrink: 0;
    padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0));
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ─── 하단: 바로 연결 버튼 미리보기 ──────────────────────────────────── */
.preview-footer {
    padding: 12px 20px 16px;
    background: #fff;
    border-top: 1px solid var(--line);
}
.preview-call-btn {
    width: 100%;
    height: 52px;
    background: #00C577;
    color: #fff;
    border-radius: 26px;
    font-size: var(--fs-lg);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
    user-select: none;
    opacity: 0.85;
}
.preview-call-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.round__btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--sub-text);
    background: var(--line-light);
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    user-select: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
}

.pill__input:checked + .round__btn {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
.pill__input:focus-visible + .round__btn { box-shadow: var(--shadow-focus); }


.input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: var(--fs-md);
    color: var(--text);
    background: var(--line-light) !important;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.connect-q-label {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}
.connect-q-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--line-light);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    color: var(--text);
    cursor: pointer;
}

.connect-q-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}
/* ─── landing-list 섹션 패딩/간격 — 공용 .analysis 재정의 ───
   .analysis 는 { padding: 24px 16px 32px } 로 상/하 패딩이 커서
   landing-list 에서는 보기 좋은 리듬으로 좁혀서 사용한다.               */
.landing-list__section {
    padding: 0 16px !important;
}
.landing-list__section:first-of-type {
    padding-top: 16px !important;
}
.landing-list__section:last-of-type {
    padding-bottom: 24px !important;
}
.landing-list__section + .landing-list__section {
    padding-top: 14px !important;
}

/* ─── landing-list 공통 섹션 헤더 ─────────────────────────── */
.section-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0 2px;
}
.section-head__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #191F28);
    margin: 0;
    letter-spacing: -0.2px;
}
.section-head__sub {
    font-size: 12px;
    color: var(--muted, #8B95A1);
    font-weight: 500;
    margin-left: 2px;
    letter-spacing: -0.1px;
}
.section-head__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 7px;
    background: var(--primary-light, #E0F2F3);
    color: var(--primary, #0A9FA8);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
}

/* ─── 1. 새 랜딩페이지 만들기 CTA ─────────────────────────── */
.create-cta-section {
    margin-bottom: 18px;
}
.create-cta-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #0A9FA8 0%, #0BB4BE 100%);
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(10,159,168,0.18);
    overflow: hidden;
    transition: transform 0.12s, box-shadow 0.12s;
}
.create-cta-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.10);
    border-radius: 50%;
    pointer-events: none;
}
.create-cta-card:active {
    transform: scale(0.985);
    box-shadow: 0 3px 10px rgba(10,159,168,0.20);
}
.create-cta-card__icon {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.create-cta-card__icon svg { width: 22px; height: 22px; display: block; }
.create-cta-card__body {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.create-cta-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}
.create-cta-card__sub {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.1px;
}
.create-cta-card__arrow {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.85);
}
.create-cta-card__arrow svg { width: 20px; height: 20px; display: block; }

/* ─── 2. 추천 템플릿 섹션 ─────────────────────────────── */
.template-section {
    margin-bottom: 18px;
}
.template-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.template-cards__item { margin: 0; }
.template-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1.5px solid var(--primary-light, #E0F2F3);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text, #191F28);
    box-shadow: 0 1px 3px rgba(10,159,168,0.04);
    transition: border-color 0.12s, background 0.12s, transform 0.12s;
}
.template-card:active {
    background: #F5FAFB;
    border-color: var(--primary, #0A9FA8);
    transform: scale(0.99);
}
.template-card__name-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.template-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    background: var(--primary-light, #E0F2F3);
    color: var(--primary, #0A9FA8);
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.2px;
    line-height: 1.4;
    flex-shrink: 0;
}
.template-card__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-light, #E0F2F3);
    color: var(--primary, #0A9FA8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.template-card__icon svg { width: 24px; height: 24px; display: block; }
.template-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.template-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #191F28);
    letter-spacing: -0.2px;
}
.template-card__sub {
    font-size: 12px;
    color: var(--muted, #8B95A1);
    font-weight: 500;
    letter-spacing: -0.1px;
}
.template-card__arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #B0B0B0;
}
.template-card__arrow svg { width: 18px; height: 18px; display: block; }

/* ─── 템플릿 모드 Step3 분기 ─── */
#wizStep3 .is-hidden { display: none !important; }

/* 안심 주차 템플릿: landing-view 의 차량별 블록은 기존 광고채널 블록과 동일한
   .create-field-wrap / .create-field-group / .link-actions / .qr-preview
   패턴을 그대로 재사용합니다. 별도 CSS 불필요. */

/* ─── 안심 주차 — QR 주차카드 토글 (landing-view) ─────── */
.pc-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    margin: 10px auto 0;              /* 가운데 정렬 */
    background: #EEF1F4;
    border: 1px solid #E5E8EB;
    border-radius: 14px;
    width: 100%;
    max-width: 280px;
    isolation: isolate;
}
.pc-toggle::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(50% - 8px);
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(10,159,168,0.12),
                0 1px 2px rgba(17,24,39,0.06);
    transition: transform 0.26s cubic-bezier(.4,0,.2,1);
    z-index: 0;
}
.pc-toggle[data-active="vertical"]::before {
    transform: translateX(calc(100% + 6px));
}
.pc-toggle__btn {
    position: relative;
    z-index: 1;
    appearance: none;
    border: none;
    background: transparent;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    color: #8B95A1;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: -0.1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pc-toggle__ico {
    width: 15px;
    height: 15px;
    display: block;
    flex-shrink: 0;
    transition: color 0.2s;
}
.pc-toggle__btn.active {
    color: #0A9FA8;
    font-weight: 700;
}
.pc-toggle__btn:not(.active):hover {
    color: #4E5968;
}

.pc-preview {
    padding: 14px;
    margin-top: 12px;
    background: #F7F9FB;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    /* 캔버스가 어떤 비율이어도 가운데 — inline-block + text-align */
    text-align: center !important;
    font-size: 0;        /* inline-block 간격 제거 */
}
.pc-preview__canvas {
    display: inline-block !important;
    margin: 0 auto !important;
    vertical-align: middle;
    max-width: 100%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-radius: 8px;
}
