@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

/* =========================
   기본
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans KR', sans-serif !important;
    background: #ffffff;
    color: #222;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* layout.css와 동일: 헤더·본문·푸터 세로 배치 (contract.css가 나중에 로드돼도 유지) */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer.footer-wrapper {
    flex-shrink: 0;
    width: 100%;
}

.mobile-contract-main {
    flex: 1 0 auto;
    width: 100%;
}

/* 모바일 컨테이너 */
.mobile-container {
    width: 40%;
    margin: 30px auto 0;
    background-color: #fff;
    position: relative;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding-bottom: 40px;
}

.mobile-container02 {
    width: 60%;
    margin: 6vh auto;
    background-color: #fff;
    position: relative;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding-bottom: 40px;
}

/* =========================
   전체 영역
========================= */
.mobile-container.contract-home {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0 20px 40px;
    background: #fff;
}

/* 로고 헤더 */
.logo-area {
    text-align: center;
    padding: 40px 20px 10px;
}

.logo-area img {
    height: 40px;
}

.logo-area .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.logo-area .logo-sub {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* =========================
   상단 카드 2개
========================= */
.contract-home-main {
    display: flex;
    justify-content: center;
    gap: 28px;
    align-items: stretch;
}

.contract-card {
    position: relative;
    width: 274px;
    border-radius: 24px;
    text-decoration: none;
    padding: 32px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background:
            radial-gradient(circle at 24% 18%, rgba(255,255,255,0.10), transparent 34%),
            linear-gradient(180deg, #3f63c2 0%, #2f4f9f 58%, #24469a 100%);
    box-shadow:
            0 12px 28px rgba(34, 61, 133, 0.16),
            0 22px 44px rgba(30, 42, 88, 0.08),
            inset 0 1px 0 rgba(255,255,255,0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contract-card:hover {
    transform: translateY(-2px);
}

.contract-card:active {
    transform: translateY(1px) scale(0.99);
}

.contract-card-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(17, 32, 80, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.contract-card-icon img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    display: block;
}

.contract-card-title {
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.contract-card-arrow {
    margin-top: auto;
    font-size: 28px;
    line-height: 1;
    color: #ffffff;
    font-weight: 400;
    opacity: 0.95;
}

/* =========================
   하단 보조 버튼
========================= */
.contract-home-sub {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.contract-card-sub {
    width: 100%;
    min-height: 112px;
    border-radius: 24px;
    background: #f8fbff;
    border: 1.5px solid rgba(48, 78, 158, 0.22);
    box-shadow: 0 8px 20px rgba(40, 56, 108, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 18px 16px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contract-card-sub:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(40, 56, 108, 0.10);
}

.contract-card-sub:active {
    transform: translateY(1px) scale(0.995);
}

.contract-card-sub-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 50%;
    background: #eaf0ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contract-card-sub-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.contract-card-sub-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contract-card-sub-text strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #304e9e;
    line-height: 1.25;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.contract-card-sub-text em {
    display: block;
    font-style: normal;
    font-size: 13px;
    color: #6d7485;
    line-height: 1.35;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

.contract-card-sub-arrow {
    font-size: 32px;
    color: #304e9e;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 4px;
}


/* 메인 페이지 */
.main-title-area {
    text-align: center;
    padding: 60px 0;
}

.main-title-area .sub-text {
    font-size: 17px;
    font-weight: 500;
    color: #7c808a;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.main-title-area .main-text {
    font-size: 30px;
    font-weight: 800;
    color: #222;
    line-height: 1.25;
    letter-spacing: -0.03em;
}


/* 페이지 타이틀 */
.page-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.03em;
    padding: 60px 20px 30px;
}
#agreementSignForm {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 20px 42px;
}

/* form 전체 여백 */
#driverInfoForm {
    padding-bottom: 40px;
}

.form-section {
    padding: 22px 20px 18px;
    margin-bottom: 16px;
}

/* 공통 섹션 박스 */
.form-section,
.input-method-area,
.input-method-hint,
.checkbox-area,
.license-image-area,
.license-info-section,
.second-driver-section,
.bottom-action {

    margin-left: auto;
    margin-right: auto;
}

.form-section,
.license-info-section {
    margin: 6px 0px 0;
    padding: 5px 15px 15px;
    background: #ffffff;

}
/* 폼 영역 */


.form-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-group label {

    width: 95px;
    font-size: 17px;
    font-weight: 600;
    color: #304e9e;
    flex-shrink: 0;
    word-break: keep-all;
}

.form-group .form-control {
    flex: 1;
    min-width: 0;
    height: 45px;
    padding: 0 16px;
    border: 1.5px solid #dfe4f2;
    border-radius: 8px;
    background: #f8fbff;
    font-size: 16px;
    color: #222;
    font-family: 'Noto Sans KR', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-group .form-control:focus {
    border-color: #304e9e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(48, 78, 158, 0.08);
}

.form-group .form-control::placeholder {
    color: #a0a8b7;
}

/* 토글 버튼 그룹 (개인/법인) */
.toggle-group {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.toggle-group .toggle-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    background: #fff;
    color: #666;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
}

.toggle-group .toggle-btn.active {
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    border-color: #304e9e;
}

/* 입력방식 버튼 (직접 정보 입력 / 면허증 촬영) */
.input-method-area {
    display: flex;
    gap: 10px;
    padding: 20px 0 0;
    margin-bottom: 0;
}

.input-method-area .btn-method {
    flex: 1;
    min-width: 0;
    height: 56px;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-method.btn-method-outline {
    background: #f8fbff;
    color: #515a6c;
    border: 1px solid #d6deef;

}

.btn-method.btn-method-dark {
    color: #fff;
    border: none;
    background-color: #7f8ca6;
}

.input-method-hint {
    padding: 10px;
    font-size: 14px;
    color: #304e9e;
    line-height: 1.45;
    font-weight: 500;
    text-align: center;
    margin: 10px 0;
}

/* 체크박스 영역 */
.checkbox-area {
    padding: 16px 18px;
    margin: 16px 0;
    background-color: #edf2ff;
}
.checkbox-area.terms-list {
    padding: 8px 18px;
}
.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}
.checkbox-area.terms-list .checkbox-item + .checkbox-item {
    border-top: 1px solid #f1f4f9;
}

.checkbox-item:first-child {
    padding-top: 0;
}

.checkbox-item:last-child {
    padding-bottom: 0;
}


.checkbox-item input[type="checkbox"] {
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #304e9e;
}

.checkbox-item label {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    word-break: keep-all;
}

.second-driver-section {
    margin-top: 6px;
    margin-bottom: 20px;
    padding: 20px 0 0;
    border-top: 1px solid #edf1f7;
}
.second-driver-section .page-title {
    padding: 12px 20px 20px;
    font-size: 22px;
}



/* 하단 버튼 */
.bottom-action {
    padding: 24px 0 0;
}

.btn-next {
    display: inline-block;
    padding: 14px 60px;
    border: 1px solid #333;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
    text-decoration: none;
}


/* 하단 버튼 그룹 (이전/다음) */
.btn-group-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.btn-group-row .btn-prev,
.btn-group-row .btn-next,
.btn-group-row .btn-sign {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-prev,
.btn-next {
    height: 58px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s ease;
    cursor: pointer;
}


.btn-prev {
    background: #f8fbff;
    color: #304e9e;
    border: 1.5px solid rgba(48, 78, 158, 0.28);
}



.btn-next {
    border: none;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(48, 78, 158, 0.18);
}

.btn-next:hover {
    transform: translateY(-1px);
}



/* select 스타일 */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image:
            linear-gradient(45deg, transparent 50%, #304e9e 50%),
            linear-gradient(135deg, #304e9e 50%, transparent 50%);
    background-position:
            calc(100% - 18px) calc(50% - 2px),
            calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

/* 면허증 촬영 이미지 영역 */
.license-image-area {
    margin-bottom: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(31, 43, 77, 0.05);
    text-align: center;
}

.license-image-area img {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid #eef2f8;
    display: block;
}

/* 제2운전자 구분선 */
.section-divider {
    display: none;
}

/* 카메라 모달 */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-overlay {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.camera-guide-text {
    color: #eef3ff;
    font-size: 14px;
    line-height: 1.6;
}

.camera-viewfinder {
    position: relative;
    width: 85%;
    max-width: 400px;
    aspect-ratio: 1.6 / 1;
    overflow: hidden;
    border-radius: 12px;
}

.camera-viewfinder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-frame {
    border: 3px solid #304e9e;
    border-radius: 14px;
}

.camera-buttons {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.camera-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
}

.camera-btn-icon {
    font-size: 24px;
    color: #fff;
}

/* =============================
   렌트 정보 페이지 - 라디오 섹션
   ============================= */
.radio-section {
    padding: 50px 24px 30px;
    border-top: 1px solid #ddd;
    margin-top: 45px
}

.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 14px;
}

.radio-label {
    width: 160px;
    font-size: 17px;
    font-weight: 600;
    color: #304e9e;
    flex-shrink: 0;
    word-break: keep-all;
}

.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    white-space: normal;
    word-break: keep-all;
}

.radio-item input[type="radio"] {
    width: 20px;
    min-width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* 슬라이더 */
.slider-section {
    margin: 20px 0px 0;
    padding: 5px 15px 15px;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.slider-group label {
    width: 95px;
    font-size: 17px;
    font-weight: 600;
    color: #304e9e;
    flex-shrink: 0;
    word-break: keep-all;
}

.slider-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    padding-top: 26px;
}

.slider-value {
    position: absolute;
    top: -11px;
    left: var(--fuel-percent, 45%);
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    color: #314fa0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    z-index: 2;
}
.slider-wrap::before,
.slider-wrap::after {
    position: absolute;
    top: 25px;
    font-size: 15px;
    font-weight: 600;
    color: #7d8698;
    z-index: 1;
}
.slider-wrap::before {
    content: '0';
    left: -15px;
}
.slider-wrap::after {
    content: '100';
    right: 15px;
}
.range-slider {
    --fuel-percent: 0%;
    width: 90%;
    height: 14px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    border-radius: 999px;
    border: 1px solid #dbe3f3;
    background:
            repeating-linear-gradient(
                    to right,
                    transparent 0,
                    transparent calc(10% - 2px),
                    rgba(48, 78, 158, 0.18) calc(10% - 2px),
                    rgba(48, 78, 158, 0.18) 10%
            ),
            linear-gradient(
                    to right,
                    #304e9e 0%,
                    #3f63c2 var(--fuel-percent),
                    #eef2f8 var(--fuel-percent),
                    #eef2f8 100%
            );
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: #33bcca;
    box-shadow:
            0 4px 12px rgb(0 143 179 / 60%),
            0 0 0 1px rgb(52 231 255 / 15%);
    cursor: pointer;
    margin-top: -1px;
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: #304e9e;
    box-shadow:
            0 4px 12px rgba(48, 78, 158, 0.28),
            0 0 0 1px rgba(48, 78, 158, 0.15);
    cursor: pointer;
}

.range-slider::-moz-range-progress {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(to right, #304e9e 0%, #3f63c2 100%);
}

.range-slider::-moz-range-track {
    height: 14px;
    border-radius: 999px;
    border: 1px solid #dbe3f3;
    background: #eef2f8;
}

/* =============================
   기타 정보 페이지 - 외관 촬영 업로드
   ============================= */

.exterior-upload-section {
    padding: 20px 24px 0;
}

.exterior-upload-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
}

.exterior-upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.photo-add-btn {
    aspect-ratio: 1 / 1;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s;
    gap: 4px;
}

.photo-add-btn:hover {
    border-color: #304e9e;
}

.photo-add-icon {
    font-size: 28px;
    font-weight: 300;
    color: #bbb;
    line-height: 1;
}

.photo-add-text {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.photo-upload-item {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    background: #f5f5f5;
}

.photo-upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.photo-remove-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* =============================
   이용동의 및 서명 페이지
   ============================= */

/* textarea */
.textarea-group {
    padding: 0;
}

.textarea-label {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.form-textarea {
    width: 100%;
    min-height: 132px;
    padding: 16px 18px;
    border: 1.5px solid #dfe4f2;
    border-radius: 8px;
    background: #f8fbff;
    font-size: 15px;
    line-height: 1.6;
    color: #222;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.form-textarea:focus {
    border-color: #304e9e;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(48, 78, 158, 0.08);
}

.form-textarea::placeholder {
    color: #a0a8b7;
}

.textarea-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #7d8698;
    line-height: 1.45;
}

/* 약관 체크 리스트 */
.terms-list {
    border-top: 1px solid #eee;
}

.terms-list .checkbox-item {
    padding: 12px 0;
}

.terms-list .checkbox-item label {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 서명 버튼 */
.btn-sign {
    display: inline-block;
    flex: 1;
    padding: 14px 0;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    background: #333;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
    text-align: center;
}

.btn-sign:hover {
    background: #555;
}

/* 서명 링크 발송 플로우 */
.btn-sign-link-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border: 2px solid #555;
    border-radius: 14px;
    background: #555;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    white-space: nowrap;
}

.btn-sign-link-send:hover {
    background: #444;
    border-color: #444;
}

.btn-sign-link-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border: 2px solid #333;
    border-radius: 14px;
    background: #fff;
    color: #111;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    white-space: nowrap;
}

.agreement-sign-link-btn {
    margin-top: 12px;
}

.sign-link-request-wrap {
    padding: 20px 24px 0;
}

.sign-link-input {
    width: 100%;
    height: 64px;
    font-size: 32px;
    text-align: center;
}

.sign-link-request-help {
    margin-top: 84px;
    font-size: 18px;
    color: #777;
    line-height: 1.45;
}

.sign-link-request-actions {
    padding: 48px 24px 40px;
}

.sign-link-complete-wrap {
    padding: 40px 24px 12px;
    text-align: center;
}

.sign-link-complete-title {
    font-size: 22px;
    font-weight: 800;
    color: #1f2f57;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.35;
    padding: 0 8px;
}

.sign-link-complete-desc {
    font-size: 15px;
    color: #5c6780;
    line-height: 1.55;
    margin-bottom: 20px;
    word-break: keep-all;
}

.sign-link-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #304e9e;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.sign-link-status-badge.done {
    background: #e8f5e9;
    color: #2e7d32;
}

.sign-link-action-btn {
    width: 100%;
    height: 52px;
    border: 1.5px solid #d4ddef;
    border-radius: 14px;
    background: #fff;
    color: #304e9e;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sign-link-action-btn:hover {
    background: #f7faff;
    border-color: #304e9e;
}

.sign-link-complete-bottom-actions {
    padding: 62px 24px 40px;
}

.sign-link-complete-bottom-actions .btn-group-row {
    gap: 14px;
    align-items: stretch;
}

.sign-link-terms-hint {
    padding: 8px 20px 28px;
    text-align: center;
}

.sign-link-terms-hint-btn {
    border: 0;
    background: none;
    color: #304e9e;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
}

.defect-terms-quickbar {
    margin: 8px 16px 24px;
    padding: 12px 12px 14px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e7edf8;
}

.defect-terms-quickbar-label {
    font-size: 12px;
    font-weight: 800;
    color: #7a86a2;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    text-align: center;
}

.defect-terms-quickbar-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.defect-terms-chip {
    border: 1px solid rgba(48, 78, 158, 0.25);
    border-radius: 999px;
    background: #fff;
    color: #304e9e;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
}

.defect-terms-chip:hover {
    background: #eef4ff;
}

/* 고객 전자서명 페이지 */
.customer-sign-page .page-title {
    font-size: 17px;
    font-weight: 800;
    color: #1f2f57;
    padding: 28px 16px 12px;
    letter-spacing: -0.03em;
    background: #fff;
    margin: 0;
}

.customer-sign-top {
    text-align: center;
    padding: 18px 20px 18px;
}

.customer-sign-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    word-break: keep-all;
    letter-spacing: -0.03em;
}

.customer-sign-sub-title {
    margin-top: 12px;
    font-size: 15px;
    color: #5c6780;
    word-break: keep-all;
    line-height: 1.5;
}

.customer-sign-preview-btn {
    margin-top: 20px;
    width: 100%;
    height: 70px;
    border: 1.5px solid rgba(48, 78, 158, 0.35);
    border-radius: 14px;
    background: #f8fbff;
    color: #304e9e;
    font-size: 21px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.customer-sign-preview-btn:hover {
    background: #eef4ff;
    border-color: #304e9e;
}

.customer-sign-divider {
    height: 2px;
    background: #d4d4d4;
    margin: 18px 0 0;
}

.customer-sign-consent-wrap {
    padding: 18px 24px 34px;
}

.customer-sign-agree-all-btn {
    width: 100%;
    height: 64px;
    border: 1.5px solid rgba(48, 78, 158, 0.22);
    border-radius: 18px;
    background: #f8fbff;
    color: #304e9e;
    font-size: 22px;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.customer-sign-agree-all-btn:hover {
    background: #eef4ff;
}

.customer-sign-terms-list {
    margin-top: 20px;
}

.customer-sign-term-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 2px;
}

.customer-sign-term-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.customer-sign-term-item input[type="checkbox"] {
    width: 38px;
    height: 38px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: #304e9e;
}

.customer-sign-term-label span {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    color: #111;
    line-height: 1.4;
    word-break: keep-all;
}

.customer-sign-term-view-btn {
    flex-shrink: 0;
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(48, 78, 158, 0.35);
    border-radius: 999px;
    background: #f8fbff;
    color: #304e9e;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
}

.customer-sign-term-view-btn:hover {
    background: #eef4ff;
}

.customer-sign-submit-btn {
    margin-top: 20px;
    width: 100%;
    height: 72px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(48, 78, 158, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.customer-sign-submit-btn:hover {
    transform: translateY(-1px);
}

/* 서명 모달 */
.sign-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.sign-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1;
    overflow: hidden;
}

.sign-modal-close {
    position: absolute;
    top: -40px;
    right: -4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign-modal-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.sign-canvas-wrap {
    width: 100%;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    touch-action: none;
}

.sign-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.sign-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-sign-reset {
    flex: 1;
    padding: 14px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
}

.btn-sign-reset:hover {
    background: #f5f5f5;
}

.btn-sign-complete {
    flex: 2;
    padding: 14px 0;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: #555;
    color: #fff;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
}

.btn-sign-complete:hover {
    background: #333;
}

/* =============================
   인라인 유효성 에러 스타일
   ============================= */
.field-error {
    border-color: #e74c3c !important;
}

.field-error:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

.field-error-msg {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 500;
    margin-top: -12px;
    margin-bottom: 14px;
    line-height: 1.4;
    animation: errorFadeIn 0.25s ease;
}

.radio-error-msg {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 500;
    padding-left: 110px;
    margin-top: -12px;
    margin-bottom: 14px;
    line-height: 1.4;
    animation: errorFadeIn 0.25s ease;
}

.section-error-msg {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 0 10px;
    line-height: 1.2;
    animation: errorFadeIn 0.25s ease;
    text-align: center;
    padding-top: 20px;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* select 드롭다운 화살표 */
select.form-control {
    appearance: auto;
    -webkit-appearance: auto;
    background: #fff;
}

/* =============================
   계약 완료 페이지
   ============================= */

/* 상단 액션 버튼 바 */
.complete-action-bar {
    display: flex;
    gap: 8px;
    padding: 16px 16px 10px;
    background: #333;
}

.btn-action {
    flex: 1;
    min-width: 0;
    padding: 20px 6px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-action-dark {
    background: #304e9e;
    color: #fff;
    border: 0;
}


.btn-action-outline {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-action-outline:hover {
    background: #f5f5f5;
}

.btn-action-orange {
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    border: 1px solid #304e9e;
}

.btn-action-orange:hover {
    background: #28458f;
    border-color: #28458f;
}

/* 비밀번호 안내 */
.complete-password-hint {
    padding: 20px 16px;
    font-size: 15px;
    color: #666;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
}

.complete-password-hint strong {
    color: #3F51B5;
}

/* PDF 미리보기 */
.pdf-preview-area {
    width: 100%;
    flex: 1;
}

.pdf-mobile-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    min-height: 300px;
    background: #fafafa;
}

.pdf-fallback-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
    line-height: 1.6;
    word-break: keep-all;
}

.btn-pdf-open {
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 10px 20px rgba(48, 78, 158, 0.18);
}

.btn-pdf-open:hover {
    background: #28458f;
}

.pdf-preview-frame {
    width: 100%;
    min-height: calc(100vh - 120px);
    border: none;
    background: #e0e0e0;
}

/* 외관사진 모달 */
.exterior-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exterior-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.exterior-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1;
    overflow: hidden;
}

.exterior-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.exterior-photo-item {
    aspect-ratio: 4 / 3;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    background: #fafafa;
    transition: border-color 0.2s;
}

.exterior-photo-item:hover {
    border-color: #304e9e;
}

.exterior-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    font-size: 14px;
    font-weight: 600;
    color: #bbb;
}

.exterior-no-photo {
    text-align: center;
    font-size: 14px;
    color: #bbb;
    padding: 20px 0;
}

/* 외관사진 리스트 (완료 페이지 모달) */
.exterior-photo-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
}

.exterior-list-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #f5f5f5;
}

.exterior-list-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.exterior-list-num {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* =============================
   비대면 계약서 조회 (Viewer)
   ============================= */

.viewer-results-title {
    padding: 20px 24px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-top: 8px solid #f5f5f5;
}

.contract-list {
    padding: 0 24px 20px;
}



.contract-card-info {
    flex: 1;
    min-width: 0;
}



.contract-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.contract-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-signed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-complete {
    background: #e3f2fd;
    color: #1565c0;
}

.status-returned {
    background: #e0f2f1;
    color: #00695c;
}

.status-cancelled {
    background: #fce4ec;
    color: #c62828;
}

.status-default {
    background: #f5f5f5;
    color: #666;
}

.contract-card-date {
    font-size: 13px;
    color: #999;
}

.contract-card-driver {
    font-size: 13px;
    color: #666;
}

.contract-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 12px;
    flex-shrink: 0;
}

.btn-card-action {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-card-view {
    background: #333;
    color: #fff;
}

.btn-card-view:hover {
    background: #555;
}

.btn-card-download {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.btn-card-download:hover {
    background: #f5f5f5;
}

.contract-card-no-pdf {
    font-size: 12px;
    color: #bbb;
}

.viewer-no-results {
    text-align: center;
    padding: 40px 24px;
    font-size: 15px;
    color: #999;
}

/* 렌트카 비대면 계약서 요청 페이지 */
.request-form-wrap {
    padding: 0 20px;
    padding-bottom: 18px;
}

.request-label {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #5c5f67;
    margin-bottom: 10px;
}

.request-input {
    width: 80%;
    height: 55px;
    border-radius: 8px !important;
    border: 1.5px solid #dfe4f2;
    background: #f8fbff;
    text-align: center;
    font-size: 20px;
    transition: all 0.2s ease;
}
.request-input:focus {
    border-color: #304e9e;
    background: #ffffff;
    outline: none;
}
.request-help-text {
        padding: 10px 4px 0;
        text-align: center;
        font-size: 13px;
        color: #5c5f67;
        line-height: 1.5;
        font-weight: 600;
}

.request-actions {
    padding: 14px 0 0;
    text-align: center;
}

.btn-request-send {
    width: 80%;
    height: 60px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-request-send:hover {
    transform: translateY(-1px);
}

.btn-request-send:active {
    transform: scale(0.98);
}
.request-direct-wrap {
    padding: 18px;
}

.btn-request-direct {
    width: 80%;
    height: 60px;
    border-radius: 8px;
    border: 1.5px solid rgba(48, 78, 158, 0.28);
    background: #f8fbff;
    color: #304e9e;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    line-height: 46px;
}

.btn-request-direct:hover {
    background: #eef4ff;
}

/* 고객 진입 페이지 */
.customer-entry-intro {
    text-align: center;
    padding: 10px 24px 24px;
}

.customer-entry-store {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
}

.customer-entry-consent-box {
    margin: 0px 12px 0;
    border: 1px solid #d8d8d8;
    background: #f7f7f7;
    padding: 24px 18px 16px;
}

.customer-entry-consent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    flex-direction: column;
}

.customer-entry-check-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #222;
    line-height: 1.35;
}

.customer-entry-check-wrap input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin: 0;
}

.customer-entry-policy-link {
    font-size: 15px;
    color: #304e9e;
    text-decoration: underline;
    white-space: nowrap;
    text-align: right;
    width: 100%;
}

button.customer-entry-policy-link {
    border: 0;
    padding: 0;
    margin: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.customer-entry-all-agree {
    margin-top: 28px;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 31px;
    background: #9dacc0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
}

.customer-entry-all-agree:hover {
    background: #eef4ff;
}

.customer-entry-guide {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    color: #333;
}

.customer-entry-action {
    padding: 10px 24px 40px;
}

.customer-entry-start-btn {
    width: 100%;
    height: 60px;
    border: 2px solid #304e9e;
    border-radius: 8px;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(48, 78, 158, 0.18);
}

.customer-entry-start-btn:hover:not(:disabled) {
    background: #28458f;
    border-color: #28458f;
}

.customer-entry-start-btn:disabled {
    background: #304e9e;
    color: #fff;
    opacity: 1;
    cursor: not-allowed;
    border: 0;
}

/* 고객 작성 완료 페이지 */
.customer-complete-wrap {
    padding: 32px 20px 44px;
}

.customer-complete-title {
    font-size: 28px;
    font-weight: 800;
    color: #1f2f57;
    line-height: 1.28;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.customer-complete-desc {
    margin-top: 14px;
    font-size: 16px;
    color: #5c6780;
    line-height: 1.65;
    letter-spacing: -0.02em;
    word-break: keep-all;
}
.customer-complete-store-box {
    margin-top: 28px;
    padding: 18px 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e9eef8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.customer-complete-store-label {
    font-size: 13px;
    font-weight: 700;
    color: #7a86a2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.customer-complete-store {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.customer-complete-action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
}

.customer-complete-call-btn,
.customer-preview-btn {
    width: 100%;
    height: 58px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s ease;
    cursor: pointer;
}

.customer-complete-call-btn {
    border: 0;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(48, 78, 158, 0.22);
}

.customer-complete-call-btn:hover {
    transform: translateY(-1px);
}

.customer-complete-call-btn:active {
    transform: translateY(0);
}

.customer-preview-btn {
    border: 1.5px solid #d4ddef;
    background: #ffffff;
    color: #304e9e;
}

.customer-preview-btn:hover {
    background: #f7faff;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .customer-complete-wrap {
        padding: 20px 16px 36px;
    }

    .customer-complete-card {
        padding: 28px 16px 18px;
        border-radius: 24px;
    }



    .customer-complete-title {
        font-size: 24px;
    }

    .customer-complete-desc {
        font-size: 15px;
        line-height: 1.6;
    }

    .customer-complete-store {
        font-size: 18px;
    }

    .customer-complete-call-btn,
    .customer-preview-btn {
        height: 54px;
        font-size: 16px;
        border-radius: 14px;
    }
}
.customer-complete-call-btn {
    margin-top: 24px;
    width: 100%;
    height: 84px;
    border: 2px solid #304e9e;
    border-radius: 16px;
    background: #eef4ff;
    color: #304e9e;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
}

.customer-complete-result-wrap {
    padding-top: 24px;
}
.customer-complete-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf8;
    border-radius: 28px;
    padding: 34px 20px 22px;
    text-align: center;

}
.customer-complete-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4f76dc 0%, #304e9e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(48, 78, 158, 0.24);
}

.customer-complete-icon svg {
    width: 30px;
    height: 30px;
}

.customer-complete-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 30px;
    padding: 0 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #edf3ff;
    color: #304e9e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}



.customer-complete-action-list {
    margin-top: 4px;
}

.customer-complete-result-wrap .customer-complete-call-btn {
    margin-top: 14px;
    height: 60px;
    border: 0;
    border-radius: 14px;
    background: #304e9e;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
}

/* 공통 섹션 카드 */
.request-form-wrap,
.request-direct-wrap,
.request-waiting-wrap {
    margin: 0 20px 30px;
    padding: 22px 18px;
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 4px;
    text-align: center;

}
/* 요청 대기 목록 */
.request-waiting-wrap {
    padding: 10px 20px 40px;
}

.request-waiting-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.request-waiting-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.request-waiting-empty {
    font-size: 14px;
    color: #888;
    padding: 8px 2px 0;
}

.request-waiting-card {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eef1f7;
    padding: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

.request-waiting-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.request-waiting-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eaf0ff;
    color: #304e9e;
    font-size: 12px;
    font-weight: 700;
}

.request-waiting-updated {
    font-size: 12px;
    color: #999;
}

.request-waiting-contact,
.request-waiting-store {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.request-waiting-store {
    margin-top: 2px;
}

.request-waiting-btn {
    margin-top: 10px;
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #304e9e;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* 렌트 정보 - 장소 검색 */
.place-group {
    margin-bottom: 14px;
}

.place-form-group {
    align-items: flex-start;
}

.place-input-wrap {
    flex: 1;
    min-width: 0;
}

.place-form-group .form-control {
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Noto Sans KR', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.place-form-group .form-control:focus {
    border-color: #304e9e;
}

.place-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.place-search-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.place-main-input {
    flex: 1;
}

.place-main-input.form-control {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    cursor: pointer;
}

.place-search-btn {
    min-width: 76px;
    height: 45px;
    border: 0;
    border-radius: 8px;
    background: #7f8ca6;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    padding: 0 14px;
}


.place-detail-text {
    margin-top: 8px;
    min-height: 20px;
    font-size: 14px;
    color: #777;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.place-detail-input {
    margin-top: 8px;
    display: block;
    width: 100%;
}

.place-detail-input.form-control {
    background: #fff;
}

.total-fee-input {
    text-align: right;
}

.place-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.place-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.place-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 40%);
    max-height: 86vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
}

.place-modal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.place-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.place-modal-close {
    border: 0;
    background: transparent;
    color: #555;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 25px;
}

.place-modal-header {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.place-modal-header input{
    width: 80%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
        height: 46px;
    }

.place-modal-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
    background: #fcfcfc;
}

.place-current-btn {
    border: 1px solid #3f63c2;
    background: #f0f4ff;
    color: #3f63c2;
    border-radius: 8px;
    height: 50px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    width: 100%;
}

.place-current-btn:hover {
    background: #eef4ff;
}

.place-status-text {
    flex: 1;
    min-width: 0;
    text-align: right;
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-result-list {
    flex: 1;
    overflow-y: auto;
    max-height: 420px;
}

.place-result-item {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.place-result-item:hover {
    background: #fff8f2;
}

.place-result-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.place-result-address {
    margin-top: 3px;
    font-size: 15px;
    color: #777;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.place-empty {
    padding: 18px 12px;
    font-size: 16px;
    color: #555;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 480px) {
    .place-modal-content {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 32px);
    }
}

/* 렌트 정보 - 라디오 + 직접입력 */
.radio-item-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.radio-custom-input {
    width: 110px !important;
    height: 40px;
    padding: 8px 10px;
    text-align: center;
    font-size: 16px;
}

.radio-custom-unit {
    font-size: 16px;
    color: #555;
}

/* 렌트 정보 - 종합 보험 입력 */
.insurance-subtitle {
    margin: 45px 0 24px;
    font-size: 20px;
    font-weight: 700;
    padding: 10px;
    background-color: #e8f0ff;
    text-align: center;
    border-radius: 34px;
}

.insurance-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.insurance-text-input {
    flex: 1;
    min-width: 0;
    text-align: right;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-family: 'Noto Sans KR', sans-serif;
    outline: none;
    height: 44px;
    line-height: 20px;
    background: #fff;
}

.insurance-text-input:focus {
    border-color: #304e9e;
}

.insurance-unit {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
}

.ocr-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ocr-loading-overlay.active {
    display: flex;
}

.ocr-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: ocrSpin 0.8s linear infinite;
}

.ocr-loading-text {
    color: #fff;
    font-size: 15px;
    margin-top: 16px;
    text-align: center;
    line-height: 1.5;
}

@keyframes ocrSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================
   중고차 매매 계약서
   ============================= */

.used-contract-topbar {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.03em;
    padding: 60px 20px 30px;
}

.used-contract-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid #dfe4f2;
    border-radius: 12px;
    background: #ffffff;
    color: #304e9e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(31, 43, 77, 0.05);
    transition: all 0.2s ease;
    display: none;
}
.used-contract-back:hover {
    background: #f8fbff;
}

.used-contract-subtitle {
    margin: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.used-contract-title {
    margin: 0;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: #222;
    line-height: 1.2;
    letter-spacing: -0.03em;
}



.used-start-area {
   padding: 20px 50px 100px;
}

.used-primary-btn {
    width: 100%;
    height: 72px;
    border: 0;
    border-radius: 16px;
    background: #304e9e;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
}


.used-search-block {
    margin-bottom: 18px;
    padding: 10px 20px 18px;
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(31, 43, 77, 0.05);
}

.used-label {
    width: 120px;
    font-size: 16px;
    font-weight: 600;
    color: #304e9e;
    flex-shrink: 0;
    word-break: keep-all;
    line-height: 20px;
    margin-bottom: 12px;
}

.used-search-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.used-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #dee3ef;
    border-radius: 8px;
    background: #f8fbff;
    font-size: 15px;
    color: #222;
    font-family: 'Noto Sans KR', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.used-input:focus {
    border-color: #304e9e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(48, 78, 158, 0.08);
}

.used-search-btn {
    min-width: 90px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(48, 78, 158, 0.16);
    transition: all 0.2s ease;
}
.used-input-right{
    text-align: right;
}
.used-search-btn:hover {
    transform: translateY(-1px);
}

.used-store-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    border-top: none;
}

.used-store-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px;
    border: 1px solid #dee3eb;
    border-radius: 8px;
    background: #ffffff;

    transition: all 0.2s ease;
}

.used-store-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 43, 77, 0.07);
}


.used-store-name {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    word-break: keep-all;
}

.used-store-select-btn {
    width: 110px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: #7f8ca6;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.used-store-select-btn:hover {
    background: #28458f;
}

.used-store-pagination {
    margin-top: 20px;
    padding: 16px 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.used-store-pagination-summary {
    font-size: 14px;
    font-weight: 600;
    color: #5a6578;
}

.used-store-pagination-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.used-store-page-btn {
    min-width: 100px;
    height: 44px;
    padding: 0 18px;
    border: 1.5px solid rgba(48, 78, 158, 0.35);
    border-radius: 12px;
    background: #f8fbff;
    color: #304e9e;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.used-store-page-btn:hover:not(:disabled) {
    background: #e8f0ff;
}

.used-store-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.used-empty {
    padding: 42px 18px;
    border: 1px dashed #d7deeb;
    border-radius: 18px;
    background: #fbfcff;
    text-align: center;
    font-size: 15px;
    color: #7d8698;
}

.used-form {
    margin: 20px 0px 0;
    padding: 5px 15px 15px;
    background: #ffffff;
}

.used-form-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.used-form-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

}
.used-form-row:last-child {
    margin-bottom: 0;
}
.used-inline-link {
    border: 1px solid #dfe4f2;
    background: transparent;
    color: #5f8fcf;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    padding: 6px 15px;
    border-radius: 40px;
}

/* 정보 직접 입력: 업체 고정(잠금) vs 직접 수정(활성) */
.used-manual-input-toggle:not(.used-manual-input-active) {
    background: #f0f3f9;
    border-color: #d0d8e8;
    color: #5a6578;
}

.used-manual-input-toggle.used-manual-input-active {
    background: #304e9e;
    border-color: #304e9e;
    color: #fff;
}

/* 업체 연동 필드: 잠금(회색) vs 직접 입력(밝은 배경·강조 테두리) */
.used-input.used-readonly[disabled],
.used-input.used-readonly:disabled {
    background: #fafbff;

    color: #2a2f3a;
    -webkit-text-fill-color: #5a6172;
    opacity: 1;
}

.used-input.used-input-manual-mode:not(:disabled) {
    background: #fff;
    border-color: #7a9ad4;
    color: #1a1f2e;
}

.used-input.used-input-manual-mode:not(:disabled):focus {
    border-color: #304e9e;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(48, 78, 158, 0.12);
}

.used-address-row {
    display: flex;
    gap: 10px;
}
.used-address-row .used-input {
    flex: 1;
}
.used-address-btn {
    min-width: 76px;
    height: 45px;
    border: 0;
    border-radius: 8px;
    background: #7f8ca6;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    padding: 0 14px;
}

.used-address-btn:hover {
    background: #6f7c95;
}

.used-help-link-wrap {
    margin-top: 6px;
    margin-bottom: 18px;
    text-align: right;
}

.used-error-text {
   font-size: 13px;
       color: #e53935;
       line-height: 1.35;
       font-weight: 500;
       padding-right: 10%;
       text-align: right;
}

.used-section-divider {
    height: 1px;
    background: #edf1f7;
    margin: 20px 0 22px;
}

.used-section-title {
    margin: 0px 0 24px;
    font-size: 18px;
    font-weight: 700;
    padding: 10px;
    background-color: #e8f0ff;
    text-align: center;
    border-radius: 34px;
}

.used-section-hint {
    margin: -16px 0 18px;
    padding: 0 8px;
    font-size: 13px;
    color: #5a6578;
    line-height: 1.45;
    font-weight: 500;
}


.used-btn-prev,
.used-btn-next {
    flex: 1;
    height: 58px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.used-btn-prev {
    border: 1.5px solid rgba(48, 78, 158, 0.28);
    background: #f8fbff;
    color: #304e9e;
}


.used-btn-prev:hover {
    background: #eef4ff;
}



.used-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.used-custom-wrap {
    margin-top: 8px;
    margin-left: 14px;
    padding-left: 10px;
    border-left: 2px solid #ececec;
}

.used-radio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.used-radio-label {
    margin-bottom: 0;
}

.used-radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    padding-top: 2px;
}

.used-radio-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.used-radio-item input[type="radio"] {
    width: 20px;
    min-width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}
.used-conditional-section {
    margin: 10px 0px 15px;
    margin-left: 14px;
    padding-left: 10px;
    border-left: 2px solid #ececec;
}

.used-inline-top {
    margin-top: 8px;
}

.used-radio-help {
       margin: 5px 0 10px;
       font-size: 12px;
       color: #666;
       line-height: 1;
       word-break: keep-all;
       letter-spacing: -0.5px;
}


.used-conditional-section .used-radio-item,
.used-custom-wrap .used-radio-item {
    font-size: 14px;
}

.used-conditional-section .used-radio-help,
.used-custom-wrap .used-radio-help {
    font-size: 12px;
}

.used-radio-vertical-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.used-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    color: #333;
    line-height: 1.45;
}

.used-doc-row {
    margin-bottom: 14px;
}

.used-doc-name {
    width: 160px;
    font-size: 17px;
    font-weight: 600;
    color: #304e9e;
    flex-shrink: 0;
    word-break: keep-all;
}

.used-doc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.used-doc-upload-btn {
    min-width: 76px;
    height: 45px;
    border: 0;
    border-radius: 8px;
    background: #7f8ca6;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    padding: 0 14px;
}

.used-doc-check-label {
       border-radius: 8px;
       background: #ffffff;
       color: #304e9e;
       font-size: 14px;
       font-weight: 600;
       font-family: 'Noto Sans KR', sans-serif;
       cursor: pointer;
       padding: 8px 14px;
       border: 1px solid #d6dbea;
       display: flex;
       align-items: center;
       justify-content: center;
       margin: 0;
}

.used-doc-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3a5bb4;
     margin-right: 3px;
}

.used-doc-file-name {
    margin: 7px 0 14px;
    font-size: 15px;
    color: #304e9e;
    word-break: break-all;
    display: block;
    padding-right: 10%;
    text-align: right;
    font-weight: 700;
    min-height: 4px;
}

/* 필수 문서: 메시지는 액션 줄 다음 줄, 가운데 정렬 */
.used-doc-actions > .used-error-text {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.used-doc-bulk-row {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.used-doc-bulk-confirm-btn {
    width: 100%;
    max-width: 320px;
    height: 48px;
    border: 1px solid #3a5bb4;
    border-radius: 8px;
    background: #fff;
    color: #304e9e;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
}

.used-doc-bulk-confirm-btn:active {
    background: #eef2fb;
}

.used-doc-help {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

.used-disclaimer-text {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.used-disclaimer-text p {
    margin: 0 0 8px;
}

.used-flat-indent {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: 0 !important;
}

.used-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
}



.used-amount-unit {
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}

.used-interest-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    flex-wrap: wrap;
}

.used-interest-input {
    width: 76px;
    height: 40px;
    border: 1px solid #cfcfcf;
    background: #fff;
    text-align: center;
    font-size: 15px;
    color: #333;
    outline: none;
}



.used-company-sign-top {
    position: relative;
    padding-top: 8px;
}

.used-company-sign-close {
    position: absolute;
    right: 0;
    top: 0;
    border: 0;
    background: transparent;
    font-size: 34px;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.used-company-sign-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    color: #111;
    margin: 44px 0 18px;
}

.used-company-sign-tabs {
    display: flex;
    border: 1px solid #dcdcdc;
    border-bottom: 0;
}

.used-company-sign-tab {
    flex: 1;
    height: 54px;
    border: 0;
    border-right: 1px solid #dcdcdc;
    background: #f7f7f7;
    color: #222;
    font-size: 16px;
}

.used-company-sign-tab:last-child {
    border-right: 0;
}

.used-company-sign-tab.active {
    background: #304e9e;
    font-weight: 700;
    color: #fff;
}

.used-company-sign-canvas-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 22px 22px;
    background: #ffffff;
    border: 1px solid #edf1f7;
    box-shadow: 0 10px 24px rgba(31, 43, 77, 0.05);
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 24px;
    border-bottom-left-radius: 24px;
}

.used-company-sign-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.used-sign-link-help {
    margin-top: 38px;
}

.used-sign-complete-wrap {
    text-align: center;
    padding-top: 22px;
}

.used-sign-complete-title {
    font-size: 22px;
    font-weight: 800;
    color: #1f2f57;
    letter-spacing: -0.03em;
    line-height: 1.35;
    padding: 0 8px;
}

.used-sign-complete-desc {
    margin-top: 12px;
    font-size: 15px;
    color: #5c6780;
    line-height: 1.55;
    padding: 0 12px;
    word-break: keep-all;
}

.used-sign-complete-action {
    width: 100%;
    height: 52px;
    margin-top: 10px;
    border: 1.5px solid #d4ddef;
    border-radius: 14px;
    background: #fff;
    color: #304e9e;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.used-sign-complete-action:hover {
    background: #f7faff;
    border-color: #304e9e;
}

.used-customer-complete-wrap {
    padding: 26px 22px 34px;
}


/* 보기 버튼 */
.btn-term-view {
    flex-shrink: 0;
    min-width: 54px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #dfe4f2;
    border-radius: 999px;
    line-height: 30px;
    text-align: center;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-term-view:hover {
    background: #edf3ff;
    border-color: rgba(48, 78, 158, 0.35);
}
@media (max-width: 1024px){

    .mobile-container{    width: 90%;  }

}
/* =========================
   640px 이하
   한 줄 버튼형으로 변경
========================= */
@media (max-width: 768px) {

 .used-primary-btn{  height: 62px; font-size: 20px; }
 .used-start-area{padding: 20px 20px 50px; }
    .mobile-container.contract-home {
        max-width: 480px;
        padding: 0 16px 32px;
    }

    .main-title-area {
        padding: 36px 0;
    }

    .main-title-area .sub-text {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .main-title-area .main-text {
        font-size: 24px;
        line-height: 1.25;
    }

    .contract-home-main {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .contract-card {
        width: 100%;
        border-radius: 18px;
        padding: 14px 16px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        box-shadow:
                0 10px 24px rgba(34, 61, 133, 0.14),
                0 14px 30px rgba(30, 42, 88, 0.07),
                inset 0 1px 0 rgba(255,255,255,0.10);
    }

    .contract-card-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
        margin-bottom: 0;
        box-shadow: none;
    }

    .contract-card-icon img {
        width: 30px;
        height: 30px;
    }

    .contract-card-title {
        flex: 1;
        min-width: 0;
        text-align: left;
        font-size: 16px;
        line-height: 1.35;
    }

    .contract-card-arrow {
        margin-top: 0;
        margin-left: auto;
        font-size: 24px;
        line-height: 1;
        flex-shrink: 0;
    }

    .contract-home-sub {
        margin-top: 12px;
    }

    .contract-card-sub {
        width: 100%;
        min-height: 88px;
        border-radius: 18px;
        padding: 14px 16px;
        gap: 14px;
    }

    .contract-card-sub-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }

    .contract-card-sub-icon img {
        width: 28px;
        height: 28px;
    }

    .contract-card-sub-text strong {
        font-size: 16px;
        line-height: 1.25;
    }

    .contract-card-sub-text em {
        font-size: 11px;
        line-height: 1.3;
    }

    .contract-card-sub-arrow {
        font-size: 24px;
    }



    /* =========================
         request.html 모바일
    ========================= */
    .page-title {
        font-size: 16px;
        padding: 10px 16px 10px;
        background: #ecf1ff;
        color: #304e9e;
        margin: 20px 0 30px;
    }
    .form-section,
    .input-method-area,
    .input-method-hint,
    .checkbox-area,
    .license-image-area,
    .license-info-section,
    .second-driver-section,
    .bottom-action {
        width: calc(100% - 20px);
    }

    .input-method-hint { font-size: 13px; word-break: keep-all;}
    .form-section,
    .license-info-section,
    .checkbox-area {
       padding: 6px 10px;
        width: 100%;
    }

    .form-group{      gap: 6px; }

    .form-group label {
        width: 25%;
        min-width: 0;
        font-size: 15px;
    }
.slider-group label{ font-size: 15px;}
    .form-group .form-control {
        height: 40px;
        font-size: 15px;
        min-height: 40px;
    }
    .radio-section{padding: 10px 24px 20px; margin-top: 16px;  }

    .radio-label{  width: 100px;  font-size: 15px;}
    .radio-item {font-size: 15px;}
    .input-method-area {
        gap: 8px;
        padding: 0;
        margin-top: 10px;
    }
    .radio-group{
        margin-bottom: 0;
        border-bottom: 1px solid #ddd;
        padding: 20px 0px;
        gap: 5px;
            }

     .insurance-unit {font-size: 15px; }
     .insurance-text-input {font-size: 16px; height: 40px; }


    .input-method-area .btn-method {
             height: 45px;
             border-radius: 8px;

    }

    .checkbox-item label {
        font-size: 14px;
        line-height: 1.2;
    }

    .second-driver-section .page-title {
        font-size: 20px;
        padding: 10px 16px 18px;
    }

    .btn-prev,
    .btn-next {
        height: 50px;
        font-size: 15px;
    }

    .request-form-wrap,
    .request-direct-wrap,
    .request-waiting-wrap {
        margin: 0 16px 14px;
        padding: 18px 10px;
        border-radius: 18px;
    }

    .request-input {
              height: 45px;
              font-size: 16px;
              width: 90%;
    }

    .btn-request-send,
    .btn-request-direct {
                height: 50px;
                font-size: 16px;
                border-radius: 8px;
                width: 90%;
    }

    .request-waiting-card {
        padding: 12px;
        border-radius: 12px;
    }
    .used-contract-title{ font-size: 22px;
        padding: 36px 16px 24px; }
    .used-contract-topbar{ font-size: 22px;
        padding: 36px 16px 24px;}
    .used-form-row{  gap: 6px;  display: flex; flex-wrap: wrap;}
    .used-label{
        width: 28%;
        min-width: 0;
        font-size: 14px;
        }

.used-error-text{
margin-bottom: 10px;font-size: 13px;line-height: 0.7rem; font-weight: 500; width: 100%;
  text-align: left;
}
    .mobile-container02 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-bottom: 28px;
    }

    .used-contract-container {
        width: 100%;
        max-width: 100%;
        padding: 20px 16px 34px; }
    .used-contract-container {
        width: 100%;
        max-width: 100%;
        padding: 20px 16px 34px;
    }

    /* 상단 */
    .used-contract-topbar {
        position: relative;
        padding: 18px 0 26px;
        min-height: auto;
    }


    .used-contract-title {
        font-size: 24px;
        line-height: 1.25;
        padding: 0 44px;
        word-break: keep-all;
    }

    /* 폼 전체 */
    .used-form {
        margin: 0;
        padding: 0;
    }


    .used-form-row-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 0;
    }

    .used-form-row-header .used-label {
        flex: 1;
        margin: 0;
    }



    .used-input {
        width: 100%;
        height: 40px;
        font-size: 14px;
        padding: 0 10px;
    }

    /* 주소 검색 버튼 세로 정리 */
    .used-address-row {
        display: flex;
        gap: 8px;
        align-items: stretch;
        width: 100%;
    }


    .used-help-link-wrap {
        margin-top: 4px;
        margin-bottom: 18px;
        text-align: right;
    }

    .used-section-divider {
        margin: 18px 0 18px;
    }

    .used-section-title {
        font-size: 18px;
        margin-bottom: 14px;
        line-height: 1.3;
    }

    .used-section-hint{ margin: -5px 0 18px;    text-align: center; }


.btn-sign-link-send {    height: 45px;     font-size: 15px; }
.btn-sign {    font-size: 15px;}

}

@media (max-width: 640px) {


    .btn-prev,
    .btn-next {
        width: 100%;
    }


}

/* =========================
   약관 팝업
========================= */

.btn-term-view {
    margin-left: auto;
    font-size: 13px;
    color: #304e9e;
    background: none;
    font-weight: 600;
    cursor: pointer;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================
   약관 팝업 디자인
========================= */

.terms-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.terms-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(2px);
}

.terms-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 640px);
    max-height: 82vh;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
    display: flex;
    flex-direction: column;
}

.terms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f8;
    background: linear-gradient(180deg, #fbfcff 0%, #f6f8fd 100%);
}

.terms-header span {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.02em;
}

.terms-close {
    width: 34px;
    height: 34px;
    border: 1px solid #e4e9f3;
    border-radius: 50%;
    background: #fff;
    color: #556070;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.terms-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: #2f3640;
    white-space: normal;
    word-break: keep-all;
}

.terms-body h4 {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    margin: 0 0 12px;
}

.terms-body h3 {
    font-size: 17px;
    font-weight: 800;
    color: #222;
    margin: 0 0 14px;
    line-height: 1.35;
}

.terms-body .terms-loading {
    text-align: center;
    color: #6d7485;
    padding: 24px 12px;
    font-size: 14px;
}

.terms-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.terms-body th,
.terms-body td {
    border: 1px solid #e8edf5;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.terms-body th {
    background: #f8fbff;
    font-weight: 700;
    color: #304e9e;
}

/* =========================
   서명 모달 디자인
========================= */

.sign-modal-content {
    position: relative;
    background: #fff;
    width: min(92vw, 480px);
    border-radius: 22px;
    padding: 22px 20px 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    z-index: 1;
    overflow: visible;
}

.sign-modal-title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #222;
    margin-bottom: 16px;
}

.sign-canvas-wrap {
    width: 100%;
    height: 220px;
    border: 1.5px solid #dfe4f2;
    border-radius: 16px;
    overflow: hidden;
    background:
            linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    touch-action: none;
}

.sign-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-sign-reset,
.btn-sign-complete {
    height: 52px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn-sign-reset {
    flex: 1;
    border: 1px solid #d7deeb;
    background: #fff;
    color: #5a6576;
}

.btn-sign-complete {
    flex: 1.3;
    border: none;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(48, 78, 158, 0.18);
}

.sign-modal-close {
    position: absolute;
    top: -14px;
    right: -6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #304e9e;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(48, 78, 158, 0.20);
}

@media (max-width: 480px) {
    .used-contract-container {
        padding: 0px 25px 30px;
    }

    .used-contract-topbar {
        padding: 16px 0 22px;
    }


    .used-contract-title {
        font-size: 22px;
        padding: 0 40px;
    }


    .used-section-title {
        font-size: 17px;
    }
}

/* =============================
   렌터카 특화 추가 정보
============================= */

#rentcarExtraInfoForm .used-form-row {
    margin-bottom: 18px;
    flex-direction: column;
}

#rentcarExtraInfoForm .used-form-row:last-child {
    margin-bottom: 0;
}


#rentcarExtraInfoForm .used-radio-label {
    width: 170px;
}



#rentcarExtraInfoForm .used-radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #304e9e;
    margin: 0;
    flex-shrink: 0;
}

/* 조건부 영역 */
#rentcarExtraInfoForm .used-conditional-section {
    margin-top: 12px;
    margin-left: 188px;
    padding: 14px 14px 14px;
    border-left: none;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e7edf8;
}

#rentcarExtraInfoForm .used-conditional-section .used-label {
    font-size: 14px;
    font-weight: 700;
    color: #304e9e;
    margin-bottom: 8px;
}

#rentcarExtraInfoForm .used-conditional-section .used-inline-top {
    margin-top: 12px;
}

#rentcarExtraInfoForm .used-conditional-section .used-input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #dfe4f2;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 14px;
    font-size: 14px;
    color: #222;
    outline: none;
    transition: all 0.2s ease;
}

#rentcarExtraInfoForm .used-conditional-section .used-input:focus {
    border-color: #304e9e;
    box-shadow: 0 0 0 4px rgba(48, 78, 158, 0.08);
}




/* 모바일 */
@media (max-width: 768px) {

    #rentcarExtraInfoForm .used-form-row {

        align-items: normal;
    }

    #rentcarExtraInfoForm .used-radio-item input[type="radio"] {
        width: 18px;
        height: 18px;
    }

    #rentcarExtraInfoForm .used-conditional-section {
        margin-left: 0;
        margin-top: 10px;
        padding: 12px;
        border-radius: 16px;
    }


}


/* =============================
   차량 상태 및 고지사항
============================= */

#vehicleConditionForm .used-form-row {
    margin-bottom: 20px;
}


#vehicleConditionForm .used-form-row:last-child {
    margin-bottom: 0;
}

#vehicleConditionForm .used-label {width: 170px;  }

#vehicleConditionForm .used-radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #304e9e;
    margin: 0;
    flex-shrink: 0;
}


#vehicleConditionForm .used-input:focus {
    border-color: #304e9e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(48, 78, 158, 0.08);
}

#vehicleConditionForm .used-input::placeholder {
    color: #a0a8b7;
}

/* 조건부 카드 */
#vehicleConditionForm .used-conditional-section {
    margin-top: 12px;
    margin-left: 228px;
    padding: 14px;
    border-left: none;
    border-radius: 18px;

}

#vehicleConditionForm .used-conditional-section .used-label {
    font-size: 14px;
    margin-bottom: 8px;
}

#vehicleConditionForm .used-conditional-section .used-inline-top {
    margin-top: 12px;
}

#vehicleConditionForm #insuranceProcessedSection {
    margin-left: 0;
    margin-top: 12px;
}

/* 세로 라디오 그룹 */
#vehicleConditionForm .used-radio-vertical-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#vehicleConditionForm .used-radio-vertical-group .used-radio-item {
    font-size: 14px;
}

.used-check-row {
    font-size: 14px;
}
/* 안내 텍스트 */
#vehicleConditionForm .used-radio-help {
    margin-top: 10px;
    font-size: 12px;
    color: #6d7485;
    line-height: 1.5;
    word-break: keep-all;
}



#vehicleConditionForm .used-check-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #304e9e;
    flex-shrink: 0;
}

/* 구분선 / 섹션 제목 */
#vehicleConditionForm .used-section-divider {
    height: 1px;
    background: #edf1f7;
    margin: 24px 0 22px;
}

#vehicleConditionForm .used-section-title {
    margin: 45px 0 24px;
    font-size: 20px;
    font-weight: 700;
    padding: 10px;
    background-color: #e8f0ff;
    text-align: center;
    border-radius: 34px;
}

/* 하단 버튼은 기존 공통 used-bottom-actions 그대로 사용 */
.used-bottom-actions {
    max-width: 760px;
    margin: 22px auto 0;
    padding: 0;
    display: flex;
    gap: 12px;
}


.used-btn-prev:hover {
    background: #eef4ff;
}

.used-btn-next {
    border: none;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(48, 78, 158, 0.18);
}

.used-btn-next:hover {
    transform: translateY(-1px);
}

/* =============================
   모바일
============================= */
@media (max-width: 768px) {

    #vehicleConditionForm .used-form-row {
        margin-bottom: 18px;
    }



    #vehicleConditionForm .used-radio-item {
        font-size: 14px;
    }

    #vehicleConditionForm .used-radio-item input[type="radio"] {
        width: 18px;
        height: 18px;
    }

    #vehicleConditionForm .used-input {
        height: 45px;
        border-radius: 8px;
        font-size: 14px;
    }

    #vehicleConditionForm .used-conditional-section {
        margin-left: 0;
        margin-top: 10px;
        padding: 5px;
        width: 100%;
         margin-bottom: 0;
    }

    #vehicleConditionForm .used-conditional-section .used-label {
        font-size: 13px;
    }

    #vehicleConditionForm .used-radio-help {
        font-size: 12px;
        margin-top: 8px;
    }


    #vehicleConditionForm .used-section-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    #vehicleConditionForm .used-label {
        width: 40%;
        font-size: 14px;
        letter-spacing: -1px;
        line-height: 20px;
    }

.used-check-row {
    font-size: 13px;
}
    .used-btn-prev,
    .used-btn-next {
                width: 100%;
                height: 46px;
                border-radius: 8px;
                font-size: 14px;
                line-height: 16px;
    }
.used-store-item{padding: 10px 12px;}
    .used-store-name{ font-size: 16px; }
    .used-store-select-btn{    height: 40px; }
}

@media (max-width: 480px) {
    #rentcarExtraInfoForm .used-radio-label {
        width: 145px;
        font-size: 14px;
        letter-spacing: -1px;
        .used-check-row{    font-size: 13px;}
    }

.used-radio-item{    font-size: 14px;}
    .used-doc-name {
        width: 100px;
        font-size: 14px;
        font-weight: 600;
        color: #304e9e;
        flex-shrink: 0;
        word-break: keep-all;
        letter-spacing: -1px;
    }

    .used-doc-upload-btn{
    height: 40px;
    padding: 0px 10px;
    font-size: 14px;
    }

    .used-doc-check-label{
    padding: 8px 14px;
        font-size: 14px;
    }
}

/* =============================
   하자 책임 및 면책 조항 / 약관 스크롤 박스
============================= */

.used-terms-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding: 18px 18px 20px;
    border: 1.5px solid #dfe4f2;
    border-radius: 16px;
    background: #f8fbff;
    line-height: 1.72;
    color: #333;
}

.used-terms-scroll h3 {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin: 0 0 10px;
}

.used-terms-scroll p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.75;
    word-break: keep-all;
}

.used-terms-scroll strong {
    color: #222;
    font-weight: 800;
}

.used-terms-scroll::-webkit-scrollbar {
    width: 10px;
}

.used-terms-scroll::-webkit-scrollbar-track {
    background: #eef2f8;
    border-radius: 999px;
}

.used-terms-scroll::-webkit-scrollbar-thumb {
    background: #c5cfdf;
    border-radius: 999px;
}

.used-terms-scroll::-webkit-scrollbar-thumb:hover {
    background: #aebbd1;
}

@media (max-width: 768px) {
    .used-terms-scroll {
        max-height: 360px;
        padding: 16px 14px 18px;
        border-radius: 14px;
    }

    .used-terms-scroll h3 {
        font-size: 16px;
    }

    .used-terms-scroll p {
        font-size: 13px;
        line-height: 1.7;
    }

    .mobile-container{    margin: 10px auto 0;}
}

/* =============================
   중고차 이용동의 및 서명
============================= */

#usedAgreementSignForm.used-form {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 22px 22px;
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 24px;
    box-shadow: 0 10px 24px rgba(31, 43, 77, 0.05);
}

.used-agree-all-btn {
    width: 100%;
    height: 58px;
    border: 1.5px solid rgba(48, 78, 158, 0.22);
    border-radius: 18px;
    background: #f8fbff;
    color: #304e9e;
    font-size: 18px;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    margin-bottom: 16px;
}

.used-agree-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #eef2f8;
}

.used-agree-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 2px;
    border-bottom: 1px solid #eef2f8;
}

.used-agree-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 3px;
    cursor: pointer;
    flex-direction: column;
}

.used-agree-check {
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #304e9e;
}

.used-agree-item-main span {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    word-break: keep-all;
}

.used-agree-view-btn {
    flex-shrink: 0;
    min-width: 58px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(48, 78, 158, 0.18);
    border-radius: 999px;
    background: #f8fbff;
    color: #304e9e;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
}

.used-agree-view-btn:hover {
    background: #eef4ff;
}

/* 하단 서명 요청 버튼 */
.used-sign-link-btn {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 12px auto 0;
    height: 58px;
    border: 1px solid #d9dfeb;
    border-radius: 18px;
    background: #ffffff;
    color: #4b5565;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(31, 43, 77, 0.04);
}

.used-sign-link-btn:hover {
    background: #f9fbff;
}

/* =============================
   약관 팝업
============================= */

.used-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.used-terms-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(2px);
}

.used-terms-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 720px);
    max-height: 82vh;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
    display: flex;
    flex-direction: column;
}

.used-terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f8;
    background: linear-gradient(180deg, #fbfcff 0%, #f6f8fd 100%);
}

.used-terms-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.02em;
}

.used-terms-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid #e4e9f3;
    border-radius: 50%;
    background: #fff;
    color: #556070;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.used-terms-modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: #2f3640;
    word-break: keep-all;
}

.used-terms-modal-body h4 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: #222;
}

.used-terms-modal-body p {
    margin: 0 0 14px;
}

.used-terms-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 13px;
}

.used-terms-modal-body th,
.used-terms-modal-body td {
    border: 1px solid #e8edf5;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.used-terms-modal-body th {
    background: #f8fbff;
    font-weight: 700;
    color: #304e9e;
}

@media (max-width: 768px) {
    #usedAgreementSignForm.used-form {
        padding: 18px 14px 16px;
        border-radius: 18px;
    }

    .used-agree-all-btn,
    .used-sign-link-btn {
        height: 54px;
        border-radius: 16px;
        font-size: 15px;
    }

    .used-agree-item {
        gap: 10px;
        padding: 14px 0;
    }

    .used-agree-item-main span {
        font-size: 14px;
        line-height: 1.45;
    }

    .used-agree-view-btn {
        min-width: 52px;
        height: 30px;
        font-size: 12px;
        padding: 0 10px;
    }

    .used-terms-modal-content {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 32px);
        border-radius: 20px;
    }

    .used-terms-modal-header {
        padding: 16px;
    }

    .used-terms-modal-header h3 {
        font-size: 16px;
    }

    .used-terms-modal-body {
        padding: 16px;
        font-size: 13px;
        line-height: 1.7;
    }
}



/* =============================
   중고차 전자서명 완료 페이지
============================= */

.used-customer-complete-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 52px 20px 56px;
    text-align: center;
}

.used-customer-complete-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eef4ff;
    color: #304e9e;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
}

.used-customer-complete-title {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    line-height: 1.35;
    letter-spacing: -0.03em;
    word-break: keep-all;
    margin-bottom: 24px;
}

.used-customer-complete-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 58px;
    padding: 0 24px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(48, 78, 158, 0.18);
    transition: all 0.2s ease;
    margin-bottom: 26px;
}

.used-customer-complete-download:hover {
    transform: translateY(-1px);
}

/* 미리보기 카드 */
.used-customer-complete-preview {
    position: relative;
    width: 100%;
    min-height: 560px;
    background: #ffffff;
    border: 1px solid #edf1f7;
    border-radius: 24px;
    box-shadow: 0 10px 24px rgba(31, 43, 77, 0.05);
    overflow: hidden;
}

.used-customer-complete-preview-frame {
    width: 100%;
    height: 560px;
    border: none;
    display: block;
    background: #f8fbff;
}

.used-customer-complete-preview-empty {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8fbff;
    color: #7d8698;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
}

/* 가이드 문구 */
.used-customer-complete-guide {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #edf1f7;
    color: #5f6778;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    word-break: keep-all;
}

/* =============================
   모바일
============================= */
@media (max-width: 768px) {
    .used-customer-complete-wrap {
        padding: 36px 16px 40px;
    }

    .used-customer-complete-store {

        margin-bottom: 14px;
    }

    .used-customer-complete-title {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .used-customer-complete-download {
        width: 100%;
        min-width: 0;
        height: 54px;
        border-radius: 16px;
        font-size: 15px;
        margin-bottom: 18px;
    }

    .used-customer-complete-preview {
        min-height: 420px;
        border-radius: 18px;
    }

    .used-customer-complete-preview-frame {
        height: 420px;
    }

    .used-customer-complete-preview-empty {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 20px;
    }

    .used-customer-complete-guide {
        margin-top: 16px;
        padding: 14px 14px;
        border-radius: 16px;
        font-size: 13px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .used-customer-complete-wrap {
        padding: 28px 14px 34px;
    }

    .used-customer-complete-title {
        font-size: 22px;
        line-height: 1.4;
    }

    .used-customer-complete-preview {
        min-height: 360px;
    }

    .used-customer-complete-preview-frame {
        height: 360px;
    }

    .used-customer-complete-guide {
        font-size: 12px;
    }
}


/* =============================
   고객 진입 페이지 리뉴얼
   이전 완료 페이지와 통일감 있게
============================= */

.customer-entry-page {
    padding-bottom: 44px;
}

.customer-entry-hero-card {

    padding: 28px 18px 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf8;

    text-align: center;
}

.customer-entry-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf3ff;
    color: #304e9e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.customer-entry-intro {
    text-align: center;
    padding: 0;
}

.customer-entry-store-label {
    font-size: 13px;
    font-weight: 700;
    color: #7a86a2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.customer-entry-store {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    line-height: 1.4;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.customer-entry-desc {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.4;
    color: #1f2f57;
    font-weight: 700;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.customer-entry-consent-card {
    margin: 20px 0 0;
    padding: 24px 18px 20px;
    border-radius: 28px;
    background: #ffffff;

}

.customer-entry-consent-title {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #1f2f57;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.customer-entry-consent-box {
    margin: 0;
    border: 1px solid #e6edf8;
    background: #f8fbff;
    border-radius: 22px;
    padding: 18px 16px 16px;
}

.customer-entry-consent-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.customer-entry-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #23365f;
    line-height: 1.5;
    font-weight: 600;
    text-align: left;
}

.customer-entry-check-wrap input[type="checkbox"] {
    width: 22px;
    min-width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: #304e9e;
}

.customer-entry-check-wrap span {
    flex: 1;
    min-width: 0;
    word-break: keep-all;
}

.customer-entry-policy-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    color: #304e9e;
    text-decoration: none;
    position: relative;
}

button.customer-entry-policy-link {
    border: 0;
    padding: 0;
    margin: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
}

.customer-entry-policy-link::after {
    content: '›';
    margin-left: 4px;
    font-size: 16px;
    line-height: 1;
}

.customer-entry-all-agree {
    margin-top: 16px;
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(48, 78, 158, 0.18);
    transition: all 0.2s ease;
}

.customer-entry-all-agree:hover {
    transform: translateY(-1px);
}

.customer-entry-all-agree:active {
    transform: translateY(0);
}

.customer-entry-guide {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #6c7894;
    line-height: 1.5;
    font-weight: 600;
    word-break: keep-all;
}

.customer-entry-start-btn {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #3f63c2 0%, #304e9e 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(48, 78, 158, 0.2);
    transition: all 0.2s ease;
}

.customer-entry-start-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.customer-entry-start-btn:active:not(:disabled) {
    transform: translateY(0);
}

.customer-entry-start-btn:disabled {
    background: #d9dfeb;
    color: #8d97ab;
    box-shadow: none;
    cursor: not-allowed;
}

/* 모바일 대응 */
@media (max-width: 480px) {


    .customer-entry-hero-card {
        padding: 24px 16px 18px;
    }

    .customer-entry-consent-card {
        padding: 20px 16px 18px;
    }

    .customer-entry-store {
        font-size: 18px;
    }

    .customer-entry-desc {
        font-size: 17px;
    }

    .customer-entry-check-wrap {
        font-size: 14px;
    }

    .customer-entry-action {
        padding-left: 16px;
        padding-right: 16px;
    }

    .customer-entry-all-agree,
    .customer-entry-start-btn {
        height: 54px;
        border-radius: 14px;
        font-size: 16px;
    }
}


    .terms-content {
        width: min(92vw, 560px);
        max-height: 82vh;
        display: flex;
        flex-direction: column;
        border-radius: 18px;
        overflow: hidden;
        background: #fff;
    }

    .terms-header {
        flex: 0 0 auto;
        padding: 16px 18px;
        border-bottom: 1px solid #e5e7eb;
        font-weight: 800;
    }

    .terms-body {
        flex: 1 1 auto;
        max-height: 62vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 18px 16px 22px;
        font-size: 14px;
        line-height: 1.72;
        color: #222;
        word-break: keep-all;
    }

    .terms-body h3 {
        margin: 0 0 10px;
        font-size: 17px;
        font-weight: 800;
        color: #111827;
    }

    .terms-body p {
        margin: 0 0 12px;
    }
