/* ======================
   리셋 & 기본 설정
   ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #0066cc;
    --primary-dark: #004fa3;
    --secondary: #0d9488;
    --success: #10b981;
    --error: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: #f5f5f5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ======================
   키오스크 좌우 분할 레이아웃
   ====================== */
.kiosk-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* 좌측 소개 영역 (배경) */
.kiosk-intro {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.intro-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 320px;
    width: 100%;
}

.intro-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.intro-logo {
    margin-bottom: 8px;
}

.intro-logo img {
    height: 48px;
    width: auto;
}

.intro-title {
    color: #1C1C1F;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.intro-subtitle {
    color: #71727D;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
}

/* QR 코드 영역 */
.intro-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-box {
    background: #F8F9FB;
    border: 1px solid #E6E6ED;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-image {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-text {
    color: #1C1C1F;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* 안내 링크 버튼들 */
.intro-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.intro-link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #F8F9FB;
    border: 1px solid #E6E6ED;
    border-radius: 12px;
    color: #1C1C1F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.intro-link-btn:hover {
    background: #EDF2FF;
    border-color: #144196;
    color: #144196;
}

.intro-link-btn svg:first-child {
    flex-shrink: 0;
    color: #144196;
}

.intro-link-btn span {
    flex: 1;
}

.intro-link-btn svg:last-child {
    flex-shrink: 0;
    color: #71727D;
}

/* 하단 정보 */
.intro-footer {
    text-align: center;
    color: #71727D;
    font-size: 13px;
}

.intro-footer p {
    margin: 4px 0;
}

/* 우측 모바일 화면 영역 */
.kiosk-mobile-area {
    width: 480px;
    min-width: 480px;
    margin-right: 200px;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    height: 100vh;
    position: relative;
}

.kiosk-mobile-area > * {
    max-width: 480px;
    width: 100%;
    background: white;
    min-height: 100vh;
}

/* 반응형: 태블릿 및 작은 화면 */
@media (max-width: 1024px) {
    .kiosk-layout {
        flex-direction: column;
    }

    .kiosk-intro {
        min-height: auto;
        padding: 40px 20px;
    }

    .intro-content {
        gap: 32px;
        max-width: 400px;
    }

    .intro-title {
        font-size: 24px;
    }

    .kiosk-mobile-area {
        width: 100%;
        min-width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 0;
        margin-right: 0;
    }
}

/* 반응형: 모바일 (좌측 소개 영역 숨김) */
@media (max-width: 768px) {
    .kiosk-intro {
        display: none;
    }

    .kiosk-mobile-area {
        width: 100%;
        min-width: 100%;
        margin-right: 0;
    }

    .kiosk-mobile-area > * {
        max-width: 100%;
    }
}

/* ======================
   헤더 (New Design)
   ====================== */
.form-header {
    width: 100%;
    background: white;
    border-bottom: 1px solid #E6E6ED;
    position: sticky;
    top: 0;
    z-index: 100;
}

.form-header-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 27.5px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-back-button {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-header-title {
    color: #1C1C1F;
    font-size: 18px;
    font-family: Pretendard;
    font-weight: 600;
    line-height: 25.20px;
    margin: 0;
}

/* ======================
   프로그레스 바
   ====================== */
.progress-wrapper {
    background: white;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 70px;
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: var(--primary);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* ======================
   메인 콘텐츠
   ====================== */
.mobile-main {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 100px; /* 고정 하단 버튼 공간 확보 */
}

.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

/* ======================
   폼 요소
   ====================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
    background: white;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-input.error {
    border-color: var(--error);
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23334155' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

/* 폼 행 (2컬럼) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* 주민등록번호 입력 */
.id-number-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.id-number-input input {
    flex: 0 0 auto;
    text-align: center;
    padding: 0.875rem;
}

.id-number-input input:first-child {
    width: 130px;
}

.id-number-input input:nth-child(3) {
    width: 60px;
}

.id-number-input .separator,
.id-number-input .mask {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 1.125rem;
}

/* 주소 입력 */
.address-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.address-input .form-input {
    flex: 1;
}

.btn-search {
    flex: 0 0 auto;
    padding: 0.875rem 1.25rem;
    background: var(--gray-600);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-search:active {
    transform: scale(0.98);
    background: var(--gray-700);
}

/* 라디오 버튼 (가로 배치) */
.radio-group-horizontal {
    display: flex;
    gap: 0.75rem;
}

.radio-card {
    flex: 1;
    display: block;
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label {
    display: block;
    padding: 0.875rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.radio-card input[type="radio"]:checked + .radio-label {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* ======================
   새 폼 스타일 (Underline Only)
   ====================== */
.new-form-group {
    margin-bottom: 24px;
}

.new-form-label {
    display: block;
    color: #1C1C1F;
    font-size: 14px;
    font-family: Pretendard;
    font-weight: 600;
    line-height: 19.60px;
    margin-bottom: 12px;
}

.new-form-label .required {
    color: #144196;
    font-weight: 600;
}

.new-form-input,
.new-form-textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #D5D5DE;
    font-size: 16px;
    font-family: Pretendard;
    font-weight: 400;
    line-height: 22.40px;
    color: #1C1C1F;
    background: transparent;
    transition: border-color 0.2s;
}

.new-form-input:focus,
.new-form-textarea:focus {
    outline: none;
    border-bottom-color: #144196;
}

.new-form-input::placeholder,
.new-form-textarea::placeholder {
    color: #C1C2CC;
}

.new-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* 토글 버튼 그룹 */
.toggle-group {
    display: flex;
    align-items: flex-start;
    padding: 4px;
    background: #F1F1F7;
    border-radius: 8px;
}

.toggle-button {
    flex: 1;
    height: 40px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #1C1C1F;
    font-size: 16px;
    font-family: Pretendard;
    font-weight: 600;
    line-height: 22.40px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-button.active {
    background: white;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
}

.toggle-button:active {
    transform: scale(0.98);
}

/* 주소 검색 그룹 */
.address-search-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.address-search-group .new-form-input {
    flex: 1;
}

.search-button {
    flex: 0 0 auto;
    padding: 12px 20px;
    background: #71727D;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: Pretendard;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-button:active {
    transform: scale(0.98);
    background: #5A5B66;
}

/* 커스텀 체크박스 */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #D5D5DE;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-mark {
    background: #144196;
    border-color: #144196;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-mark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: #1C1C1F;
    font-size: 14px;
    font-family: Pretendard;
    font-weight: 500;
    line-height: 19.60px;
}

/* 추가 버튼 (공동소유자) */
.add-button {
    width: 100%;
    padding: 12px 24px;
    background: white;
    border: 1px dashed #D5D5DE;
    border-radius: 8px;
    color: #144196;
    font-size: 16px;
    font-family: Pretendard;
    font-weight: 600;
    line-height: 22.40px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-button:hover {
    background: #F7F7FC;
    border-color: #144196;
}

.add-button:active {
    transform: scale(0.98);
}

/* 파일 업로드 */
.file-upload-button {
    width: 100%;
    padding: 12px 24px;
    background: white;
    border: 1px solid #D5D5DE;
    border-radius: 8px;
    color: #1C1C1F;
    font-size: 16px;
    font-family: Pretendard;
    font-weight: 600;
    line-height: 22.40px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.file-upload-button:hover {
    background: #F1F1F7;
}

.file-upload-button:active {
    transform: scale(0.98);
}

.file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #F1F1F7;
    border-radius: 8px;
    gap: 8px;
}

.file-name {
    flex: 1;
    color: #1C1C1F;
    font-size: 14px;
    font-family: Pretendard;
    font-weight: 500;
    line-height: 19.60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-remove {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.file-remove:hover {
    background: #D5D5DE;
}

.file-remove:active {
    transform: scale(0.95);
}

/* 정보 아이콘 버튼 */
.info-icon-button {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.info-icon-button:hover {
    transform: scale(1.1);
}

.info-icon-button:active {
    transform: scale(0.95);
}

/* 모달 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #E6E6ED;
}

.modal-title {
    color: #1C1C1F;
    font-size: 18px;
    font-family: Pretendard;
    font-weight: 600;
    line-height: 25.20px;
    margin: 0;
}

.modal-close {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #F1F1F7;
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 24px;
    color: #1C1C1F;
    font-size: 15px;
    font-family: Pretendard;
    font-weight: 400;
    line-height: 22px;
}

.modal-body p {
    margin: 0;
}

.modal-body ul {
    margin: 0;
}

.modal-body li {
    margin: 4px 0;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
}

.modal-button {
    padding: 12px 24px;
    background: #144196;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: Pretendard;
    font-weight: 600;
    line-height: 22.40px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-button:hover {
    background: #0F3275;
}

.modal-button:active {
    transform: scale(0.98);
}

/* 필드 강조 효과 */
.field-highlight {
    animation: fieldPulse 1s ease-in-out;
}

@keyframes fieldPulse {
    0%, 100% {
        border-color: #D5D5DE;
    }
    50% {
        border-color: #144196;
        box-shadow: 0 0 0 3px rgba(20, 65, 150, 0.1);
    }
}

/* 체크박스 흔들림 효과 */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 비활성화된 입력 필드 */
.new-form-input:disabled,
.search-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 고정 하단 버튼 */
.fixed-bottom-button {
    position: fixed;
    bottom: 0;
    /* kiosk-mobile-area 위치에 맞춤: 100vw - 480px(영역너비) - 200px(margin-right) */
    left: calc(100vw - 480px - 200px);
    width: 480px;
    background: white;
    padding: 20px 16px;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 99;
}

@media (max-width: 1024px) {
    .fixed-bottom-button {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 100%;
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .fixed-bottom-button {
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
    }
}

.bottom-button-wrapper {
    display: flex;
    gap: 12px;
}

.prev-button {
    flex: 0 0 80px;
    padding: 12px 16px;
    background: #F1F1F7;
    color: #1C1C1F;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: Pretendard;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.prev-button:active {
    transform: scale(0.98);
    background: #E5E5EB;
}

.next-button {
    flex: 1;
    padding: 12px 24px;
    background: #144196;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: Pretendard;
    font-weight: 600;
    line-height: 22.40px;
    cursor: pointer;
    transition: all 0.2s;
}

.next-button:active {
    transform: scale(0.98);
    background: #0F3275;
}

/* ======================
   요약 화면
   ====================== */
.summary-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.summary-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 500;
}

.summary-value {
    color: var(--gray-900);
    font-weight: 600;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
    white-space: pre-wrap;
}

/* 동의 박스 */
.consent-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.consent-label span {
    font-weight: 600;
    color: var(--gray-900);
}

.consent-text {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.5;
    padding-left: 2rem;
}

/* ======================
   버튼
   ====================== */
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-prev {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-prev:active {
    background: var(--gray-300);
}

.btn-next,
.btn-submit {
    background: var(--primary);
    color: white;
}

.btn-next:active,
.btn-submit:active {
    background: var(--primary-dark);
}

/* ======================
   결과 메시지
   ====================== */
.result-message {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: slideUp 0.3s ease;
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-message.success {
    background: var(--success);
    color: white;
}

.result-message.error {
    background: var(--error);
    color: white;
}

/* ======================
   푸터
   ====================== */
.mobile-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
}

.mobile-footer p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.footer-copyright {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ======================
   반응형
   ====================== */

/* 작은 모바일 (360px 미만) */
@media (max-width: 359px) {
    .header-title {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .radio-group-horizontal {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .id-number-input input:first-child {
        width: 110px;
    }

    .id-number-input input:nth-child(3) {
        width: 50px;
    }
}

/* 태블릿 (600px 이상) */
@media (min-width: 600px) {
    .mobile-main {
        padding: 2rem 1rem;
        padding-bottom: 100px;
    }

    .mobile-footer {
        margin-top: 4rem;
    }

    .result-message {
        max-width: 500px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* 데스크톱 (768px 이상) */
@media (min-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .form-group {
        margin-bottom: 1.75rem;
    }

    .btn {
        padding: 1.125rem;
        font-size: 1.0625rem;
    }
}

/* 터치 디바이스 최적화 */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .form-input,
    .form-select,
    .form-textarea {
        min-height: 48px;
    }

    .btn-search {
        min-height: 48px;
        min-width: 80px;
    }

    .radio-label {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* iOS Safari 스크롤 바운스 방지 */
body {
    overscroll-behavior-y: none;
}

/* ======================
   시작 화면
   ====================== */
.start-screen {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: white;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    position: relative;
    width: 100%;
    padding: 40px 20px;
}

.selection-cards {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
}

.selection-card {
    width: 335px;
    padding: 24px;
    background: white;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.selection-card:active {
    transform: translateY(-2px);
}

.card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
}

.card-title {
    color: #1C1C1F;
    font-size: 18px;
    font-weight: 600;
    line-height: 25.20px;
}

.card-description {
    color: #71727D;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.60px;
}

.card-icon {
    width: 60px;
    height: 60px;
    position: relative;
    flex-shrink: 0;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-icon-left {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5FF;
    border-radius: 12px;
}

.card-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-blue-bg {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 142%;
    max-width: 1200px;
    height: 500px;
    background: #144196;
    border-radius: 0 0 50% 50%;
    z-index: 1;
}

.bottom-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
}

.icon-container {
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    line-height: 33.60px;
}

.dogs-image {
    margin-top: 20px;
    max-width: 300px;
}

.dogs-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 메인 폼 숨김 상태 */
.main-form {
    display: none;
}

/* 뒤로가기 버튼 */
.back-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.header-text {
    flex: 1;
}

/* 가로 모드 최적화 */
@media (orientation: landscape) and (max-height: 500px) {
    .mobile-header {
        padding: 0.875rem 1rem;
    }

    .header-title {
        font-size: 1.125rem;
    }

    .progress-wrapper {
        padding: 0.875rem 1rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .bottom-blue-bg {
        height: 300px;
    }
}

/* 모바일 반응형 */
@media (max-width: 600px) {
    .selection-card {
        width: 100%;
    }

    .start-content {
        padding: 20px 10px;
    }
}

/* ======================
   약관 동의 페이지 (STEP 3)
   ====================== */
.consent-container {
    width: 100%;
    padding: 16px;
    padding-top: 32px;
    padding-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.consent-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.consent-title {
    color: #1C1C1F;
    font-size: 24px;
    font-family: Pretendard;
    font-weight: 600;
    line-height: 33.60px;
    margin: 0;
}

.consent-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 전체 동의하기 박스 */
.consent-all-box {
    padding: 12px 16px;
    background: #F7F7FC;
    border-radius: 8px;
    outline: 1px solid #E6E6ED;
    outline-offset: -1px;
}

/* 개별 약관 항목 */
.consent-items {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.consent-item {
    display: flex;
    align-items: flex-start;
}

/* 라운드 체크박스 스타일 */
.round-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.round-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.round-checkbox-mark {
    width: 24px;
    height: 24px;
    padding: 10.29px;
    background: #D5D5DE;
    border-radius: 42.86px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    position: relative;
}

.round-checkbox input[type="checkbox"]:checked + .round-checkbox-mark {
    background: #144196;
}

.round-checkbox-mark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.round-checkbox input[type="checkbox"]:checked + .round-checkbox-mark::after {
    opacity: 1;
}

.round-checkbox-text {
    color: #1C1C1F;
    font-size: 16px;
    font-family: Pretendard;
    line-height: 24.80px;
    flex: 1;
}

.consent-all-box .round-checkbox-text {
    font-weight: 600;
    line-height: 25.60px;
}

.consent-item .round-checkbox-text {
    font-weight: 500;
}

/* 서명 섹션 */
.signature-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signature-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    padding: 20px;
    background: #F1F1F7;
    border-radius: 12px;
    outline: 1px solid #E6E6ED;
    outline-offset: -1px;
}

.signature-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    border-radius: 12px;
}

.signature-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #71727D;
    font-size: 16px;
    font-family: Pretendard;
    font-weight: 500;
    line-height: 25.60px;
    pointer-events: none;
}

.signature-clear-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #D5D5DE;
    border-radius: 6px;
    color: #71727D;
    font-size: 14px;
    font-family: Pretendard;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    z-index: 10;
}

.signature-clear-btn:hover {
    background: #F7F7FC;
}

.signature-clear-btn:active {
    transform: scale(0.95);
}

/* 약관 안내문 */
.consent-notice {
    padding: 24px 12px 0;
    border-top: 1px solid #E6E6ED;
    color: #71727D;
    font-size: 14px;
    font-family: Pretendard;
    font-weight: 500;
    line-height: 22.40px;
}

.consent-notice p {
    margin: 0 0 12px 0;
}

.consent-notice p:last-child {
    margin-bottom: 0;
}

/* ======================
   이미지 업로드
   ====================== */
.image-upload-wrapper {
    width: 100%;
    margin-bottom: 12px;
}

.image-preview {
    width: 100%;
    height: 200px;
    background: #F1F1F7;
    border-radius: 12px;
    outline: 1px solid #E6E6ED;
    outline-offset: -1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background-size: cover;
    background-position: center;
}

.image-preview:hover {
    background-color: #E6E6ED;
}

.image-placeholder-text {
    color: #71727D;
    font-size: 16px;
    font-family: Pretendard;
    font-weight: 500;
}

/* ======================
   Select2 커스텀 스타일
   ====================== */
.select2-container {
    width: 100% !important;
    display: block;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single.select2-selection--clearable {
    width: 100%;
    height: auto !important;
    padding: 12px 0 !important;
    border: none !important;
    border-bottom: 1px solid #D5D5DE !important;
    border-radius: 0 !important;
    font-size: 16px;
    font-family: Pretendard;
    font-weight: 400;
    line-height: 22.40px;
    color: #1C1C1F;
    background: transparent !important;
    transition: border-color 0.2s;
    box-shadow: none !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    outline: none !important;
    border: none !important;
    border-bottom: 1px solid #144196 !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1C1C1F;
    padding: 0;
    line-height: 22.40px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #C1C2CC;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 0;
    top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #71727D transparent transparent transparent;
    border-width: 6px 5px 0 5px;
    margin-left: -5px;
    margin-top: -3px;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #71727D transparent;
    border-width: 0 5px 6px 5px;
}

.select2-dropdown {
    border: 1px solid #E6E6ED;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.select2-container--default .select2-results__option {
    padding: 12px 16px;
    font-size: 16px;
    font-family: Pretendard;
    font-weight: 400;
    color: #1C1C1F;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #F1F1F7;
    color: #144196;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #144196;
    color: white;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #D5D5DE;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    font-family: Pretendard;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #144196;
}

.select2-container--default .select2-results__message {
    padding: 12px 16px;
    color: #71727D;
    font-size: 14px;
    font-family: Pretendard;
}

/* ======================
   문자인증 UI
   ====================== */
.phone-verify-group {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.phone-verify-group .new-form-input {
    flex: 1;
}

.verify-button {
    flex: 0 0 auto;
    padding: 12px 20px;
    background: #144196;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: Pretendard;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.verify-button:active {
    transform: scale(0.98);
    background: #0F3275;
}

.verify-button:disabled {
    background: #71727D;
    cursor: not-allowed;
}

.verify-code-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.verify-code-group .new-form-input {
    flex: 1;
}

.verify-code-group .verify-button {
    flex: 0 0 auto;
}

.verify-timer {
    flex: 0 0 auto;
    color: #EF4444;
    font-size: 14px;
    font-family: Pretendard;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

/* ======================
   변경 신고 스타일
   ====================== */

/* 변경 유형 카드 */
.change-type-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.change-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.change-type-card:hover {
    border-color: #144196;
    background: #F8F9FB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 65, 150, 0.1);
}

.change-type-card.selected {
    border-color: #144196;
    background: #EDF2FF;
    box-shadow: 0 4px 12px rgba(20, 65, 150, 0.15);
}

.change-type-icon {
    width: 64px;
    height: 64px;
    background: #F0F4FF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #144196;
    flex-shrink: 0;
}

.change-type-card.selected .change-type-icon {
    background: #144196;
    color: white;
}

.change-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.change-type-title {
    font-size: 17px;
    font-weight: 600;
    color: #1C1C1F;
    line-height: 1.4;
}

.change-type-desc {
    font-size: 14px;
    color: #71727D;
    line-height: 1.4;
}

/* 라디오 버튼 스타일 */
.custom-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    background: #F8F9FB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.custom-radio:hover {
    background: #F0F4FF;
    border-color: #144196;
}

.custom-radio input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.custom-radio input[type="radio"]:checked + .radio-mark {
    border-color: #144196;
}

.custom-radio input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #144196;
    border-radius: 50%;
}

.radio-text {
    font-size: 15px;
    color: #1C1C1F;
    font-weight: 500;
}

/* 변경 세부사항 영역 */
.change-details {
    animation: fadeIn 0.3s ease;
}

.status-change-detail {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
    animation: fadeIn 0.3s ease;
}

.info-change-field {
    margin-top: 16px;
    padding: 16px;
    background: #F8F9FB;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

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

/* 섹션 디바이더 */
.section-divider {
    margin: 24px 0;
    border-top: 1px solid #E5E7EB;
}

/* 재발급 사유 카드 스타일 */
.reissue-reason-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.reissue-reason-card {
    flex: 1;
    min-width: 100px;
    cursor: pointer;
}

.reissue-reason-card input[type="radio"] {
    display: none;
}

.reissue-reason-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.reissue-reason-card:hover .card-content {
    border-color: #144196;
    background: #F8F9FB;
}

.reissue-reason-card input[type="radio"]:checked + .card-content {
    border-color: #144196;
    background: #EDF2FF;
    box-shadow: 0 4px 12px rgba(20, 65, 150, 0.15);
}

.reissue-reason-card .card-icon {
    font-size: 28px;
}

.reissue-reason-card .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1C1C1F;
    text-align: center;
}

/* 재발급 첨부파일 스타일 */
.file-upload-area {
    margin-top: 8px;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #F8F9FB;
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
    font-weight: 500;
}

.file-upload-btn:hover {
    border-color: #144196;
    background: #F0F4FF;
    color: #144196;
}

.upload-icon {
    font-size: 20px;
}

.file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #F8F9FB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.file-name {
    font-size: 14px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.file-remove-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
}

.file-remove-btn:hover {
    background: #DC2626;
}
