@charset "utf-8";

:root {
    --radius8: 8px;
}

/* ===============================
   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);
    border-color: var(--primary);
    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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

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

.gp-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 {
    background: #e5e7eb;
}

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

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

/* 카테고리 래퍼 */
.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: #111;
}

.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: #111;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.gp-consult-modal .submit-btn:hover {
    background: #000;
}

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

/* 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;
}

/* 문의내용 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%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    resize: none;
    outline: none;
}

.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: 26px;
}

.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: #ccdffb;
    color: #111;
}

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

.consult-modal .agree label {
    display: flex;
    align-items: center;
    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: #0b2a5b;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-align: center;
}
