/**
 * 대출 신청 폼 스타일 - 이미지 디자인 기반
 */

/* 전체 페이지 배경 */
body {
    background-color: #f8f9fa;
}

.landing-contact-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 헤더 섹션 */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 32px;
    font-weight: bold;
    color: #343a40;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.form-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.checkmark {
    color: #4285f4;
    font-weight: bold;
    font-size: 18px;
}

/* 폼 박스 */
.landing-contact-form {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #343a40;
    font-size: 15px;
}

/* 필수 표시 (빨간색 별표) */
.required {
    color: #FF0000;
    margin-left: 2px;
}

/* 도움말 텍스트 */
.help-text {
    color: #6c757d;
    font-size: 13px;
    font-weight: normal;
    margin-left: 5px;
}

/* 입력 필드 */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    color: #343a40;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input::placeholder {
    color: #adb5bd;
}

.form-group input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* 버튼 그룹 (직군, 대출종류) */
.button-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.option-btn {
    padding: 14px 10px;
    background: #FFFFFF;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #343a40;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.option-btn:hover {
    border-color: #4285f4;
    background: #f0f7ff;
}

.option-btn.active {
    border-color: #4285f4;
    background: #4285f4;
    color: #FFFFFF;
    font-weight: 600;
}

.option-btn:focus {
    outline: none;
}

/* 체크박스 그룹 */
.checkbox-group {
    margin-top: 24px;
    margin-bottom: 24px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.6;
    color: #343a40;
    font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
}

.privacy-link {
    color: #4285f4;
    text-decoration: none;
    margin-left: 8px;
    font-weight: 500;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: #d1e7f0;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #b8dae8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #adb5bd;
}

/* 로딩 상태 */
.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 메시지 */
.form-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.form-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.form-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* 반응형 */
@media (max-width: 640px) {
    .landing-contact-form-container {
        padding: 10px;
        margin: 20px auto;
    }
    
    .form-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .form-features {
        gap: 8px;
    }
    
    .feature-item {
        font-size: 13px;
    }
    
    .landing-contact-form {
        padding: 24px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .button-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .option-btn {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 16px;
        font-size: 15px;
    }
}

/* 아주 작은 화면 */
@media (max-width: 400px) {
    .form-title {
        font-size: 20px;
    }
    
    .landing-contact-form {
        padding: 20px 16px;
    }
    
    .option-btn {
        font-size: 12px;
        padding: 10px 6px;
    }
}

/* 접근성 개선 */
.form-group input:focus-visible,
.option-btn:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* IE11 호환성 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .button-group {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    .option-btn {
        -ms-flex: 1 0 23%;
        flex: 1 0 23%;
    }
}
