/* Physical Exam Page Styles */

/* Hero Section */
.hero-section-exam {
    background: linear-gradient(135deg, #009EDB 0%, #4A7C7E 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
    min-height: 800px;
}

.hero-container-exam {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content-exam {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title-exam {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.hero-subtitle-exam {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    opacity: 0.95;
}

.hero-description-exam {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-benefits-exam {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.benefit-item-exam {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.benefit-check-exam {
    font-size: 20px;
    font-weight: 700;
}

.hero-actions-exam {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.btn-secondary-exam {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary-exam:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-image-exam {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-exam {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Section Title */
.section-title-exam {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #1A1A1A;
    line-height: 1.2;
}

/* Why Choose China Section */
.why-china-section {
    padding: 80px 0;
    background: url('../src/exam/second_background.png.png') center/cover no-repeat;
    position: relative;
}

.why-china-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 247, 0.92);
    z-index: 0;
}

.why-china-section .container {
    position: relative;
    z-index: 1;
}

.why-china-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.why-card-exam {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.why-card-exam:hover {
    transform: translateY(-8px);
}

.why-icon-exam {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon-exam img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-card-exam h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.why-card-exam p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Packages Section */
.packages-section {
    padding: 80px 0;
    background: white;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.package-card-exam {
    background: linear-gradient(135deg, #f8f9f7 0%, #ffffff 100%);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.package-card-exam:hover {
    transform: translateY(-8px);
    border-color: #009EDB;
    box-shadow: 0 16px 40px rgba(0, 158, 219, 0.15);
}

.package-icon-exam {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-icon-exam img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-card-exam h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.package-card-exam p {
    font-size: 15px;
    color: #666;
    margin: 4px 0;
}

.package-desc-exam {
    font-size: 14px;
    color: #888;
    margin-top: 12px;
}

/* Endoscopy Section */
.endoscopy-section {
    padding: 80px 0;
    background: #f8f9f7;
}

.endoscopy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.endoscopy-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.endoscopy-image img {
    width: 100%;
    height: auto;
    display: block;
}

.endoscopy-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.endoscopy-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    color: #333;
    font-weight: 500;
}

.endoscopy-quote {
    text-align: center;
    margin-top: 40px;
}

.endoscopy-quote blockquote {
    font-size: 22px;
    font-weight: 600;
    color: #4A7C7E;
    font-style: italic;
    margin: 0;
    padding: 24px 40px;
    background: white;
    border-radius: 16px;
    display: inline-block;
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: white;
}

.comparison-subtitle {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #009EDB;
    margin-bottom: 48px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.comparison-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.comparison-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comparison-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #3d3d3d;
    margin: 0;
    letter-spacing: 0.5px;
}

.price-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.price-item {
    padding: 16px 20px;
    border-radius: 10px;
    min-width: 140px;
}

.price-item.red {
    background: #f5e8e8;
}

.price-item.blue {
    background: #e8f0f5;
}

.price-item .country {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #6a6a6a;
}

.price-item .price {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.price-item.red .price {
    color: #c96b6b;
}

.price-item.blue .price {
    color: #4a89b5;
}

.price-arrow {
    font-size: 24px;
    color: #4a89b5;
    flex-shrink: 0;
}

.save-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 18px;
    background: #f0f0f0;
    color: #5a7a9a;
    font-weight: 600;
    font-size: 13px;
    border-radius: 20px;
}

/* Hospitals Exam Section */
.hospitals-exam-section {
    padding: 80px 0;
    background: #f8f9f7;
}

.hospitals-exam-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.hospital-exam-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.hospital-exam-card:hover {
    transform: translateY(-8px);
}

.hospital-exam-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.hospital-exam-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hospital-exam-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 24px 24px 8px;
}

.hospital-exam-subtitle {
    font-size: 15px;
    color: #009EDB;
    font-weight: 600;
    margin: 0 24px 16px;
}

.hospital-exam-features {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hospital-exam-features span {
    font-size: 14px;
    color: #666;
}

/* Journey Section */
.journey-section {
    padding: 80px 0;
    background: white;
}

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

.journey-step {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9f7;
    padding: 24px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 400px;
}

.journey-step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #009EDB 0%, #4A7C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.journey-step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
}

.journey-arrow {
    font-size: 32px;
    color: #009EDB;
    font-weight: 700;
}

/* Why Us Section */
.why-us-section {
    padding: 80px 0;
    background: url('../src/exam/partner_background.jpeg') center/cover no-repeat;
    color: white;
    position: relative;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 40, 80, 0.65) 0%, rgba(10, 70, 90, 0.65) 100%);
    z-index: 0;
}

.why-us-section .container {
    position: relative;
    z-index: 1;
}

.why-us-section .section-title-exam {
    color: white;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 36px 28px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-card-highlight {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(120, 200, 255, 0.5);
    box-shadow: 0 0 30px rgba(120, 200, 255, 0.25);
}

.why-us-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.18);
}

.why-us-icon-circle {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.why-us-icon-circle img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: transparent;
    display: block;
}

.why-us-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.why-us-card p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9f7;
}

.faq-toggle {
    font-size: 28px;
    font-weight: 400;
    color: #009EDB;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a3a4a 0%, #2a5a6a 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 8px;
    opacity: 0.95;
}

.cta-subtext {
    font-size: 18px;
    margin-bottom: 0;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin-top: 60px;
}

.cta-actions .btn-large {
    padding: 16px 40px;
    font-size: 18px;
    min-width: 220px;
    height: 60px;
    line-height: 28px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-us-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container-exam {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-china-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .endoscopy-content {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .hospitals-exam-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title-exam {
        font-size: 32px;
    }
    
    .hero-subtitle-exam {
        font-size: 20px;
    }
    
    .section-title-exam {
        font-size: 28px;
    }
    
    .why-china-grid {
        grid-template-columns: 1fr;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .journey-step {
        min-width: auto;
        width: 100%;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions-exam,
    .cta-actions {
        flex-direction: column;
    }

    .cta-actions {
        margin-top: 40px;
    }

    .cta-actions .btn-large {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
}

/* Contact Us WhatsApp Inline Popup Styles */

.whatsapp-popup-inline {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: top center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 460px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-top: 16px;
    z-index: 100;
}

.whatsapp-popup-inline.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.whatsapp-popup-inline .whatsapp-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.whatsapp-popup-inline .whatsapp-popup-header h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.whatsapp-popup-inline .whatsapp-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.whatsapp-popup-inline .whatsapp-close-btn:hover {
    color: #333;
}

.whatsapp-popup-inline .contact-popup-grid {
    display: flex;
    gap: 16px;
}

.whatsapp-popup-inline .contact-popup-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whatsapp-popup-inline .contact-popup-title {
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-align: center;
}

.whatsapp-popup-inline .contact-popup-qr-container {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.whatsapp-popup-inline .contact-popup-qr {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .whatsapp-popup-inline {
        width: 320px;
        padding: 16px;
    }

    .whatsapp-popup-inline .contact-popup-grid {
        gap: 12px;
    }

    .whatsapp-popup-inline .contact-popup-qr-container {
        padding: 8px;
    }
}