:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1200px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 1000;
    padding: 1.25rem 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.company-logo-img {
    height: 42px;
    width: auto;
}

.logo-divider {
    width: 1px;
    height: 16px;
    background: #e2e8f0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(14, 165, 233, 0.08) 0%, transparent 40%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-target-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    font-family: 'Outfit', sans-serif;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--text-dark);
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-img {
    position: absolute;
    z-index: 10;
    width: 350px;
    height: 350px;
}

.floating-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: floating 8s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(2deg);
    }

    75% {
        transform: translateY(10px) rotate(-2deg);
    }
}

.hero-card-stack {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-card {
    position: absolute;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 200px;
    border: 1px solid #f1f5f9;
    animation: float 6s ease-in-out infinite;
}

.hero-card i {
    color: var(--primary);
    width: 40px;
    height: 40px;
}

.hero-card span {
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    bottom: 60px;
    right: 0;
    animation-delay: 1s;
}

.card-3 {
    top: 120px;
    left: 160px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    z-index: -1;
}

/* Quiz Section */
.quiz-section {
    padding: 8rem 0;
    min-height: 100vh;
}

.quiz-header {
    margin-bottom: 3rem;
}

.progress-bar-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 100px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 25%;
    transition: width 0.5s ease;
}

.step-counter {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.quiz-card {
    padding: 3rem;
    margin-bottom: 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
}

.hidden {
    display: none !important;
}

/* Question Styles */
.question-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Outfit';
}

.question-desc {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.option-btn {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.option-btn i {
    color: var(--primary);
}

.option-btn span {
    font-weight: 600;
}

/* Results Section */
.results-section {
    padding: 8rem 0;
}

.results-header {
    text-align: center;
    margin-bottom: 4rem;
}

.results-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Outfit';
}

.program-recommendation-card {
    grid-column: 1 / -1;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--primary);
    border-radius: 24px;
    background: linear-gradient(to bottom right, rgba(37, 99, 235, 0.03), rgba(255, 255, 255, 0.8));
}

.program-recommendation-card h3 {
    font-family: 'Outfit';
    color: var(--text-dark);
}

.program-details h4 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
}

.item-chip {
    background: #f1f5f9;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}

.item-chip:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.item-chip.highlighted {
    background: #eef2ff;
    color: var(--primary);
    border: 1px dashed var(--primary);
}

.item-chip.highlighted:hover {
    background: var(--primary);
    color: white;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: var(--transition);
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal-body {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.05rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.summary-card {
    padding: 2rem;
    position: sticky;
    top: 6rem;
}

.summary-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.summary-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    font-weight: 600;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.section-title:first-child {
    margin-top: 0;
}

.section-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.item-card {
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
}

.item-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.item-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hospitals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hospital-card {
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.hospital-card:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.hospital-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.hospital-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #ecfdf5;
    color: #059669;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hospital-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.price-hint {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.hospital-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hospital-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        padding-top: 4rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .quiz-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {

    .glass-nav,
    footer,
    .results-actions,
    .hero-btns,
    .item-tag,
    .hero-target-badge {
        display: none !important;
    }

    body {
        background: white !important;
        padding: 0 !important;
    }

    .hero {
        min-height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .results-grid {
        display: block !important;
    }

    .summary-card {
        margin-bottom: 2rem !important;
        border: 2px solid #eee !important;
        box-shadow: none !important;
    }

    .program-recommendation-card {
        border: 2px solid #eee !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .hospital-card {
        border: 2px solid var(--primary) !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    h1,
    h2,
    h3,
    h4 {
        color: black !important;
    }

    .highlight {
        -webkit-text-fill-color: var(--primary) !important;
        color: var(--primary) !important;
    }
}

/* Info Section Styles */
.info-section {
    padding: 8rem 0;
    min-height: 80vh;
}

.info-header {
    text-align: center;
    margin-bottom: 3rem;
}

.info-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.tab-btn:hover:not(.active) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Hospital Info Cards */
.info-hospital-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.info-hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.info-hospital-header {
    margin-bottom: 1.5rem;
}

.info-hospital-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-hospital-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-hospital-details {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.info-detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.info-detail-row i {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

.info-hospital-action {
    margin-top: auto;
}

/* Program List Styles */
.program-catalog {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.catalog-hospital-section {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.catalog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.catalog-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-family: 'Outfit';
}

.program-type-group {
    margin-bottom: 2rem;
}

.program-type-group:last-child {
    margin-bottom: 0;
}

.program-type-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
}

.program-card-mini {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.program-card-mini:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.program-card-mini h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.program-card-mini .desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mini-options h5 {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mini-tag {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-dark);
}