/* 보청기 클리닉 페이지 전용 스타일 */

/* 1개월 무료체험 섹션 개선 */
.highlight-section {
    margin: 60px 0;
}

.highlight-box {
    background: linear-gradient(135deg, #e8f2ff 0%, #d4e8ff 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.1);
    display: flex;
    align-items: center;
    gap: 40px;
}

.highlight-icon {
    flex-shrink: 0;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 140px;
}

.highlight-icon .icon-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066cc;
    line-height: 1;
    margin-bottom: 8px;
}

.highlight-icon .icon-text {
    display: block;
    font-size: 1.125rem;
    color: #333;
    font-weight: 500;
}

.highlight-content {
    flex: 1;
}

.highlight-content h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 15px;
    font-weight: 600;
}

.highlight-content p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
}

.highlight-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.highlight-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #059669;
    font-weight: 500;
}

.highlight-features i {
    font-size: 1.125rem;
}

/* 모바일 1개월 무료체험 반응형 */
@media (max-width: 768px) {
    .highlight-section {
        margin: 40px 0;
        padding: 0 20px;
    }
    
    .highlight-box {
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
        text-align: center;
    }
    
    .highlight-icon {
        min-width: auto;
        width: 120px;
        margin: 0 auto;
        padding: 15px;
    }
    
    .highlight-icon .icon-number {
        font-size: 2rem;
        margin-bottom: 5px;
    }
    
    .highlight-icon .icon-text {
        font-size: 1rem;
    }
    
    .highlight-content h3 {
        font-size: 1.25rem;
        line-height: 1.4;
        word-break: keep-all;
    }
    
    .highlight-content p {
        font-size: 0.875rem;
        margin-bottom: 15px;
    }
    
    .highlight-features {
        justify-content: center;
        gap: 15px;
    }
    
    .highlight-features span {
        font-size: 0.8rem;
    }
}

/* 청각장애 진단 절차 섹션 */
.diagnosis-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .diagnosis-process {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .diagnosis-process {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
}

.diagnosis-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.diagnosis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.diagnosis-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* 모바일에서 숫자 위치 조정 */
@media (max-width: 768px) {
    .diagnosis-card {
        padding: 30px 25px;
        padding-top: 40px;
        margin-top: 20px;
    }
    
    .diagnosis-number {
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
        height: 35px;
        font-size: 1.125rem;
    }
    
    .diagnosis-content {
        text-align: center;
    }
    
    .diagnosis-content h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .diagnosis-content p {
        font-size: 0.875rem;
    }
}

/* 생활 환경별 맞춤 섹션 */
.environment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .environment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .environment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
}

.environment-card {
    background: #f9fafb;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.environment-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.env-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8f2ff 0%, #d4e8ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.env-icon i {
    font-size: 36px;
    color: #0066cc;
}

.environment-card:hover .env-icon {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
}

.environment-card:hover .env-icon i {
    color: white;
}

.environment-card h4 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 15px;
    font-weight: 600;
}

.environment-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .environment-card {
        padding: 30px 20px;
    }
    
    .env-icon {
        width: 70px;
        height: 70px;
    }
    
    .env-icon i {
        font-size: 30px;
    }
    
    .environment-card h4 {
        font-size: 1.125rem;
    }
}

/* 인지기능 보호 효과 섹션 */
.cognitive-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .cognitive-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
}

.warning-section .stat-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.warning-section .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .warning-section .stat-item {
        min-width: auto;
        width: 100%;
        max-width: 250px;
        padding: 25px 20px;
    }
}

/* 프로세스 섹션 추가 스타일 */
.process-section {
    margin: 80px 0;
    background: #f9fafb;
    padding: 60px 0;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.process-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-number {
    width: 60px;
    height: 60px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    position: relative;
    z-index: 2;
}

.process-content h4 {
    font-size: 1.125rem;
    color: #111827;
    margin-bottom: 10px;
    font-weight: 600;
}

.process-content p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* 모바일 프로세스 스타일 */
@media (max-width: 768px) {
    .process-section {
        margin: 50px 0;
        padding: 40px 0;
        background: #f9fafb;
    }
    
    .process-timeline {
        display: block;
        padding: 0 20px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-item {
        display: flex;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 30px;
        padding: 20px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .process-item:last-child {
        margin-bottom: 0;
    }
    
    .process-number {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
        margin: 0 20px 0 0;
    }
    
    .process-content {
        flex: 1;
    }
    
    .process-content h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .process-content p {
        font-size: 0.875rem;
        line-height: 1.4;
        word-break: keep-all;
    }
}

/* 환경별 맞춤 모바일 슬라이더 */
@media (max-width: 768px) {
    .test-details-section .test-items-grid {
        display: none !important;
    }
    
    /* 모바일 테스트 슬라이더 표시 */
    .mobile-test-slider {
        display: block !important;
    }
    
    /* 생활 환경별 맞춤 피팅 그리드 숨김 */
    .environment-grid {
        display: none !important;
    }
    
    /* 모바일 환경 슬라이더 표시 */
    .mobile-environment-slider {
        display: block !important;
        margin-top: 30px;
        position: relative;
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    .mobile-test-slider,
    .mobile-environment-slider {
        display: none !important;
    }
}

/* 모바일 환경 슬라이더 스타일 - 보청기가 필요한 이유와 동일하게 */
.mobile-environment-slider {
    display: none;
    position: relative;
    height: 320px;
    overflow: hidden;
    margin-top: 30px;
}

.mobile-env-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.mobile-env-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-env-content {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.mobile-env-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8f2ff 0%, #d4e8ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2);
}

.mobile-env-icon i {
    font-size: 36px;
    color: #2c5aa0;
}

.mobile-env-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.4;
}

.mobile-env-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    word-break: keep-all;
}

/* 네비게이션 버튼 - 보청기가 필요한 이유와 동일하게 */
.mobile-env-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 5;
}

.mobile-env-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-env-btn:active {
    transform: scale(0.9);
}

.mobile-env-btn.prev {
    left: 10px;
}

.mobile-env-btn.next {
    right: 10px;
}

.mobile-env-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mobile-env-btn svg {
    width: 20px;
    height: 20px;
    color: #666;
}

/* 인디케이터 - 보청기가 필요한 이유와 동일하게 */
.mobile-env-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.mobile-env-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-env-dot.active {
    background: #2c5aa0;
    width: 24px;
    border-radius: 4px;
}

/* 경고 섹션 배경색 개선 */
.warning-section {
    background: linear-gradient(135deg, #f8fafb 0%, #f3f4f6 100%);
}

.warning-card {
    background: white;
    border: 1px solid #e5e7eb;
}

/* 프로세스 섹션 배경 */
.process-section {
    background: white;
}

/* 자가진단 섹션 배경 */
.self-check-section {
    background: #f9fafb;
}

/* 청각장애 진단 절차 섹션 추가 스타일 */
.self-check-section {
    padding: 60px 0;
    margin: 60px 0;
}

@media (max-width: 768px) {
    .self-check-section {
        padding: 40px 0;
        margin: 40px 0;
    }
}

/* 텍스트 레이아웃 개선 */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0066cc;
    display: block;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-desc {
        font-size: 0.85rem;
    }
}

/* 네이버 예약 버튼 강조 */
.cta-naver {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(3, 199, 90, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(3, 199, 90, 0.5);
    }
}

/* 퀵메뉴 네이버 문의 버튼도 강조 */
.quick-item[onclick*="openNaverBooking"] {
    background: #03C75A;
}

.quick-item[onclick*="openNaverBooking"] .quick-icon,
.quick-item[onclick*="openNaverBooking"] span {
    color: white;
}

.quick-item[onclick*="openNaverBooking"]:hover {
    background: #02a048;
}

/* 모바일에서 전체적인 섹션 간격 조정 */
@media (max-width: 768px) {
    .clinic-section {
        padding: 40px 0;
    }
    
    .clinic-header {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .clinic-subtitle {
        font-size: 12px;
    }
    
    .clinic-title {
        font-size: 24px;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    /* 모바일 섭션 패딩 통일 */
    .test-details-section,
    .warning-section,
    .qna-section {
        padding: 0 20px;
        margin: 40px 0;
    }
    
    /* 보청기가 필요한 이유 섹션 상단 여백 추가 */
    .test-details-section:first-of-type {
        margin-top: 60px;
    }
    
    /* Q&A 섹션 모바일 */
    .qna-item {
        margin-bottom: 15px;
    }
    
    .qna-question {
        padding: 20px;
    }
    
    .qna-question h4 {
        font-size: 16px;
    }
    
    .qna-answer-content {
        padding: 20px;
    }
    
    .qna-answer-content p {
        font-size: 14px;
        line-height: 1.6;
    }
}