/* inquiry / skin_2 — 하단 고정바 */

.section-inquiry-skin-2 {
    width: 100%;
    box-sizing: border-box;
}

/* ── 바 본체 (기본: 일반 블록 = 편집기 캔버스/폴백) ── */
.section-inquiry-skin-2 .inq2-bar {
    width: 100%;
    box-sizing: border-box;
}

.section-inquiry-skin-2 .inq2-bar__inner {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--inq2-h, 72px);
    padding: 0 var(--inq2-px);
    box-sizing: border-box;
}

/* ── 좌측 문구 ── */
.section-inquiry-skin-2 .inq2-lead {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
}
.section-inquiry-skin-2 .inq2-lead__name  { font-weight: 800; }
.section-inquiry-skin-2 .inq2-lead__phone { font-weight: 800; }
/* 전화번호 tel: 링크는 글자색 상속 + 밑줄 제거 */
.section-inquiry-skin-2 .inq2-lead__phone a { color: inherit; text-decoration: none; }

/* PC/MO 문구 토글 */
.section-inquiry-skin-2 .inq2-mo { display: none; }

/* ── 폼 ── */
.section-inquiry-skin-2 .inq2-form {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.section-inquiry-skin-2 .inq2-fields {
    flex: 1 1 auto;
    display: flex;
    gap: 8px;
    min-width: 0;
}
.section-inquiry-skin-2 .inq2-field {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}
.section-inquiry-skin-2 .inq2-input {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    background: #fff;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
}
.section-inquiry-skin-2 select.inq2-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}
.section-inquiry-skin-2 .inq2-input:focus { outline: none; border-color: #333; }
.section-inquiry-skin-2 .inq2-field--error .inq2-input { border-color: #e53e3e !important; }

/* ── 약관 ── */
.section-inquiry-skin-2 .inq2-term {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.section-inquiry-skin-2 .inq2-term__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    line-height: 1.3;
}
.section-inquiry-skin-2 .inq2-term__label input {
    width: 15px; height: 15px; margin: 0; flex-shrink: 0; cursor: pointer;
}
.section-inquiry-skin-2 .inq2-term__view {
    height: 26px; padding: 0 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 4px;
    font-size: 12px; color: #fff; cursor: pointer;
}

/* ── 제출 버튼 ── */
.section-inquiry-skin-2 .inq2-submit {
    flex: 0 0 auto;
    padding: 0 28px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
}
.section-inquiry-skin-2 .inq2-submit:hover  { opacity: .9; }
.section-inquiry-skin-2 .inq2-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── 접기 버튼 / 탭 (라이브 고정 상태에서만 노출) ── */
.section-inquiry-skin-2 .inq2-collapse {
    flex: 0 0 auto;
    display: none;
    width: 32px; height: 32px;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,.18);
    border: none; border-radius: 6px;
    color: #fff; cursor: pointer;
}
.section-inquiry-skin-2 .inq2-tab {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px 10px 0 0;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
}

/* ── 라이브: 화면 하단 고정 ── */
.section-inquiry-skin-2.is-floating .inq2-bar {
    position: fixed;
    left: 0; right: 0;
    bottom: var(--inq2-bottom, 0px);
    z-index: 9000;
    box-shadow: 0 -4px 16px rgba(0,0,0,.14);
    transition: transform .3s ease;
}
/* 접기(▼ 버튼 / 탭 / 바 숨김)는 모바일 전용 — 아래 미디어쿼리에서 정의 */

/* ── 모바일: 2열 그리드 ── */
@media (max-width: 767px) {
    .section-inquiry-skin-2 .inq2-pc { display: none; }
    .section-inquiry-skin-2 .inq2-mo { display: inline; }

    .section-inquiry-skin-2 .inq2-bar__inner {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 10px var(--inq2-px);
        gap: 8px;
    }
    .section-inquiry-skin-2 .inq2-lead {
        flex-direction: row;
        align-items: baseline;
        justify-content: center;
        gap: 8px;
    }
    /* 폼 자체를 2열 그리드로 → 필드/약관/버튼이 셀로 흐름 */
    .section-inquiry-skin-2 .inq2-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: stretch;
    }
    .section-inquiry-skin-2 .inq2-fields { display: contents; }
    .section-inquiry-skin-2 .inq2-field  { flex: none; }      /* 그리드 셀 */
    .section-inquiry-skin-2 .inq2-term {
        grid-column: 1 / -1;     /* 풀폭 */
        order: -1;               /* 기본: 맨 위 */
        justify-content: center;
    }
    /* 약관 위치 = 버튼 아래: 약관을 제출 버튼 뒤(맨 아래)로 */
    .section-inquiry-skin-2[data-term-pos="below"] .inq2-term { order: 1; }
    .section-inquiry-skin-2 .inq2-submit { grid-column: 1 / -1; width: auto; padding: 0; }
    /* 필드 홀수(예:5개) → 버튼이 마지막 필드 옆 빈칸에 */
    .section-inquiry-skin-2[data-fields-odd="1"] .inq2-submit { grid-column: auto; }

    /* ── 접기 (모바일 전용) ── */
    /* 닫기 핸들: 바 상단 우측 밖으로 튀어나온 탭 */
    .section-inquiry-skin-2.is-floating .inq2-collapse {
        display: inline-flex;
        position: absolute;
        top: -26px; right: 16px;
        width: 48px; height: 26px;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 -3px 10px rgba(0,0,0,.15);
    }
    .section-inquiry-skin-2.is-floating.is-collapsed .inq2-bar { transform: translateY(110%); }
    .section-inquiry-skin-2.is-floating.is-collapsed .inq2-tab {
        display: inline-flex;
        position: fixed;
        right: 16px;
        bottom: 0;
        z-index: 9000;
    }
}

/* ── 필수(*) 표시 ── */
.section-inquiry-skin-2 .section-inquiry__req { color: #ffd400; margin-left: 2px; }

/* ── 경고 모달 (컴팩트, 화면 중앙) ── */
.inq2-alert {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 10002; padding: 20px; box-sizing: border-box;
}
.inq2-alert__box {
    background: #fff;
    border-radius: 12px;
    padding: 22px 22px 18px;
    max-width: 280px; width: 100%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    box-sizing: border-box;
}
.inq2-alert__msg {
    font-size: 15px; color: #222; line-height: 1.5;
    margin-bottom: 16px; word-break: keep-all;
}
.inq2-alert__btn {
    display: inline-block; min-width: 96px;
    padding: 9px 18px; border: none; border-radius: 7px;
    background: #111; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.inq2-alert__btn:hover { background: #333; }

/* ─────────────────────────────────────────────
   전역 모달 (skin_1 style.css 미로드 대비 복제)
───────────────────────────────────────────── */
.section-inquiry__complete-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; padding: 24px; box-sizing: border-box;
}
.section-inquiry__complete-box {
    position: relative; background: #fff; border-radius: 16px;
    padding: 48px 40px 40px; max-width: 400px; width: 100%;
    text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.section-inquiry__modal-close:not(.section-inquiry__complete-btn) {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 18px; color: #999;
    cursor: pointer; padding: 4px 8px; line-height: 1;
}
.section-inquiry__complete-icon { color: #22c55e; margin-bottom: 20px; }
.section-inquiry__complete-title { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 10px; }
.section-inquiry__complete-desc { font-size: 14px; color: #666; margin-bottom: 28px; line-height: 1.6; }
.section-inquiry__complete-btn {
    display: inline-block; padding: 12px 40px; background: #111; color: #fff;
    border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.section-inquiry__complete-btn:hover { background: #333; }

.section-inquiry__term-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    z-index: 10001; align-items: center; justify-content: center;
    padding: 24px; box-sizing: border-box;
}
.section-inquiry__term-modal-box {
    position: relative; background: #fff; border-radius: 12px;
    padding: 20px 32px 32px; max-width: 520px; width: 100%; max-height: 80vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18); box-sizing: border-box;
}
.section-inquiry__term-modal-close {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; font-size: 18px; color: #999;
    cursor: pointer; padding: 0; line-height: 1; border-radius: 4px;
}
.section-inquiry__term-modal-close:hover { color: #333; background-color: #f5f5f5; }
.section-inquiry__term-modal-title {
    font-size: 18px; font-weight: 700; color: #111; margin: 0 0 16px;
    padding-right: 32px; line-height: 1.4;
}
.section-inquiry__term-modal-body {
    flex: 1; overflow-y: auto; font-size: 14px; color: #555; line-height: 1.7;
    white-space: pre-wrap; word-break: break-word; padding-right: 4px;
}
@media (max-width: 600px) {
    .section-inquiry__term-modal { padding: 16px; }
    .section-inquiry__term-modal-box { padding: 22px 20px 24px; max-height: 85vh; }
}
