/* 보험사 고객센터 - 통합 디자인 시스템 */

/* ===== CSS 변수 ===== */
:root {
    /* 메인 색상 - 고객센터 테마 (블루 계열) */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --accent-color: #1d4ed8;
    
    /* 그라디언트 */
    --callcenter-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --glass-gradient: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
    
    /* 배경 */
    --bg-primary: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-card: rgba(255, 255, 255, 0.9);
    
    /* 텍스트 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* 그림자 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* 레이아웃 */
    --sidebar-width: 380px;
    --border-radius: 12px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 32px;
}

/* ===== 기본 리셋 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.unified-search-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== 글래스모피즘 배경 ===== */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.glass-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #60a5fa, #3b82f6);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.blob-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #1d4ed8, #1e40af);
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(-10px) rotate(240deg); }
}

/* ===== 메인 래퍼 ===== */
.main-wrapper {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== 히어로 섹션 ===== */
.hero-section {
    text-align: center;
    padding: 10px 0px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--callcenter-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: rgb(0, 0, 0);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.gradient-text {
    background: var(--callcenter-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem;
    color: rgba(105, 105, 105, 0.9);
    line-height: 1.5;
    margin: 0;
}

/* ===== 메인 컨텐츠 ===== */
.main-content {
    padding: 35px 0 20px 0;
    margin-top: 34px; /*헤더공간맞추려고 요소보고 강제로 맞춤 */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.pc-search-interface {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--spacing-lg);
    min-height: 600px;
}

/* ===== 검색 사이드바 ===== */
.search-sidebar {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
    position: sticky;
    top: var(--spacing-md);
}

.search-sidebar-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-with-back {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--callcenter-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.header-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== 검색 폼 ===== */
.search-form-container {
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label, .form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label i {
    color: var(--primary-color);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-hint i {
    color: var(--primary-color);
    font-size: 12px;
}

/* ===== 필터 버튼 ===== */
.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.filter-btn.active {
    background: var(--callcenter-gradient);
    border-color: var(--primary-color);
    color: white;
}

.filter-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ===== 도움말 섹션 ===== */
.info-section {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.info-card {
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.info-icon {
    margin-bottom: 12px;
}

.info-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.info-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.info-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-content li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.info-content li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== 검색 결과 영역 ===== */
.search-results-area {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    min-height: 400px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.results-title-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.results-title-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-title-section h3 i {
    color: var(--primary-color);
}

/* 모바일 백버튼 */
.mobile-back-btn {
    display: none;
}

/* ===== 보험사 그리드 ===== */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
    padding: 0;
}

.insurance-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.insurance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* ===== 카드 헤더 ===== */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.company-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.company-logo {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    flex-shrink: 0;
}

.company-name, .company-name2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.company-type {
    background: var(--callcenter-gradient);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.contact-info {
    margin-bottom: var(--spacing-sm);
}

.phone-link {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none;
}

.phone-link:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline !important;
}

.header-ars-button {
    background: var(--callcenter-gradient);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    flex-shrink: 0;
}

.header-ars-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%);
}

.header-ars-button i {
    font-size: 14px;
}

/* ===== 카드 바디 ===== */
.card-body {
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.info-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row i {
    width: 20px;
    color: var(--primary-color);
    font-size: 14px;
    text-align: center;
    flex-shrink: 0;
}

.info-row a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 14px;
}

.info-row a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.info-row span {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

/* ===== ARS 버튼 ===== */
.ars-button {
    width: 100%;
    padding: 10px 16px;
    background: var(--callcenter-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ars-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%);
}

.ars-button i {
    font-size: 16px;
}

/* ===== 애니메이션 ===== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.insurance-card:nth-child(1) { animation-delay: 0.1s; }
.insurance-card:nth-child(2) { animation-delay: 0.2s; }
.insurance-card:nth-child(3) { animation-delay: 0.3s; }
.insurance-card:nth-child(4) { animation-delay: 0.4s; }
.insurance-card:nth-child(5) { animation-delay: 0.5s; }
.insurance-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== 우편물 주소 버튼 ===== */
.postal-address-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.postal-address-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.postal-address-btn:active {
    transform: translateY(0);
}

.postal-address-btn i {
    font-size: 14px;
}

/* ===== 우편물 주소 모달 ===== */
.postal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.postal-modal.show {
    display: block;
    opacity: 1;
}

.postal-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.postal-modal-content {
    position: relative;
    background: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.postal-modal.show .postal-modal-content {
    transform: translateY(0);
}

.postal-modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px 16px 0 0;
}

.postal-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.postal-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.postal-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.postal-modal-body {
    padding: 24px;
}

.postal-address-info {
    margin-bottom: 20px;
}

.postal-zipcode {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    text-align: center;
}

.postal-address {
    font-size: 15px;
    line-height: 1.8;
    color: #1e293b;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    white-space: pre-wrap;
    word-break: keep-all;
}

.postal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.postal-copy-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.postal-copy-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.postal-copy-btn:active {
    transform: translateY(0);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .postal-modal-content {
        margin: 20% 16px;
        max-width: none;
    }
    
    .postal-modal-header {
        padding: 20px;
    }
    
    .postal-modal-header h3 {
        font-size: 18px;
    }
    
    .postal-modal-body {
        padding: 20px;
    }
    
    .postal-address {
        font-size: 14px;
        padding: 14px;
    }
    
    .postal-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== 모달 스타일 ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
}

.close-modal, .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.close-modal:hover, .close-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: var(--spacing-md);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 1024px) {
    .pc-search-interface {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .search-sidebar {
        order: 2;
        position: static;
        max-height: none;
    }
    
    .search-results-area {
        order: 1;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0px;
    }

    .card-body {
        margin-bottom: 0px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .insurance-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .insurance-card {
        padding: var(--spacing-sm);
    }
    
    .company-logo {
        width: 80px;
        height: 50px;
    }
    
    .company-name2 {
        font-size: 16px;
    }
    
    .header-ars-button {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .modal-content {
        margin: 10% 5%;
        max-width: none;
    }
}

/* ===== 추가 유틸리티 ===== */
.result-count {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.no-results, .empty-state {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-muted);
}

.no-results i, .empty-state i {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.no-results h4, .empty-state h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.no-results p, .empty-state p {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== 모바일 최적화 ===== */

/* 모바일 검색 트리거 버튼 */
.mobile-search-trigger {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--callcenter-gradient);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-search-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

/* 모바일 검색 인터페이스 */
.mobile-search-interface {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 70vh;
    transform: translateY(100%);
}

.mobile-search-interface.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-search-interface .mobile-search-header {
    background: white;
    color: rgb(56, 56, 56);
    padding: 0px 20px 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10001;
    border-radius: 20px 20px 0px 0px;
}

.mobile-search-interface .mobile-search-header::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.mobile-search-interface .mobile-search-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.mobile-search-interface .mobile-close-btn {
    background: none;
    border: none;
    color: rgb(177, 7, 7);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-search-interface .mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-search-form {
    background: white;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.mobile-search-interface.active .mobile-search-form {
    transform: none;
}

.mobile-form-group {
    margin-bottom: 24px;
}

.mobile-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mobile-form-label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.mobile-search-input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    transition: border-color 0.3s ease;
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mobile-filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-filter-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgb(255, 255, 255);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.mobile-filter-btn i {
    margin-right: 12px;
    font-size: 18px;
}

.mobile-filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.mobile-filter-btn.active {
    background: var(--callcenter-gradient);
    border-color: var(--primary-color);
    color: white;
}

/* 768px 이하 모바일 반응형 */
@media (max-width: 768px) {
    /* 모바일 트리거 표시 */
    .mobile-search-trigger {
        display: flex;
    }
    
    .mobile-search-interface {
        display: block;
    }
    
    /* 좌측 사이드바 숨김 */
    .search-sidebar {
        display: none;
    }
    
    /* 우측 콘텐츠 전체 폭 사용 */
    .pc-search-interface {
        display: block;
    }
    
    .search-results-area {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 12px;
        border-radius: 8px;
    }
    
    .container {
        padding: 0px;
    }
    
    /* 히어로 섹션 모바일 최적화 */
    .hero-section {
        padding: 20px 0px 5px 0px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    /* 보험사 카드 모바일 최적화 */
    .insurance-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 4px;
    }
    
    .insurance-card {
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .card-header {
        flex-direction: row;
        align-items: center;
        margin-bottom: 1px;
    }
    
    .company-info {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex: 1;
    }
    
    .company-name {
        font-size: 18px;
        margin: 0;
    }
    
    .company-type {
        background: rgba(59, 130, 246, 0.1);
        color: var(--primary-color);
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }
    
    .contact-info {
        gap: 12px;
    }
    
    .info-row {
        padding: 5px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .contact-info {
        margin-bottom: 0px;
    }


    .info-row:last-child {
        border-bottom: none;
    }
    
    .info-row i {
        width: 20px;
        text-align: center;
        margin-right: 12px;
        color: var(--primary-color);
    }
    
    .phone-link {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
    }
    
    .phone-link:hover {
        text-decoration: underline;
    }
    
    /* 결과 헤더 모바일 최적화 */
    .results-header {
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 20px;
    }
    
    .results-title-section {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: var(--callcenter-gradient);
        border: none;
        border-radius: 8px;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .mobile-back-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    .results-title-section h3 {
        font-size: 20px;
        margin-bottom: 0;
        flex: 1;
    }
    
    .result-count {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    /* body 패딩 조정 */
    body.unified-search-page {
        padding-bottom: 80px;
    }
}

/* 480px 이하 작은 모바일 추가 최적화 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .insurance-card {
        padding: 16px;
    }
    
    .company-name {
        font-size: 16px;
    }
    
    .mobile-search-trigger {
        width: 56px;
        height: 56px;
        font-size: 20px;
        bottom: 16px;
        right: 16px;
    }
    
    .mobile-search-form {
        padding: 16px;
    }
    
    .mobile-filter-btn {
        padding: 14px 16px;
        font-size: 15px;
    }
} 