/* =========================================
   1. 퀵 배너 (우측 하단 고정 아이콘)
   ========================================= */
   .quick-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #fff;
    color: #fff;
    padding: 0;
    border-radius: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    width: 60px;
    height: 60px;
    transition: width 0.3s ease, background-color 0.3s ease;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.quick-banner img {
    width: 60px;
    height: 60px;
    background: #fff;
    padding: 6px;
    border-radius: 50%;
    box-sizing: border-box;
}

.quick-banner .quick-text {
    position: absolute;
    left: 20px;
    margin-right: 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-banner:hover {
    width: 160px;
    background: #7EC8F7;
    justify-content: flex-end;
    box-sizing: border-box;
}

.quick-banner:hover .quick-text {
    opacity: 1;
}


/* =========================================
   2. 팝업 레이아웃 (구조 및 배경)
   ========================================= */
.quick-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: #808083;
    border-radius: 50px;
    width: 360px;
    height: 720px;
    padding: 12px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.popup-content2 {
    background-color: #FEEFE3;
    border-radius: 40px;
    width: 100%;
    height: 100% !important;
    padding: 50px 20px 30px 20px;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    overflow: hidden !important;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #000;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.close-btn2 {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

/* 팝업 단계별 컨테이너 (Step Wrapper) */
.popup-step {
    display: none !important;
    flex: 1 !important;
    min-height: 0 !important;
    flex-direction: column !important;
    overflow: hidden !important;
    height: 100%;
}

.popup-step.on {
    display: flex !important;
}

/* 팝업 내부 스크롤 박스 */
.popup_textbox {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 20px;
    /* 스크롤바 제어 */
    -ms-overflow-style: none;
    scrollbar-width: none;
    overscroll-behavior: contain;
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    display: block !important;
}

.popup_textbox::-webkit-scrollbar {
    display: none;
}

.popup_textbox:after {
    content: "";
    clear: both;
    display: block;
}

.inner-white-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    box-sizing: border-box;
    margin-bottom: 20px;
}


/* =========================================
   3. 헤더 및 로고 영역
   ========================================= */
.popup-logo {
    flex-shrink: 0 !important;
    margin-bottom: 30px;
    text-align: left;
}

.popup-logo h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0063A7;
    margin: 0 0 15px 0;
}

.popup-logo h2 img {
    width: 90px;
}

.popup-logo h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 5px 0;
    line-height: 30px;
}

.popup-logo p {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    margin: 5px 0 0 0;
    line-height: 26px;
}


/* =========================================
   4. 폼 스타일 (Input, Checkbox, Select)
   ========================================= */

/* 공통 라벨 */
.quick-popup label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    text-align: left;
    line-height: 26px;
}

.label_2 {
    margin-top: 20px;
}

/* 일반 Input 스타일 */
.quick-popup input:not([type="checkbox"]) {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #808083;
    border-radius: 0;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    background: transparent;
    height: auto;
}

.quick-popup input:not([type="checkbox"]):hover {
    border: none;
    border-bottom: 1px solid #808083;
    box-shadow: none;
}

.quick-popup input:focus {
    border-bottom: 1px solid #0063A7;
}

.input-bg-white {
    background: #fff !important;
}

/* Select Box */
.input-select {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-top: 1px solid #808083;
    border-bottom: 1px solid #808083;
    font-size: 16px;
    color: #333;
    outline: none;
    background: url('/theme/nstheme/images/vector3.png') no-repeat right center;
    background-size: 12px;
    appearance: none;
}

/* Custom Checkbox */
.input-label--checkbox {
    display: flex!important;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.input-label--checkbox input[type="checkbox"] {
    display: none;
}

.input-label--checkbox .input-label__txt {
    position: relative;
    padding-left: 20px;
    color: #0063A7;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.input-label--checkbox .input-label__txt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    box-sizing: border-box;
    margin-top: 0px;
}

/* 체크박스 활성 상태 */
.quick-popup .input-label--checkbox .input-label__txt::before {
    border: 2px solid #0063A7;
    box-sizing: border-box;
}

.quick-popup .input-label--checkbox input[type=checkbox]:checked+.input-label__txt::before,
.input-label--checkbox input[type="checkbox"]:checked+.input-label__txt::before {
    background: #0063A7;
    background-image: none;
    border: 1px solid #0063A7;
}

/* 약관용 체크박스 스타일 재정의 */
.quick-popup .privacy-input-label--checkbox .input-label__txt::before {
    width: 16px;
    height: 16px;
    border: 1px solid #808083;
    background-color: transparent;
}

.quick-popup .privacy-input-label__txt {
    font-size: 15px;
    font-weight: 400;
    color: #808083;
    padding-left: 20px;
}

.quick-popup .privacy-input-label--checkbox input[type=checkbox]:checked+.input-label__txt::before {
    background: #808083;
    background-image: none;
    border: 1px solid #808083;
}


/* =========================================
   5. 섹션별 상세 스타일 (대신접수, 경로, 약관 등)
   ========================================= */

/* 타이틀 공통 */
.section-title,
.boarding-title,
.step3-title,
.proxy-sub-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 30px;
    color: #0063A7;
    margin-bottom: 10px;
    margin-top: 0;
}
.boarding-title, .step3-title {
    margin: 0 0 15px 0;
}

/* Step 1: 동일인 체크 */
.check-same-user {
    padding: 20px 0;
    padding-top: 40px;
    box-sizing: border-box;
}

.check-same-user .input-label__txt {
    /* font-size: 16px; */
    font-size: 15px;
    color: #0063A7;
    font-weight: 400;
    /* line-height: 26px; */
    line-height: 1.3;
    letter-spacing: -1px;
}

/* Step 2: 대신 접수 (Proxy) */
.proxy-check-txt {
    color: #0063A7;
    font-weight: 700;
}

.proxy-detail-layer {
    display: none;
    margin-bottom: 20px;
}

.proxy-rel-title {
    font-size: 16px;
    font-weight: 400;
    color: #0063A7;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.driver-sub-options {
    display: none;
    margin-top: 10px;
    padding-left: 10px;
}

.driver-info-desc {
    font-size: 14px;
    font-weight: 300;
    color: #8E8E93;
    margin-top: 10px;
    line-height: 1.4;
}

/* Step 3: 탑승 정보 및 시간 */
.boarding-info-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #808083;
    padding-bottom: 20px;
}

.same-user-check {
    margin-top: 10px;
}

.same-user-check .input-label__txt {
    color: #0063A7;
    font-weight: 700;
    font-size: 15px;
}

.form-section2 {
    margin-top: 20px;
}

.time-inputs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.time-box {
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 5px !important;
    text-align: center;
    padding: 10px !important;
    font-size: 16px;
}

/* 약관 (Terms) */
.form-section3 {
    margin-top: 30px;
    margin-top: 10px; /* 중복된 마진 값 중 아래것 적용 */
    padding: 0 10px;
}

.terms-info {
    font-size: 16px;
    color: #8E8E93;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 30px;
}

.textarea-box {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    height: 270px;
    background: transparent;
    font-size: 13px;
    color: #8E8E93;
    line-height: 1.5;
    margin-bottom: 5px;
}

.textarea-box__inner {
    height: 100%;
    overflow-y: auto;
}

.textarea-box__inner::-webkit-scrollbar {
    width: 8px;
}

.textarea-box__inner::-webkit-scrollbar-track {
    background: transparent;
}

.textarea-box__inner::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 10px;
}

.check-area {
    text-align: left;
    margin: 10px 0;
    box-sizing: border-box;
}


/* =========================================
   6. 유틸리티 및 타이포그래피
   ========================================= */
.popup-text p {
    font-size: 16px;
    font-weight: 700;
    color: #0063A7;
    margin-bottom: 15px;
    text-align: left;
}

.txt-blue { color: #0063A7; }
.txt-bold { font-weight: 700; }

.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-8 { margin-bottom: 8px; }

.flex-center {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* =========================================
   7. 하단 버튼 영역
   ========================================= */
.popup-footer {
    flex-shrink: 0 !important;
    margin-top: 15px;
    padding-top: 15px !important;
    padding-bottom: 5px !important;
}

.button {
    width: 100%;
    background: #B3B3B3;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13.5px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    max-width: 185px;
    margin: 0 auto;
    display: block;
}

.quick-popup .button:hover {
    background: #F47D20;
}

/* [추가] 버튼 활성화 상태 (JS에서 클래스 추가) */
.button.btn-active {
    background: #F47D20 !important;
    color: #fff;
}

.btn-orange {
    background: #BABABA;
    color: #fff;
    border-radius: 50px;
    width: 182px;
    margin: 0 auto;
    font-size: 16px;
    font-weight: bold;
}

.btn-orange-c {
    background: #e06c15;
}

.btn-orange:hover {
    background: #e06c15;
}

.btn-gap { margin-top: 10px; }

.btn-prev { background: #999; }
.btn-prev:hover { background: #777; }


/* =========================================
   8. 완료(Success) 화면 스타일
   ========================================= */
.success-content-final {
    padding: 10px 0;
    text-align: left;
}

.success-content h2,
.success-title {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    margin-bottom: 15px;
}
.success-title {
    font-size: 18px;
    margin-top: 0;
}

.success-content p,
.success-desc {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
}
.success-desc {
    font-size: 16px;
    color: #222;
    margin-bottom: 30px;
    font-weight: 400;
}

.success-icon {
    margin-top: 20px;
}

.success-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

.success-icon-wrap img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.icon-success-lg {
    width: 100px;
    height: 100px;
}


/* =========================================
   9. QR 및 앱설치 화면 스타일
   ========================================= */
.qr-content {
    text-align: center;
    width: 100%;
}

.qr-common-header {
    margin-bottom: 20px;
    text-align: center;
}

.qr-title,
.qr-main-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}
.qr-main-title {
    font-size: 24px;
    font-weight: 800;
    color: #0063A7;
    margin: 0 0 10px 0;
}

.qr-sub-title {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    margin: 0;
    text-align: left;
}

.qr-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.qr-item {
    text-align: center;
}

.qr-item span {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
}

.qr-item img {
    width: 120px;
    height: 120px;
    border: 1px solid #808083;
    display: block;
}

.qr-bottom-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.qr-bottom-msg {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.qr-bottom-msg p {
    font-size: 16px;
    font-weight: 400;
    color: #111;
    line-height: 1.5;
}

/* [TYPE A] 웹 버전 (PC 접속 시 보임 - QR코드 중심) */
.view-type-web {
    display: block;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 30px 0;
    box-sizing: border-box;
}

.qr-os-box {
    margin-bottom: 25px;
    text-align: center;
}

.qr-os-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.qr-os-title .os-icon,
.qr-os-title .os-text {
    max-width: 100%;
    height: auto;
}

.qr-os-title p {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.qr-img-wrap img {
    max-width: 100%;
    background: #fff;
    display: block;
    margin: 0 auto;
}

/* [TYPE B] 모바일 버전 (모바일 접속 시 보임 - 버튼 중심) */
.view-type-mobile {
    display: none;
    width: 100%;
    text-align: center;
}

.app-down-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.store-btn img {
    width: auto;
}

.mobile-phone-img img {
    height: auto;
    display: block;
    margin: 0 auto;
}


/* =========================================
   10. 반응형 (Media Queries)
   ========================================= */
@media screen and (max-width: 768px) {
    .view-type-web {
        display: none;
    }

    .view-type-mobile {
        display: block;
    }

    .qr-main-title {
        font-size: 20px;
    }
}

/* =========================================
   [추가] 검색 버튼 및 결과 리스트 스타일
   ========================================= */

/* 인풋 + 버튼 가로 배치 */
.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
}

/* 인풋 스타일 재정의 (그룹 내부) */
.input-group input {
    margin-bottom: 0 !important;
    flex: 1;
}

/* 조회 버튼 스타일 (#F47D20) */
.btn-search {
    background-color: #F47D20;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    position: absolute;
    transform: translateY(-50%);
    right: 0;
    top: 50%;
}

.btn-search:hover {
    background-color: #d96815;
}

/* 검색 결과 리스트 (사진 2번 스타일) */
.search-list {
    list-style: none;
    padding: 0;
    margin: -10px 0 20px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
}

.search-list::-webkit-scrollbar {
    width: 0;
}

.search-list::-webkit-scrollbar-track {
    background: transparent;
}

.search-list::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 10px;
}

/* 리스트 아이템 */
.search-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.search-list li:last-child {
    border-bottom: none;
}

.search-list li:hover {
    background-color: #f9f9f9;
}

/* 장소명 (강조) */
.search-list li strong {
    display: block;
    font-size: 15px;
    color: #222;
    margin-bottom: 4px;
}

/* 상세 주소 (회색) */
.search-list li span {
    display: block;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

/* 검색 결과 없음 메시지 */
.search-list li.no-result {
    text-align: center;
    color: #999;
    padding: 20px;
    cursor: default;
}