@charset "utf-8";

:root {
    --radius8: 8px;
    --primary: #ff5e00;
    --primary-hover: #e65500;
    --primary-light-strong: rgba(255, 94, 0, 0.15);
}

/* ===============================
   GOODPIK CONSULT INPUT RESET
================================= */

.gp-consult-modal input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;

    font-family: inherit;
}

/* 포커스 기본 파란 테두리 제거 */
.gp-consult-modal input:focus {
    outline: none;
    box-shadow: none;
}

.gp-consult-modal input.validation-error {
    border: 1px solid #c00 !important;
    box-shadow: 0 0 0 1px #c00;
}

/* autofill 노란 배경 제거 (크롬) */
.gp-consult-modal input:-webkit-autofill,
.gp-consult-modal input:-webkit-autofill:hover,
.gp-consult-modal input:-webkit-autofill:focus,
.gp-consult-modal input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #111 !important;
    transition: background-color 9999s ease-in-out 0s;
}



/* ===============================
   GOODPIK CONSULT CHECK BOX RESET
================================= */
.custom-chk-inp-wrap {
    display: inline-block;
}

.custom-chk-inp-wrap .chk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.custom-chk-inp-wrap input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-chk-inp-wrap .chkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1.5px solid #888;
    border-radius: 4px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    transition: all .2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    opacity: .3;
}

.custom-chk-inp-wrap .txt {
    font-size: 14px;
    color: #111;
}

.custom-chk-inp-wrap .txt.all {
    font-size: 15px;
    font-weight: bold;
}

.custom-chk-inp-wrap .txt .privacy-link {
    text-decoration: underline;
    color: #111;
}

.custom-chk-inp-wrap input:checked + .chkbox {
    background-color: var(--primary, #ff5e00);
    border-color: var(--primary, #ff5e00);
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ===============================
  GOODPIK FLOATING INPUT STYLE
================================= */

.gp-consult-modal .inp-box {
    position: relative;
    background: #f5f6f8;
    border-radius: var(--radius8);
    padding: 30px 16px 14px 16px;
    border: 2px solid #ededed;
    transition: all .2s ease;
}

.gp-consult-modal .inp-box:focus-within {
    border-color: #111;
    background: #fff;
}

/* 라벨 */
.gp-consult-modal .floating-label {
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 0.8rem;
    color: #888;
    pointer-events: none;
}

/* 인풋 */
.gp-consult-modal .inp-box input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    outline: none;
    padding: 0;
}

.gp-consult-modal .inp-box .form-guide {
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
}

.gp-consult-modal .inp-box input::placeholder {
    color: #bbb;
}

.gp-consult-modal .inp-wrap {
    position: relative;
}

/* 클리어 버튼 */
.gp-consult-modal .clear-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    color: #666;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    display: none;
}

/* ===============================
  GOODPIK COMMON STYLE
================================= */
/* DIM - 초기 숨김, 버튼 클릭 시에만 JS로 표시 */
.gp-consult-dim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 9998;
    display: none;
}

/* 모달 컨테이너 - 초기 숨김, 버튼 클릭 시에만 JS로 표시 */
.gp-consult-modal {
    display: none;
}

/* 모달 기본 */
.gp-consult-modal .inner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    max-width: 90%;
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    z-index: 9999;
    display: block;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.gp-consult-modal .gp-consult-head,
.lease-consult-modal .gp-consult-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.gp-consult-modal .gp-consult-head .title,
.lease-consult-modal .gp-consult-head .title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.gp-consult-modal .gp-consult-head .close,
.lease-consult-modal .gp-consult-head .close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    transition: all .2s ease;
}

.gp-consult-modal .gp-consult-head .close:hover,
.lease-consult-modal .gp-consult-head .close:hover {
    background: #e5e7eb;
}

.gp-consult-modal form,
.lease-consult-modal .lease-consult-form {
    display: flex;
    flex-direction: column;
}

.gp-consult-modal .field,
.lease-consult-modal .lease-consult-form .field {
    margin-bottom: 16px;
}

.gp-consult-modal .field:not(:has(~ .field)),
.lease-consult-modal .lease-consult-form .field:not(:has(~ .field)) {
    margin-bottom: 0;
}

/* 카테고리 래퍼 */
.gp-consult-modal .consult-category {
    display: flex;
    background: #f3f4f6;
    border-radius: var(--radius8);
    padding: 6px;
    gap: 6px;
    margin-bottom: 16px;
}

/* 버튼 기본 */
.gp-consult-modal .consult-category .cat-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    border-radius: var(--radius8);
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
}

/* 활성 상태 */
.gp-consult-modal .consult-category .cat-btn.active {
    background: #fff;
    color: #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 호버 */
.gp-consult-modal .consult-category .cat-btn:hover {
    color: var(--primary);
}

.gp-consult-modal .submit-btn {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: var(--radius8);
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.gp-consult-modal .submit-btn:hover {
    background: var(--primary-hover);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .gp-consult-modal {
        width: 92%;
        padding: 32px 20px;
        border-radius: 18px;
    }

    .gp-consult-modal .gp-consult-head,
    .lease-consult-modal .gp-consult-head {
        margin-bottom: 16px;
    }
}

/* requset baisc modal ***************************/
.consult-modal .basic-inner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    max-width: 90%;
    background: #fff;
    border-radius: 20px;
    z-index: 9999;
    display: block;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    padding: 30px;
}

.consult-modal .dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}



.consult-modal .field {
    position: relative;
}

.consult-modal .field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #111;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
}

.consult-modal .field input:focus,
.consult-modal .field input:focus-visible {
    outline: none;
    border-color: #e5e5e5;
    box-shadow: none;
}

.consult-modal .field input[readonly] {
    background: #f8f9fb;
    color: #555;
    cursor: default;
}

.consult-modal .field input[readonly]:focus {
    border-color: #e5e5e5;
    background: #f8f9fb;
}

/* 문의내용 textarea — 차종 input과 동일 톤 (.input-wrap 내부) */
.consult-modal .field .input-wrap {
    width: 100%;
}

.consult-modal .field .input-wrap textarea {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 54px;
    min-height: 54px;
    max-height: 54px;
    padding: 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    line-height: 54px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    resize: none;
    outline: none;
    overflow: hidden;
}

.consult-modal .field .input-wrap textarea::placeholder {
    color: #bbb;
}

.consult-modal .field .input-wrap textarea:focus {
    border-color: #111;
}

.consult-modal .field .input-wrap textarea.validation-error {
    border-color: #c00 !important;
    box-shadow: 0 0 0 1px #c00;
}

.consult-modal .field .star {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #e60023;
    font-size: 16px;
}

.consult-modal .section {
    margin-top: 16px;
}

.consult-modal .sec-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.consult-modal .way {
    display: flex;
    gap: 12px;
}

.consult-modal .way label {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.consult-modal .way input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consult-modal .way span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 8px;
    background: #f5f5f5;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.consult-modal .way input:checked + span {
    background: var(--primary-light-strong, rgba(255, 94, 0, 0.15));
    color: #111;
}

.consult-modal .agree {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consult-modal .agree label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.consult-modal .agree a {
    color: #999;
    text-decoration: underline;
}

.consult-modal .submit {
    margin-top: 28px;
    width: 100%;
    height: 56px;
    border-radius: 10px;
    background: var(--primary, #ff5e00);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease;
}

.consult-modal .submit:hover {
    background: var(--primary-hover, #e65500);
}

/* ========== 리스 승계 lease 상담 모달 (basic .consult-modal 패널·폼 스타일 재사용, 별도 dim) ========== */
.lease-consult-wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.lease-consult-wrap.is-open {
    display: flex;
}

.lease-consult-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.lease-consult-modal {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: block;
}

.lease-consult-modal.consult-modal .basic-inner {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lease-consult-modal .lease-consult-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.lease-consult-modal .lease-consult-fields .field {
    margin-bottom: 0;
}

.lease-consult-modal .lease-consult-form .submit {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .lease-consult-wrap {
        padding: 12px;
    }

    .consult-modal .section {
        margin-top: 16px;
    }
}

/* ===============================
   우측 고정 간편상담 위젯
================================= */
.consult-fixed-widget {
    position: fixed;
    right: 24px;
    bottom: 30%;
    left: auto;
    z-index: 1100;
    width: 220px;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
}

.consult-fixed-widget[hidden],
.consult-fixed-widget.is-closed {
    display: none !important;
}

.consult-fixed-widget__close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: background 0.2s;
}

.consult-fixed-widget__close:hover {
    background: #f3f4f6;
}

.consult-fixed-widget__close img {
    display: block;
    width: 14px;
    height: 14px;
    opacity: 0.55;
    pointer-events: none;
}

.consult-fixed-widget__panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 18px 14px 14px;
}

.consult-fixed-widget__title {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    text-align: center;
}

.consult-fixed-widget__category.btn-group {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #f0f2f5;
}

.consult-fixed-widget__category input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consult-fixed-widget__category .btns {
    position: relative;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 9px 1px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #9ca3af;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.consult-fixed-widget__category .btns span {
    display: block;
    color: inherit;
    font-weight: inherit;
}

.consult-fixed-widget__category .btns:has(input[type="radio"]:checked) {
    background: #fff;
    color: var(--primary, #FF5E00);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.consult-fixed-widget__field {
    margin-bottom: 10px;
}

.consult-fixed-widget__field input {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    color: #111;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.consult-fixed-widget__field input::placeholder {
    color: #9ca3af;
}

.consult-fixed-widget__field input:focus {
    outline: none;
    border-color: var(--primary, #FF5E00);
}

.consult-fixed-widget__field input.validation-error {
    border-color: #e53935;
}

.consult-fixed-widget__form .custom-chk-inp-wrap {
    margin-top: 12px;
}

.consult-fixed-widget__form .custom-chk-inp-wrap .txt {
    font-size: 11px;
    line-height: 1.35;
}

.consult-fixed-widget__submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 12px;
    padding: 11px 12px;
    border: none;
    border-radius: 10px;
    background: var(--primary, #FF5E00);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.consult-fixed-widget__submit:hover {
    background: var(--primary-hover, #E65500);
}

.consult-fixed-widget__submit-sub {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.95;
}

.consult-fixed-widget__submit-main {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.consult-fixed-widget__kakao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fee500;
    color: #191919;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    box-sizing: border-box;
    transition: filter 0.2s;
}

.consult-fixed-widget__kakao:hover {
    filter: brightness(0.96);
}

.consult-fixed-widget__kakao img {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 1400px) {
    .consult-fixed-widget,
    .consult-fixed-widget.is-visible {
        display: none !important;
    }
}
