/* searchV2 index - 예약 조회 폼 페이지 (Figma 196:36824) */

/* 컨테이너가 세로 flex일 때 푸터를 하단에 붙이기 위해 stretch (PENCO-336) */
.v2-container {
    align-items: stretch;
}

.v2-searchArea {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 0;
    box-sizing: border-box;
}
.v2-searchWrap {
    width: 400px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    position: sticky;
    top: 0;
}

/* Title block - 196:39516 */
.v2-searchTitle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.v2-searchTitle h2 {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    color: #1b1c1f;
}
.v2-searchTitle p {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #6e6f73;
    max-width: 380px;
}

/* Input Area - 196:39517 */
.v2-searchInputArea {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.v2-searchInputArea .v2-textField {
    margin-bottom: 0;
}
.v2-searchInputArea .v2-textField:not(.v2-factNum) {
    margin-bottom: 0;
}

/* TextField - 196:38490, 196:38512, 196:38521 */
.v2-textField {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.v2-textField label {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1;
    color: #1b1c1f;
}
.v2-textField input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #1b1c1f;
    background: #fff;
    border: 1px solid #dadbdf;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.v2-textField input::placeholder {
    color: #6e6f73;
}
.v2-textField input:focus {
    border: 2px solid #1b1c1f;
    padding: 0 15px;
}
.v2-textField input:-webkit-autofill,
.v2-textField input:-webkit-autofill:hover,
.v2-textField input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #1b1c1f;
    transition: background-color 5000s ease-in-out 0s;
}

/* Figma Input CASE — externalV2 info.css와 동일 (727:80506) */
.v2-textField input.is-error {
    border-color: #DC0328;
}
.v2-textField input.is-error:focus {
    border: 2px solid #DC0328;
    padding: 0 15px;
}
.v2-textField--withBtn.is-error .v2-textField__inputWrap {
    border-color: #DC0328;
}
.v2-textField--withBtn.is-error .v2-textField__inputWrap:focus-within {
    border: 2px solid #DC0328;
    padding: 0 11px 0 15px;
}
.v2-textField input:disabled {
    background-color: #f7f8fb;
    border-color: #dadbdf;
    color: #c7c8cd;
    cursor: not-allowed;
    opacity: 1;
}
.v2-textField input:disabled::placeholder {
    color: #c7c8cd;
}
.v2-textField input:disabled:focus {
    border: 1px solid #dadbdf;
    padding: 0 16px;
}
.v2-textField--withBtn:has(input:disabled) .v2-textField__inputWrap {
    background-color: #f7f8fb;
    border-color: #dadbdf;
}
.v2-textField--withBtn:has(input:disabled) .v2-textField__inputWrap:focus-within {
    border: 1px solid #dadbdf;
    padding: 0 12px 0 16px;
}

/* TextField with button (휴대폰 번호 + 인증하기) */
.v2-textField--withBtn .v2-textField__inputWrap {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 12px 0 16px;
    border: 1px solid #dadbdf;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}
.v2-textField--withBtn .v2-textField__inputWrap:focus-within {
    border: 2px solid #1b1c1f;
    padding: 0 11px 0 15px;
}
.v2-textField--withBtn input {
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
}
.v2-textField--withBtn input:focus {
    border: none;
    outline: none;
    padding: 0;
}
.v2-textBtn {
    flex-shrink: 0;
    padding: 8px 12px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #1b1c1f;
    text-decoration: underline;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.v2-textBtn:hover:not(:disabled):not(.v2-textBtn--disabled) {
    color: #1b1c1f;
}
.v2-textBtn:disabled,
.v2-textBtn.v2-textBtn--disabled {
    color: #c7c8cd;
    text-decoration: underline;
    cursor: not-allowed;
    pointer-events: none;
}
.v2-textBtn.v2-textBtn--active {
    color: #1b1c1f;
}

/* 인증번호 필드 (숨김 기본) */
.v2-factNum {
    display: none;
}
.v2-factNum.v2-factNum--show {
    display: flex;
}

/* Rectangle Button - 196:37672 */
.v2-rectangleBtn {
    width: 100%;
    height: 52px;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 21px;
    color: #fff;
    background: #c7c8cd;
    border: none;
    border-radius: 8px;
    cursor: not-allowed;
}
.v2-rectangleBtn:not(:disabled) {
    background: #4154ff;
    cursor: pointer;
}
.v2-rectangleBtn:not(:disabled):hover {
    background: #3545d9;
}

/* MessageBox - 196:39027 */
.v2-messageBox {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 4px 16px;
    background: #f7f8fb;
    border-radius: 8px;
    box-sizing: border-box;
}
.v2-infoIcon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #1b1c1f;
    display: block;
}
.v2-messageBox span {
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: #1b1c1f;
}

/* 인증 메시지 (성공/실패) */
.v2-msgTx {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    line-height: 1;
    color: #6e6f73;
    margin-top: 8px;
    margin-bottom: 8px;
}
.v2-msgTx.v2-msgTx--error {
    color: #DC0328;
}
.v2-msgTx.v2-msgTx--success {
    color: #4154ff;
}

/* Toast notification */
.v2-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(27, 28, 31, 0.9);
    color: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    padding: 12px 20px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}
.v2-toast.is-show {
    opacity: 1;
    visibility: visible;
}

/* Footer — Figma 320:12349 (PENCO-336) */
.v2-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    max-width: 1280px; width: 100%; box-sizing: border-box;
    margin: auto auto 0;
    padding: 40px 24px;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    line-height: 1;
    color: #8b8d92;
}
.v2-footer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.v2-footer-notice {
    margin: 0;
    font-weight: 400;
    white-space: normal;
}
.v2-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.v2-footer-name {
    font-weight: 700;
    color: #8b8d92;
}
.v2-footer-addr,
.v2-footer-tel {
    font-weight: 400;
    color: #8b8d92;
}
.v2-footer-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    min-height: 32px;
    min-width: 64px;
    padding: 4px 12px;
    border: 1px solid #e9eaef;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    line-height: 17px;
    font-weight: 400;
    color: #1b1c1f;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}
.v2-footer-partner:hover {
    background: #f7f8fb;
}
.v2-footer-partnerIcon {
    flex-shrink: 0;
    display: block;
    color: #1b1c1f;
}

/* Input gap between fields */
.v2-searchInputArea .v2-textField + .v2-textField {
    margin-top: 16px;
}
.v2-searchInputArea .v2-textField + .v2-rectangleBtn {
    margin-top: 0;
}
.v2-searchInputArea .v2-textField {
    margin-bottom: 0;
}
.v2-searchInputArea {
    gap: 20px;
}
.v2-searchInputArea .v2-rectangleBtn {
    margin-top: 0;
}

/* MOBILE: 360 ~ 1279px (Figma 339:9889, 457:15366, 457:15531) */
@media only screen and (min-width: 360px) and (max-width: 799px) {
    .v2-searchArea {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .v2-searchWrap {
        width: 100%;
        gap: 28px;
        padding: 0;
    }
    .v2-searchTitle {
        gap: 8px;
    }
    .v2-searchTitle h2 {
        font-size: 24px;
        font-weight: 700;
        line-height: 29px;
        color: #1b1c1f;
    }
    .v2-searchTitle p {
        font-size: 14px;
        line-height: 17px;
        color: #6e6f73;
        max-width: none;
    }
    .v2-searchInputArea {
        gap: 20px;
    }
    .v2-searchInputArea .v2-textField + .v2-textField {
        margin-top: 16px;
    }
    .v2-searchInputArea .v2-textField + .v2-rectangleBtn {
        margin-top: 0;
    }
    .v2-searchInputArea .v2-rectangleBtn {
        margin-top: 0;
    }
    .v2-messageBox {
        padding: 12px 16px;
        min-height: auto;
        gap: 8px;
    }
    .v2-messageBox span {
        font-size: 13px;
        line-height: 16px;
    }
}

/* 푸터 MO — revDetail .v2-revDetailFooter와 동일 (Figma 320:12350 계열) */
@media only screen and (max-width: 768px) {
    .v2-footer {
        flex-direction: column;
        padding: 32px 20px;
        gap: 12px;
    }
    .v2-footer-info {
        font-size: 12px; line-height: 18px; white-space: normal;
        gap: 12px;
    }
    .v2-footer-notice { line-height: 18px; }
    .v2-footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .v2-footer-partner {
        display: none;
    }
}
