/* 모바일 모델하우스 위치안내 폼 스타일 */

.mobile-model-house-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.mobile-model-house-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #015152, #ffd700, #015152);

}

.mobile-form-title {
    text-align: center;
    margin-bottom: 10px;
}

.mobile-form-title h3 {
    font-size: 22px;
    font-weight: 700;
    color: #015152;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 2px dashed #015152;
    animation: scrollRight 1s linear infinite;
    background-image: linear-gradient(90deg, #015152 50%, transparent 50%);
    background-size: 20px 3px;
    background-repeat: repeat-x;
    background-position: 0 100%;
    border-bottom: none;
}

@keyframes scrollRight {
    0% { background-position: 0 100%; }
    100% { background-position: 20px 100%; }
}

.mobile-form-title p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.mobile-form {
    max-width: 100%;
}

.mobile-form-group {
    margin-bottom: 20px;
    position: relative;
}

.mobile-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 필수표시 별표 색상 */
.mobile-form-group label .required { color: #dc3545; }

.mobile-form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mobile-form-group input:focus {
    outline: none;
    border-color: #015152;
    background: #f8fff8;
    box-shadow: 0 0 0 3px rgba(1, 81, 82, 0.1);
}

.mobile-form-group input.error {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
}

.mobile-form-group input.valid {
    border-color: #28a745 !important;
    background: #f0f9f0 !important;
}

.mobile-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

/* 개인정보 동의 섹션 */
.mobile-privacy-section {
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.mobile-privacy-header {
    padding: 10px 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
    user-select: none;
}




.mobile-privacy-header h4 {
    font-size: 10px;
    font-weight: 500;
    margin: 0;
}

.mobile-privacy-toggle {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.mobile-privacy-toggle.active {
    transform: rotate(180deg);
}

.mobile-privacy-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    background: white;
    opacity: 0;
    visibility: hidden;
}

.mobile-privacy-content.active {
    max-height: 300px ;

    opacity: 1 ;
    visibility: visible ;
}

.mobile-privacy-text {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mobile-privacy-text::-webkit-scrollbar {
    width: 4px;
}

.mobile-privacy-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.mobile-privacy-text::-webkit-scrollbar-thumb {
    background: #015152;
    border-radius: 2px;
}

.mobile-checkbox-group {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

.mobile-checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #015152;
    border-radius: 50%; /* 동그라미 형태 */
    background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
    position: relative;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 0 0 0 rgba(1,81,82,0.35) inset;
    padding: 0;
}

/* 호버/포커스 상태 */
.mobile-checkbox-group input[type="checkbox"]:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.12), 0 0 0 4px rgba(1,81,82,0.08) inset;
}

.mobile-checkbox-group input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(1,81,82,0.25);
}

/* 체크 상태 */
.mobile-checkbox-group input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: #015152;
}

/* 체크 표시 (체크마크) */
.mobile-checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 11px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%) rotate(45deg);
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    border-radius: 1px;
}

/* 비활성화 */
.mobile-checkbox-group input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e2e6ea;
    border-color: #b5bcc5;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-checkbox-group input[type="checkbox"] { transition: none; }
}

.mobile-checkbox-group label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
}

.mobile-checkbox-group .required {
    color: #dc3545;
    font-weight: 600;
}

/* 제출 버튼 */
.mobile-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 6px 1px #0151525b;
    transform: translateY(-6px);
}

.mobile-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 0px 0px #0151525b;
}

.mobile-submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 글래어(Glare) 모션: 호버 없이 지속 재생 (GPU friendly transform 사용) */
.mobile-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255, 255, 255, 0.473) 50%,
        rgba(255,255,255,0) 100%);
    transform: translateX(-150%) skewX(-20deg);
    animation: mobileBtnGlare 3.8s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: transform;
}

@keyframes mobileBtnGlare {
    0% { transform: translateX(-150%) skewX(-20deg); }

    100% { transform: translateX(200%) skewX(-20deg); }
}

/* 로딩 상태일 때 글래어 과도한 시각적 간섭 줄이기 */
.mobile-submit-btn.loading::before {
    animation-duration: 6s;
    opacity: 0.5;
}

/* 사용자 설정: 모션 감소 환경 존중 */
@media (prefers-reduced-motion: reduce) {
    .mobile-submit-btn::before { animation: none; opacity: 0.4; transform: none; }
}

/* 로딩 스피너 */
.mobile-loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.mobile-submit-btn.loading .mobile-loading-spinner {
    display: inline-block;
}

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

/* 성공 메시지 */
.mobile-success-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    display: none;
    animation: slideInUp 0.5s ease;
}

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

.mobile-success-message h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.mobile-success-message p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 입력 필드 아이콘 */
.mobile-form-group .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: color 0.3s ease;
}

.mobile-form-group input:focus + .input-icon {
    color: #015152;
}

.mobile-form-group input.valid + .input-icon {
    color: #28a745;
}

.mobile-form-group input.error + .input-icon {
    color: #dc3545;
}

/* 플로팅 레이블 효과 */
.mobile-form-group.floating-label {
    position: relative;
}

.mobile-form-group.floating-label label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 5px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.mobile-form-group.floating-label input:focus + label,
.mobile-form-group.floating-label input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: #015152;
    font-weight: 600;
}
