/* 실손보험료 계산 전용 스타일 - unified_search 스타일 기반 */

/* CSS 변수 */
:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --insurance-gradient: linear-gradient(135deg, #627eea 0%, #4f46e5 100%);
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --glass-blur: blur(12px);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.5;
    color: var(--gray-700);
    background: var(--gray-50);
    overflow-x: hidden;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 컬러풀 배경 */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 5%;
    animation-delay: 0s;
    background: rgba(98, 126, 234, 0.1);
}

.blob-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 5%;
    animation-delay: 3s;
    background: rgba(79, 70, 229, 0.1);
}

.blob-3 {
    width: 150px;
    height: 150px;
    bottom: 5%;
    left: 40%;
    animation-delay: 6s;
    background: rgba(16, 185, 129, 0.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(8px) rotate(-3deg); }
}

/* 히어로 섹션 */
.hero-section {
    padding: 10px 0 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #627eea;
}

.hero-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.1;
}

.gradient-text {
    background: var(--insurance-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.4;
}

/* 메인 컨텐츠 */
.main-content {
    position: relative;
    min-height: 100vh;
    padding-top: 70px;
}

.main-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.insurance-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* PC 검색 인터페이스 - 2열 레이아웃 */
.pc-search-interface {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    height: calc(100vh - 180px);
    align-items: start;
}

/* 검색 사이드바 */
.search-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 25px;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 20px;
}

.search-sidebar-header {
    margin-bottom: 25px;
}

.header-with-back {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    background: var(--insurance-gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.back-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.back-btn i {
    font-size: 16px;
}

.header-text {
    flex: 1;
}

.header-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.header-text p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.search-form-container {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition-fast);
    background: var(--white);
    color: var(--gray-700);
}

.form-control:focus {
    border-color: #627eea;
    box-shadow: 0 0 0 3px rgba(98, 126, 234, 0.1);
    outline: none;
}

.search-btn-primary {
    width: 100%;
    background: var(--insurance-gradient);
    color: var(--white);
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 검색 결과 영역 */
.search-results-area {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-xl);
    min-height: calc(80vh - 140px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.results-header {
    background: rgba(248, 250, 252, 0.8);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.results-title-section h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* 결과 요약 스타일 */
.results-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 12px 16px;
    background: rgba(98, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: #627eea;
    font-weight: 500;
}

.results-summary i {
    font-size: 16px;
}

.results-content {
    flex: 1;
    padding: 20px 25px 25px 25px;
    overflow-y: auto;
}

/* 보험 유형 카드 스타일 */
.insurance-type-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.type-card {
    display: block;
    position: relative;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(98, 126, 234, 0.5);
    transform: translateY(-2px);
}

.type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.type-card input[type="radio"]:checked + .type-content {
    background: var(--insurance-gradient);
    color: white;
    border: 2px solid #627eea;
}

.type-content {
    padding: 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.type-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.type-desc {
    font-size: 14px;
    opacity: 0.8;
}

/* 라디오 버튼 그룹 스타일 */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 14px;
    min-width: 80px;
    justify-content: center;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(98, 126, 234, 0.5);
}

.radio-label input[type="radio"] {
    opacity: 0;
    position: absolute;
}

.radio-label input[type="radio"]:checked + .radio-text {
    color: white;
}

.radio-label:has(input[type="radio"]:checked) {
    background: var(--insurance-gradient);
    border-color: #627eea;
    color: white;
}

.radio-text {
    transition: color 0.3s ease;
}

/* 나이 표시 스타일 */
.age-display {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(98, 126, 234, 0.1);
    border-radius: 6px;
    font-size: 14px;
    color: #627eea;
    display: none;
}

.age-display.show {
    display: block;
}

/* 폼 힌트 스타일 */
.form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* 정보 섹션 스타일 */
.info-section {
    margin-top: 24px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(98, 126, 234, 0.08);
    border: 1px solid rgba(98, 126, 234, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(98, 126, 234, 0.12);
    border-color: rgba(98, 126, 234, 0.3);
    transform: translateY(-1px);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--insurance-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-content h5 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
}

.info-content p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* 결과 카드 스타일 */
.insurance-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insurance-result-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.insurance-result-card:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-logo {
    width: 120px;
    height: 64px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 6px;
    box-shadow: var(--shadow-sm);
}

.company-logo-fallback {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--insurance-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: var(--shadow-sm);
}

.company-details {
    flex: 1;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--gray-800);
}

.product-name {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

.premium-info {
    text-align: right;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
}

.premium-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.premium-amount {
    font-size: 24px;
    font-weight: 700;
    color: #627eea;
}

.premium-period {
    font-size: 15px;
    color: var(--gray-500);
}

.card-footer {
    display: none;
}

.detail-btn {
    padding: 8px 16px;
    background: rgba(98, 126, 234, 0.1);
    border: 1px solid rgba(98, 126, 234, 0.3);
    border-radius: 6px;
    color: #627eea;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-width: fit-content;
}

.detail-btn:hover {
    background: rgba(98, 126, 234, 0.2);
    border-color: #627eea;
}

/* 에러 메시지 스타일 */
.error-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.error-icon {
    font-size: 24px;
    color: #ef4444;
    flex-shrink: 0;
}

.error-content {
    flex: 1;
}

.error-content h4 {
    margin: 0 0 8px 0;
    color: #ef4444;
    font-size: 18px;
}

.error-content p {
    margin: 4px 0;
    color: var(--gray-700);
    font-size: 14px;
}

/* 결과 없음 스타일 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    color: var(--gray-400);
}

.no-results h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.no-results p {
    font-size: 14px;
    margin: 0;
    color: var(--gray-600);
}

/* 로딩 상태 */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-animation {
    margin: 0 auto 20px;
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #627eea;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }
.loading-dots div:nth-child(3) { animation-delay: 0s; }

@keyframes loading-bounce {
    0% {
        top: 8px;
        height: 64px;
    }
    50%, 100% {
        top: 24px;
        height: 32px;
    }
}

.loading-animation p {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0;
}

/* 검색 플레이스홀더 */
.search-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.search-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
    color: var(--gray-400);
}

.search-placeholder h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.search-placeholder p {
    font-size: 14px;
    margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .pc-search-interface {
        grid-template-columns: 360px 1fr;
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .pc-search-interface {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .insurance-content {
        padding: 15px 15px 30px 15px;
    }
    
    .hero-section {
        padding: 10px 0 20px;
    }
    
    .main-content {
        padding-top: 70px;
    }
    
    .search-sidebar,
    .search-results-area {
        border-radius: var(--radius-lg);
        padding: 20px;
    }
    
    .results-header {
        padding: 15px 20px;
    }
    
    .results-content {
        padding: 15px 20px 20px 20px;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .radio-label {
        min-width: auto;
        width: 100%;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .premium-info {
        text-align: left;
        width: 100%;
        align-items: flex-start;
    }
    
    .premium-display {
        justify-content: flex-start;
    }
    
    .premium-amount {
        font-size: 20px;
    }
    
    .company-logo,
    .company-logo-fallback {
        width: 56px;
        height: 56px;
    }
    
    .company-logo-fallback {
        font-size: 22px;
    }
    
    .info-card {
        padding: 12px;
        gap: 10px;
    }
    
    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .info-content h5 {
        font-size: 15px;
    }
    
    .info-content p {
        font-size: 12px;
    }
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(98, 126, 234, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(98, 126, 234, 0.5);
} 

/* =====================================================
   모바일 검색 인터페이스 스타일
   ===================================================== */

/* 모바일 검색 인터페이스 (기본적으로 숨김) */
.mobile-search-interface {
    display: none;
}

/* 모바일 검색 결과 영역 (기본적으로 숨김) */
.mobile-search-results {
    display: none;
}

.mobile-search-trigger {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--insurance-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    display: none; /* 기본적으로 숨김 */
    align-items: center;
    justify-content: center;
}

.mobile-search-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin: 0;
    padding: 0;
}

.mobile-search-overlay.active {
    display: block;
    opacity: 1;
}

/* 바텀시트가 열릴 때 body 스크롤 방지 */
body.mobile-search-active {
    overflow: hidden;
}

.mobile-search-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-height: 80vh;
    background: white;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
}

.mobile-search-bottom-sheet.active {
    transform: translateY(0);
}

.mobile-search-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid var(--gray-200);
    z-index: 10;
}

.drag-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 0 auto 15px auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h3 {
    margin: 0;
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-500);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.mobile-search-form-container {
    padding: 20px;
}

.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.mobile-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--gray-700);
    height: 48px;
}

.mobile-form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.mobile-radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--white);
}

.mobile-radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.mobile-radio-label input[type="radio"] {
    display: none;
}

.mobile-radio-label input[type="radio"]:checked + .mobile-radio-text {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-radio-label input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.mobile-radio-text {
    font-size: 14px;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.mobile-type-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-type-card {
    display: block;
    cursor: pointer;
    padding: 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--white);
}

.mobile-type-card:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.mobile-type-card input[type="radio"] {
    display: none;
}

.mobile-type-card input[type="radio"]:checked + .mobile-type-content {
    color: var(--primary-color);
}

.mobile-type-card input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.mobile-type-content {
    transition: all var(--transition-fast);
}

.mobile-type-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.mobile-type-desc {
    font-size: 12px;
    color: var(--gray-600);
}

.mobile-search-btn {
    width: 100%;
    padding: 15px;
    background: var(--insurance-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 모바일 검색 결과 영역 스타일 */
.mobile-search-results {
    display: none !important; /* 초기에는 숨김 */
    position: fixed !important;
    top: 50px !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 50px) !important;
    background: white !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    padding: 0 !important;
}

/* 검색 후 결과 표시 */
.mobile-search-results.show {
    display: block !important;
}

.mobile-results-container {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 1px !important;
}

.mobile-result-header {
    margin-bottom: 12px !important;
    padding: 15px 12px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.mobile-result-header .back-button {
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
}

.mobile-result-header .back-button:hover {
    background: #e9ecef !important;
}

.mobile-result-header .header-content {
    flex: 1 !important;
}

.mobile-result-header h3 {
    margin: 0 0 4px 0 !important;
    font-size: 18px !important;
    color: #333 !important;
    font-weight: 600 !important;
}

.mobile-result-count {
    font-size: 14px !important;
    color: #666 !important;
}

.mobile-result-list {
    width: 100% !important;
    display: block !important;
}

.mobile-result-list .insurance-card {
    width: 100% !important;
    margin-bottom: 12px !important;
    padding: 15px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.mobile-result-list .insurance-card .card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.mobile-result-list .insurance-card .company-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
}

.mobile-result-list .insurance-card .company-logo {
    display: none !important;
}

.mobile-result-list .insurance-card .company-logo-fallback {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: var(--insurance-gradient) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    border: 1px solid #e0e0e0 !important;
}

.mobile-result-list .insurance-card .company-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.mobile-result-list .insurance-card .company-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 4px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mobile-result-list .insurance-card .product-name {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mobile-result-list .insurance-card .premium-info {
    text-align: left !important;
    flex-shrink: 0 !important;
    min-width: 90px !important;
}

.mobile-result-list .insurance-card .premium-amount {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.mobile-result-list .insurance-card .premium-period {
    font-size: 13px !important;
    color: #666 !important;
    margin: 2px 0 0 0 !important;
    line-height: 1.2 !important;
}

/* =====================================================
   모바일 반응형 디자인 (768px 이하)
   ===================================================== */
@media (max-width: 768px) {
    /* 모바일 검색 인터페이스 활성화 */
    .mobile-search-interface {
        display: block;
    }
    
    /* 모바일 검색 트리거 버튼 표시 */
    .mobile-search-trigger {
        display: flex;
    }

    .mobile-result-list .insurance-card .card-header {
        align-items: flex-start !important;
    }
    
    
    /* PC 검색 인터페이스 숨김 */
    .pc-search-interface {
        display: none;
    }
    
    /* PC 검색 결과 영역 숨김 */
    .search-results-area {
        display: none !important;
    }
    
    /* 메인 컨테이너 조정 */
    .main-wrapper {
        padding: 0;
    }
    
    .insurance-content {
        padding: 0;
        max-width: 100%;
    }
    
    /* 히어로 섹션 모바일 조정 */
    .hero-section {
        padding: 60px 20px 40px 20px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* 모바일에서 검색 결과가 있을 때 히어로 섹션 높이 줄이기 */
    .hero-section.search-active {
        padding: 40px 20px 20px 20px;
    }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
    .mobile-search-trigger {
        display: flex;
        bottom: 25px;
        right: 15px;
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .hero-section {
        padding: 50px 15px 30px 15px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .mobile-search-results {
        padding: 8px !important;
    }
    
    .mobile-result-list .insurance-card {
        margin-bottom: 10px !important;
        padding: 12px !important;
    }
    
    .mobile-result-list .insurance-card .company-name {
        font-size: 15px !important;
    }
    
    .mobile-result-list .insurance-card .product-name {
        font-size: 13px !important;
    }
    
    .mobile-result-list .insurance-card .premium-amount {
        font-size: 16px !important;
    }
}