/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #0299b0;
    --primary-color-hover: #027a8f;
    --secondary-bg-color: #f2f4f6;
    --secondary-text-color: #666666;
    --header-bg-color: #f4fbfb;
    --text-color-dark: #000000;
    --text-color-light: #ffffff;
    --page-bg-color: #ffffff;
    --body-bg-color: #f0f0f0;
    --placeholder-color: #808080;
    --border-color: #808080;
    --font-main: 'Pretendard', 'Noto Sans KR', 'Inter', sans-serif;

    /* Navigation Colors */
    --navbar-bg: #0299b0;
    --navbar-text: #ffffff;
    --navbar-hover-bg: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Global Reset
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    height: 100%;
    font-family: var(--font-main);
    background-color: var(--body-bg-color);
    display: flex;
    justify-content: center;
}

a,
button {
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* ========================================
   Page Container
   ======================================== */
.page-container,
.app-container {
    width: 100%;
    max-width: 390px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--page-bg-color);
    display: flex;
    flex-direction: column;
}

/* 모바일 반응형 - 390px 미만 화면 */
@media (max-width: 390px) {
    .page-container,
    .app-container {
        max-width: 100%;
    }
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .container {
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--navbar-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    font-size: 24px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--navbar-text);
    transition: all 0.3s ease;
}

.navbar-menu {
    display: flex;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--navbar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    background-color: var(--navbar-hover-bg);
}

.nav-link.active {
    font-weight: 700;
    background-color: var(--navbar-hover-bg);
}

.nav-icon {
    font-size: 16px;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--navbar-bg);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-menu.active {
        max-height: 400px;
    }

    .navbar-nav {
        flex-direction: column;
        padding: 16px;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }
}

/* ========================================
   Header Section
   ======================================== */
#section-header,
#header-section {
    flex-shrink: 0;
    background-color: var(--header-bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
}

/* ========================================
   Main Content Area
   ======================================== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

.main-content .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: #f8f9fa;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.footer .container {
    max-width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left p,
.footer-right p {
    margin: 0;
    font-size: 13px;
    color: var(--secondary-text-color);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        order: -1;
    }
}

/* ========================================
   Header Section (기존 페이지용)
   ======================================== */
#section-header,
#header-section {
    flex-shrink: 0;
    background-color: var(--header-bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
}

.app-header,
.signup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 64px;
    padding: 18px 22px;
}

.back-button {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.back-button img {
    width: 18px;
    height: 24px;
}

.header-title {
    margin: 0;
    color: var(--text-color-dark);
    font-weight: 700;
    font-size: 18px;
    line-height: 21.5px;
}

/* ========================================
   Main Section
   ======================================== */
#section-main,
#main-section,
.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-area,
.signup-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0 21px;
}

.content-area {
    justify-content: space-between;
    padding: 0 20px;
}

.page-title,
.form-heading {
    margin: 0;
    margin-top: 63px;
    color: var(--text-color-dark);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
}

/* ========================================
   Button Components
   ======================================== */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 34px;
}

.btn {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn:active {
    opacity: 0.8;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.secondary-btn {
    background-color: var(--secondary-bg-color);
    color: var(--secondary-text-color);
}

.optional-btn {
    background-color: var(--page-bg-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.optional-btn:hover {
    background-color: rgba(2, 153, 176, 0.05);
    opacity: 1;
}

/* ========================================
   Form Components
   ======================================== */
.signup-form {
    margin-top: 82px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-label {
    color: var(--text-color-dark);
    font-weight: 400;
    font-size: 14px;
    line-height: 16.7px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--page-bg-color);
    font-size: 14px;
    font-family: inherit;
}

.form-input::placeholder {
    color: var(--placeholder-color);
    font-weight: 400;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(2, 153, 176, 0.2);
}

/* ========================================
   Button Wrappers
   ======================================== */
.button-wrapper {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 34px;
}

.submit-button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-weight: 700;
    font-size: 18px;
    line-height: 21.5px;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background-color: var(--primary-color-hover);
}

.submit-button:disabled {
    background-color: var(--secondary-bg-color);
    color: var(--placeholder-color);
    border: 1px solid var(--border-color);
    cursor: not-allowed;
    opacity: 1;
}

/* ========================================
   Register Page Specific Styles
   ======================================== */

/* 입력 필드와 버튼 가로 배치 */
.input-button-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* 좁은 입력 필드 (중복확인 등에 사용) */
.form-input-narrow {
    width: 240px;
    min-width: 240px;
    max-width: 350px;
}

/* 중복확인 버튼 */
.check-button {
    width: 100px;
    height: 48px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.check-button:hover {
    background-color: var(--primary-color-hover);
}

.check-button:disabled {
    background-color: #80CCD8;
    cursor: not-allowed;
}

/* 검증 메시지 */
.validation-message {
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
    display: none;
}

.validation-message.success {
    color: #4CAF50;
    display: block;
}

.validation-message.error {
    color: #f44336;
    display: block;
}

/* 검증 아이콘 (입력 필드 내부) */
.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    display: none;
}

.validation-icon.success {
    color: #4CAF50;
    display: block;
}

.validation-icon.error {
    color: #f44336;
    display: block;
}

/* 상대 위치 wrapper */
.input-wrapper {
    position: relative;
    width: 100%;
}

/* 입력 필드 설명 텍스트 */
.input-hint {
    font-size: 12px;
    color: var(--secondary-text-color);
    margin-top: 4px;
}

/* 폼 설명 텍스트 */
.form-description {
    color: var(--text-color-dark);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 4px;
}

/* 에러 메시지 영역 */
.form-error-space {
    height: 17px;
    color: #E1383E;
    font-size: 14px;
    font-weight: 400;
    display: block;
}

/* 입력 필드 섹션 */
.form-field-section {
    width: 100%;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-field-wrapper {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* 회원가입 main 영역 패딩 조정 */
.signup-main {
    padding: 44px 24px;
}

/* 회원가입 폼 간격 조정 */
.signup-form {
    margin-top: 40px;
}

/* 버튼 wrapper 위 여백 */
.button-wrapper-large-margin {
    margin-top: 60px;
}

/* ========================================
   Social Login Buttons
   ======================================== */
.kakao-btn {
    background-color: #FEE500 !important;
    color: #000000 !important;
}

.kakao-btn:hover {
    background-color: #E6CE00 !important;
    color: #000000 !important;
    opacity: 1 !important;
}

.naver-btn {
    background-color: #03C75A !important;
    color: #ffffff !important;
}

.naver-btn:hover {
    background-color: #02B350 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* ========================================
   Utility Classes
   ======================================== */
.divider-text {
    text-align: center;
    margin: 24px 0;
    color: var(--secondary-text-color);
}

.text-center {
    text-align: center;
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.text-secondary {
    color: var(--secondary-text-color);
    font-size: 14px;
}

.social-login-section {
    margin-top: 40px;
}

.auth-footer {
    text-align: center;
    padding-bottom: 20px;
}

/* Form group 간격 조정 */
.form-group-spacing {
    margin-top: 16px;
}

/* Checkbox 스타일 */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 인증번호 발송 버튼 */
.send-code-button {
    width: 100px;
    height: 48px;
    flex-shrink: 0;
}

/* 개발 모드 코드 표시 */
.dev-mode-code {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.dev-mode-code p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    font-weight: 600;
}

.dev-mode-code-number {
    font-size: 18px;
    font-family: monospace;
}

/* 타이머 표시 */
.timer-text {
    font-size: 12px;
    color: var(--primary-color);
    margin-top: 4px;
}

/* 재발송 버튼 섹션 */
.resend-section {
    margin-top: 16px;
}

/* 전화번호 표시 */
.phone-display-text {
    color: var(--secondary-text-color);
    font-size: 14px;
    margin-top: 8px;
}

/* ========================================
   Terms Agreement (Step 7)
   ======================================== */
.terms-header-section {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.terms-header-wrapper {
    width: 342px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terms-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color-dark);
    line-height: 1.2;
    margin: 0;
}

.terms-header-spacer {
    width: 342px;
    height: 42px;
    padding: 4px;
}

.terms-all-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.terms-all-agree {
    width: 350px;
    padding: 12px;
    background-color: #F4FBFB;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terms-items-container {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.terms-items-box {
    width: 350px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.terms-item-wrapper {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terms-label {
    padding: 8px 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.terms-checkbox-large {
    width: 28px;
    height: 28px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-text-large {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color-dark);
}

.terms-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color-dark);
    flex: 1;
}

.terms-spacer {
    width: 100%;
    height: 96px;
    padding: 4px 20px;
}

/* ========================================
   Completion Page
   ======================================== */
.completion-container {
    text-align: center;
    padding: 40px 0;
}

.completion-icon {
    margin-bottom: 32px;
}

.completion-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 16px;
}

.completion-message {
    font-size: 16px;
    color: var(--secondary-text-color);
    line-height: 1.6;
    margin-bottom: 48px;
}

/* ========================================
   Index Page (Main)
   ======================================== */
/* 지도 영역 */
.map-container {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* 탭 영역 */
.tab-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.tab-header {
    display: flex;
    padding: 16px 20px 0;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-text-color);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-button.active {
    color: var(--primary-color);
    font-weight: 700;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* 섹션 제목 */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--secondary-text-color);
    margin-bottom: 16px;
}

/* 가로 스크롤 리스트 */
.horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    margin-bottom: 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 매물 카드 */
.place-card {
    flex: 0 0 280px;
    width: 280px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.place-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.place-card-content {
    padding: 16px;
}

.place-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card-address {
    font-size: 13px;
    color: var(--secondary-text-color);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.place-card-label {
    font-size: 12px;
    color: var(--secondary-text-color);
}

.place-card-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-dark);
}

.place-card-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.trend-up {
    color: #FF5722;
}

.trend-down {
    color: #2196F3;
}

.trend-icon {
    font-size: 14px;
}

/* ========================================
   Page Header (공통)
   ======================================== */
.page-header {
    width: 100%;
    height: 64px;
    padding: 18px 22px;
    background: var(--header-bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header .header-left,
.page-header .header-right {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .header-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin: 0;
}

.page-header .header-back-btn,
.page-header .header-close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Title Section (비밀번호 변경 등)
   ======================================== */
.title-section {
    padding: 44px 20px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title-section .title-content {
    width: 350px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.title-section .main-heading {
    width: 100%;
    padding: 4px 0;
    font-size: 24px;
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--text-color-dark);
    word-wrap: break-word;
    line-height: 1.4;
    margin: 0;
}

.title-section .step-description {
    width: 100%;
    padding: 4px 0;
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--text-color-dark);
    line-height: 1.5;
    word-wrap: break-word;
    margin: 0;
}

/* ========================================
   Form Page Container
   ======================================== */
.form-page-container {
    width: 390px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.form-page-container .page-form {
    width: 350px;
}

/* ========================================
   Form Input Styles (확장)
   ======================================== */
.form-input.readonly {
    background: white;
    cursor: default;
    display: flex;
    align-items: center;
}

.form-input.error {
    border-color: #E57373;
}

/* ========================================
   Input with Button Row
   ======================================== */
.input-with-button {
    display: flex;
    gap: 7px;
    align-items: center;
}

.input-with-button .form-input {
    width: 240px;
    min-width: 240px;
    flex: none;
}

/* ========================================
   Button Styles (확장)
   ======================================== */
.btn-primary {
    width: 100px;
    height: 48px;
    padding: 4px;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-main);
    line-height: 19px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.btn-primary:hover {
    background: var(--primary-color-hover);
}

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

.btn-secondary {
    width: 100px;
    height: 48px;
    padding: 4px;
    background: white;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-main);
    line-height: 19px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.btn-secondary:hover {
    background: #F4FBFB;
}

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

/* ========================================
   Submit Section
   ======================================== */
.submit-section {
    padding: 20px 0;
}

.btn-submit {
    width: 350px;
    height: 48px;
    padding: 4px;
    background: var(--primary-color);
    color: white;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-main);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background: var(--primary-color-hover);
}

.btn-submit:disabled {
    background: var(--secondary-bg-color);
    color: var(--placeholder-color);
    border: 1px solid var(--border-color);
    cursor: not-allowed;
}

/* ========================================
   Field Error Message
   ======================================== */
.field-error-message {
    color: #E57373;
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 400;
    min-height: 17px;
}

/* ========================================
   Timer Display
   ======================================== */
.timer-display {
    color: var(--primary-color);
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 400;
    margin-top: 4px;
}

/* ========================================
   Dev Code Display (개발모드 인증번호 표시)
   ======================================== */
.dev-code-display {
    background-color: #FFF3CD;
    border: 1px solid #FFECB5;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    color: #856404;
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 700;
}

/* ========================================
   Responsive Width Classes
   ======================================== */
/* 350px 너비 버튼 (반응형) */
.btn-full-width {
    width: 100%;
    max-width: 350px;
}

/* ========================================
   Mobile Responsive (390px 미만)
   ======================================== */
@media (max-width: 390px) {
    /* 페이지 컨테이너 */
    .page-container,
    .app-container {
        max-width: 100% !important;
    }

    /* 고정 너비를 100%로 변환 */
    .title-section .title-content,
    .form-field-wrapper,
    .terms-all-agree,
    .terms-items-box,
    .btn-submit,
    .page-form,
    .store-card-content {
        width: calc(100% - 40px) !important;
        max-width: 350px;
    }

    .terms-header-wrapper,
    .terms-header-spacer {
        width: calc(100% - 40px) !important;
        max-width: 342px;
    }

    .form-page-container {
        width: 100% !important;
        max-width: 390px;
    }

    /* 폼 그룹 반응형 */
    .form-group {
        width: 100%;
    }

    .form-input {
        width: 100% !important;
    }

    /* 입력 필드 + 버튼 행 반응형 */
    .input-button-row {
        width: 100%;
        display: flex;
        gap: 7px;
    }

    .input-button-row .form-input,
    .form-input-narrow {
        flex: 1 !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .input-with-button .form-input {
        flex: 1 !important;
        width: auto !important;
        min-width: 0 !important;
    }

    /* 조회/확인 버튼 고정 너비 */
    .check-button,
    .input-button-row .check-button {
        width: 100px !important;
        flex-shrink: 0;
    }

    /* 버튼 너비 조정 */
    .btn.primary-btn,
    .btn-full-width {
        width: calc(100% - 40px) !important;
        max-width: 350px;
    }

    /* 전체 너비 버튼 */
    .btn-primary-full,
    .btn-secondary-full {
        width: 100% !important;
    }

    /* 이미지 섹션 */
    .about-image-section {
        width: 100% !important;
        max-width: 100%;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* 타이틀 섹션 */
    .title-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 버튼 wrapper */
    .button-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* 페이지 폼 컨테이너 */
    .page-welcome,
    .page-form {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }

    /* 폼 필드 래퍼 */
    .form-field-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 타이틀 컨텐츠 */
    .title-section .title-content {
        width: 100% !important;
        max-width: 100% !important;
    }
}