/* Loan Pro 직관적인 UI 디자인 */

/* CSS 리셋 및 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #ffffff;
    min-height: 100vh;
    font-size: 16px;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 - 깔끔하고 직관적 */
.header {
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    background: #4f46e5;
    color: white;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 12px;
    margin-right: 12px;
    font-size: 18px;
}

.logo-text h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
    color: #1a202c;
}

.logo-text p {
    font-size: 12px;
    margin: 0;
    color: #718096;
}

/* 네비게이션 - 명확하고 간단 */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: #4f46e5;
    color: white;
}

.mobile-nav-links {
    display: none;
}

/* 헤더 로그인 버튼 */
.header-login {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.header-login .user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-login .user-name {
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
}

.header-login .btn-admin,
.header-login .btn-logout,
.header-login .btn-login {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.header-login .btn-admin {
    background: #4f46e5;
    color: white;
}

.header-login .btn-admin:hover {
    background: #4338ca;
}

.header-login .btn-logout {
    background: #e2e8f0;
    color: #4a5568;
}

.header-login .btn-logout:hover {
    background: #cbd5e0;
}

.header-login .btn-login {
    background: #4f46e5;
    color: white;
}

.header-login .btn-login:hover {
    background: #4338ca;
}

/* Nextend Social Login 버튼 스타일 커스터마이징 */
.header-login .nsl-container {
    margin: 0 !important;
}

.header-login .nsl-button {
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

/* 모달 자기소개 스타일 */
.self-introduction {
    white-space: pre-wrap !important;
    line-height: 1.6 !important;
    color: #4a5568 !important;
    font-size: 14px !important;
    margin-top: 10px !important;
    padding: 12px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    border-left: 4px solid #667eea !important;
}

/* 퀵 메뉴 - 반투명한 노란색 그라데이션 */
.quick-menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(135deg, 
        rgba(255, 235, 59, 0.8) 0%, 
        rgba(255, 193, 7, 0.7) 50%, 
        rgba(255, 152, 0, 0.6) 100%);
    padding: 16px 12px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.quick-menu-title {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.quick-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 248, 225, 0.8) 50%, 
        rgba(255, 243, 205, 0.7) 100%);
    color: #2D3748;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.3);
    min-width: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.quick-menu-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.9) 0%, 
        rgba(255, 152, 0, 0.8) 50%, 
        rgba(255, 111, 0, 0.7) 100%);
    color: white;
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
    border-color: rgba(255, 193, 7, 0.6);
}

.quick-menu-item:active {
    transform: translateX(-2px) scale(0.98);
}

.quick-menu-icon {
    display: none;
}

/* 히어로 섹션 - 명확한 목적 전달 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 120px 20px 80px;
    margin-top: 72px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 검색 섹션 - 카드 형태로 명확하게 */
.search-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: -60px auto 60px auto;
    max-width: 1000px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.search-title {
    text-align: center;
    margin-bottom: 32px;
}

.search-title h3 {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 700;
}

.search-title p {
    font-size: 16px;
    color: #718096;
    display: none;
}

.search-form {
    display: flex;
    flex-direction: column;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.form-group {
    text-align: left;
}

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

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #2d3748;
    transition: border-color 0.2s ease;
    height: 48px;
    box-sizing: border-box;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #4f46e5;
    outline: none;
}

.form-group input[type="text"] {
    background: white;
}

.search-btn {
    padding: 12px 24px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 48px;
    align-self: end;
}

.search-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.alert {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    border-left: 4px solid #e53e3e;
    display: none;
}

.alert.hidden {
    display: none;
}

/* 결과 섹션 */
.results-section {
    padding: 40px 0;
}

.sort-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.sort-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.sort-buttons {
    display: flex;
    gap: 8px;
}

.sort-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sort-btn:hover {
    background: #edf2f7;
}

.sort-btn.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* 상담사 카드 - 직관적이고 읽기 쉽게 */
.consultant-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.consultant-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.consultant-card .bank-logo {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(118, 75, 162, 0.05) 100%) !important;
    border: 0 !important;
    border-radius: 12px !important;
    padding: 8px !important;
    text-align: center;
    margin: 0 auto 16px auto !important;
    height: 62px !important;
    width: 90% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    transition: all 0.3s ease;
}

.consultant-card .bank-logo:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.08) 0%, 
        rgba(118, 75, 162, 0.08) 100%) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.consultant-card .bank-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.consultant-card .business-card-mini {
    margin-bottom: 16px;
}

.consultant-card .business-card-mini img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.consultant-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #2d3748;
}

.consultant-title {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
}

.consultant-info {
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 8px;
}

.info-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #718096;
}

.specialties {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.consultant-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.consultant-actions .btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    border: none;
}

.consultant-actions .btn-primary {
    background: #4f46e5;
    color: white;
}

.consultant-actions .btn-primary:hover {
    background: #4338ca;
}

.consultant-actions .btn-secondary {
    background: white;
    color: #4f46e5;
    border: 1px solid #4f46e5;
}

.consultant-actions .btn-secondary:hover {
    background: #f7fafc;
}

/* 모달 - 깔끔하고 집중할 수 있도록 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.modal-content {
    background: white;
    margin: auto;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin-top: 5vh;
}

.modal-close {
    color: #718096;
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #2d3748;
    background: #f7fafc;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-header p {
    font-size: 16px;
    color: #718096;
}

.modal-header-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    margin-top: 16px;
    padding: 0 20px;
}

.modal-header-info .bank-logo {
    width: 200px !important;
    height: 80px !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #4f46e5;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modal-header-info .bank-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.modal-header-text {
    text-align: left;
}

.modal-header-text h3 {
    font-size: 24px;
    margin: 0;
    color: #2d3748;
}

.modal-header-text p {
    font-size: 16px;
    color: #718096;
    margin: 4px 0 0;
}

.business-card-container {
    margin-bottom: 24px;
    text-align: center;
}

.business-card-display {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.no-business-card {
    width: 100%;
    max-width: 400px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    color: #718096;
    font-size: 14px;
}

.contact-info {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d3748;
    font-size: 15px;
    margin-bottom: 12px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #4f46e5;
    flex-shrink: 0;
}

.copy-btn {
    background: #f7fafc;
    color: #4f46e5;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.copy-btn:hover {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

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

#modalDescription {
    margin-bottom: 24px;
}

#modalDescription h4 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 600;
}

#modalDescription p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.modal .consultant-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* 푸터 - 간결하고 정보 제공 */
.footer {
    background: #f7fafc;
    color: #718096;
    padding: 40px 0;
    font-size: 14px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-info h3 {
    color: #2d3748;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

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

.footer-copyright {
    margin-top: 16px;
    color: #a0aec0;
    font-size: 13px;
}

/* 로딩 및 메시지 */
.loading {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.message {
    visibility: hidden;
    min-width: 280px;
    background: white;
    color: #2d3748;
    text-align: center;
    border-radius: 8px;
    padding: 16px 20px;
    position: fixed;
    z-index: 100001;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.message.show {
    visibility: visible;
    animation: messageShow 0.3s ease-out;
}

.message.success { 
    border-left: 4px solid #38a169; 
    background: #f0fff4;
}

.message.error { 
    border-left: 4px solid #e53e3e; 
    background: #fed7d7;
}

.message.info { 
    border-left: 4px solid #3182ce; 
    background: #ebf8ff;
}

@keyframes messageShow {
    from {
        bottom: 0; 
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    } 
    to {
        bottom: 24px; 
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav-links {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        justify-content: space-around;
        background: #f7fafc;
        border-radius: 8px;
        padding: 8px;
        border: 1px solid #e2e8f0;
    }

    .mobile-nav-links a {
        text-decoration: none;
        color: #4a5568;
        font-weight: 500;
        font-size: 14px;
        padding: 8px 12px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        background: #4f46e5;
        color: white;
    }
    
    .header-login {
        width: 100%;
        justify-content: center;
        margin: 0;
        padding: 8px 0;
    }
    
    .header-login .user-menu {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .header-login .user-name {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .header-login .btn-admin,
    .header-login .btn-logout,
    .header-login .btn-login {
        font-size: 13px;
        padding: 6px 14px;
    }
    
    .header-login .nsl-container {
        width: 100% !important;
    }
    
    .header-login .nsl-button {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* 모바일 검색 버튼 개선 */
    .search-btn {
        font-weight: 600 !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
        transition: all 0.3s ease !important;
    }
    
    .search-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
    }
    
    .search-btn:active {
        transform: translateY(0) !important;
        box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3) !important;
    }
    
    /* 모바일 모달 자기소개 스타일 */
    .self-introduction {
        font-size: 13px !important;
        padding: 10px !important;
        line-height: 1.5 !important;
        margin-top: 8px !important;
    }

    .hero {
        padding: 100px 20px 60px;
        margin-top: 140px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .search-section {
        padding: 24px;
        margin: -40px 16px 40px;
        border-radius: 12px;
    }

    .search-title h3 {
        font-size: 24px;
    }

    .search-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .search-row .form-group:nth-child(1),
    .search-row .form-group:nth-child(2) {
        grid-column: span 1;
    }
    
    .search-row .form-group:nth-child(3) {
        grid-column: span 1;
    }
    
    .search-btn {
        grid-column: span 1;
        width: 100%;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .consultant-card {
        padding: 20px;
    }

    .consultant-card .bank-logo {
        background: linear-gradient(135deg, 
            rgba(102, 126, 234, 0.05) 0%, 
            rgba(118, 75, 162, 0.05) 100%) !important;
        border: 0 !important;
        border-radius: 12px !important;
        padding: 8px !important;
        margin: 0 auto 16px auto !important;
        height: 62px !important;
        width: 90% !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    }

    .consultant-card .bank-logo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .modal-content {
        margin: 20px auto;
        padding: 24px;
        max-height: calc(100vh - 40px);
        width: 97%; /* 모바일에서 화면의 97%까지 폭 확장 */
    }

    /* 모바일 모달 명함 및 로고 박스 위치 조정 */
    .business-card-container {
        text-align: left;
    }

    .business-card-display,
    .no-business-card {
        margin: 0;
    }

    .modal-header-info {
        padding: 0;
        gap: 20px;
        justify-content: flex-start;
    }

    .modal-header-info .bank-logo {
        width: 150px !important;
        height: 80px !important;
        flex-shrink: 0;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .modal-header-info .bank-logo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .sort-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; /* 12px에서 8px로 줄임 */
        margin-bottom: 16px; /* 24px에서 16px로 줄임 */
    }

    .sort-buttons {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px; /* 8px에서 6px로 줄임 */
    }

    .sort-btn {
        flex: 1;
        min-width: 80px;
        /* 모바일에서 높이 50% 낮게, 글자 크기 작게 */
        padding: 4px 12px !important; /* 기존 8px 16px에서 50% 감소 */
        font-size: 12px !important; /* 기존 14px에서 작게 */
        border-radius: 16px !important; /* 기존 20px에서 작게 */
        font-weight: 500 !important;
    }
    
    .sort-label {
        font-size: 14px !important; /* 모바일에서 라벨도 작게 */
        margin-bottom: 4px !important;
    }

    .quick-menu {
        left: auto;
        right: 16px;
        bottom: 20px;
        top: auto;
        transform: none;
        flex-direction: column;
        justify-content: flex-start;
        padding: 8px 6px;
        border-radius: 8px;
        background: linear-gradient(135deg, 
            rgba(255, 235, 59, 0.9) 0%, 
            rgba(255, 193, 7, 0.8) 50%, 
            rgba(255, 152, 0, 0.7) 100%);
        max-width: 90px;
    }

    .quick-menu-title {
        display: block;
        font-size: 10px;
        margin-bottom: 6px;
    }

    .quick-menu-item {
        flex: none;
        min-width: auto;
        padding: 6px 4px;
        font-size: 9px;
        border-radius: 6px;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.9) 0%, 
            rgba(255, 248, 225, 0.8) 50%, 
            rgba(255, 243, 205, 0.7) 100%);
        color: #2D3748;
        border: 1px solid rgba(255, 193, 7, 0.3);
        line-height: 1.3;
    }

    .quick-menu-item:hover {
        background: linear-gradient(135deg, 
            rgba(255, 193, 7, 0.9) 0%, 
            rgba(255, 152, 0, 0.8) 50%, 
            rgba(255, 111, 0, 0.7) 100%);
        color: white;
        transform: translateX(2px);
    }
}

/* 폼 요소 개선 */
.form-group select option {
    background: white;
    color: #2d3748;
    padding: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.checkbox-item:hover {
    color: #4f46e5;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    margin-right: 8px;
}

/* 접근성 개선 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* 스크롤바 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f7fafc;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* 상담사 이름 행 */
.consultant-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* 은행직원 배지 */
.bank-employee-badge {
    display: inline-block;
    background: white;
    color: #2d3748;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 6px;
    border: 2px solid #f97316;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

/* 주요사이트 섹션 */
.main-sites-section {
    background: #f8f9ff;
    padding: 60px 0;
    margin-top: 60px;
}

.main-sites-content h3 {
    text-align: center;
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 40px;
    font-weight: 700;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.site-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-link:hover .site-item {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.site-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    flex-shrink: 0;
}

.site-text h4 {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.site-text p {
    font-size: 14px;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

/* 주요사이트 모바일 반응형 */
@media (max-width: 768px) {
    .main-sites-section {
        padding: 40px 0;
    }
    
    .main-sites-content h3 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .site-item {
        padding: 20px;
        gap: 15px;
    }
    
    .site-icon {
        font-size: 28px;
        width: 50px;
        height: 50px;
    }
    
    .site-text h4 {
        font-size: 15px;
    }
    
    .site-text p {
        font-size: 13px;
    }
}