/* General Body and Container Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a202c; /* Dark background */
    color: #e2e8f0; /* Light text color */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header/Navigation Styles (if any, based on context) */
header {
    background-color: #2d3748; /* Darker background for header */
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
    color: #63b3ed; /* Light blue for logo */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #e2e8f0; /* Light text for nav items */
    font-weight: 500;
}

/* Hero Section Styles */
.hero-section {
    background-color: #2d3748; /* Darker background for hero */
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 40px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(99, 179, 237, 0.1); /* Lightblue with transparency */
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(99, 179, 237, 0.1); /* Lightblue with transparency */
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    background-color: #4299e1; /* A shade of blue that stands out on dark background */
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 30px;
}

.hero-content {
    flex: 1;
    max-width: 50%;
}

.hero-section h1 {
    font-size: 48px;
    color: #e2e8f0; /* Light t text for hero title */
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 18px;
    color: #e2e8f0; /* Lighter text for hero paragraph */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    background-color: #2d3748; /* Darker background for search container */
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.search-container input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
    background-color: #2d3748; /* Match container background */
    color: #e2e8f0; /* Light text color */
}

.search-container button {
    background-color: #4299e1; /* Light blue for button */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #3182ce; /* Darker blue on hover */
}

.search-tabs {
    display: flex; /* This is the key change for horizontal layout */
    justify-content: center;
    gap: 15px;
    margin-top: 24px;
    margin-bottom: 30px;
}

.search-tabs .tab {
    background-color: #2d3748; /* Darker background for tabs */
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: #e2e8f0; /* Light text for tabs */
    border: 1px solid #4a5568; /* Darker border */
    transition: all 0.3s ease;
}

.search-tabs .tab.active,
.search-tabs .tab:hover {
    background-color: #007bff; /* Blue background on active/hover */
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.offer-card {
    background: linear-gradient(to right, #007bff, #0056b3); /* Blue gradient for offer card */
    color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.offer-card .offer-details h2 {
    margin-top: 0;
    font-size: 32px;
    margin-bottom: 10px;
}

.offer-card .offer-details p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.offer-card .offer-details button {
    background-color: #007bff; /* Blue background for button */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.offer-card .offer-details button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.offer-card .offer-image img {
    max-width: 150px;
    height: auto;
}

/* Organ Grid Section */
.organ-grid-section {
    padding: 40px 0;
    background-color: #2d3748; /* Darker background */
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.organ-grid-section h2 {
    text-align: center;
    font-size: 36px;
    color: #e2e8f0; /* Light text for heading */
    margin-bottom: 40px;
}

.organ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.organ-card {
    background-color: #2d3748; /* Darker background for cards */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.organ-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.organ-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.organ-card h3 {
    font-size: 16px;
    color: #e2e8f0; /* Dark text for card title */
    margin: 0;
}

/* Popular Tests Section */
.popular-tests-section {
    padding: 40px 0;
    margin-bottom: 40px;
}

.popular-tests-section h2 {
    text-align: center;
    font-size: 36px;
    color: #e2e8f0; /* Light text for heading */
    margin-bottom: 40px;
}

.test-card {
    background-color: #2d3748; /* Light background for cards */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.test-card h3 {
    font-size: 20px;
    color: #e2e8f0; /* Light text for card title */
    margin-top: 0;
    margin-bottom: 10px;
}

.test-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #48bb78; /* Green for price */
    margin-bottom: 15px;
}

.test-card .price span {
    font-size: 16px;
    color: #a0aec0; /* Darker text for strikethrough price */
    text-decoration: line-through;
    margin-left: 10px;
}

.test-card ul li {
    font-size: 15px;
    color: #e2e8f0; /* Darker text for list items */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.test-card ul li::before {
    content: '✓';
    color: #48bb78; /* Green for checkmark */
    margin-right: 8px;
    font-weight: bold;
}

.test-card button {
    background-color: #007bff; /* Blue for button */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease;
}

.test-card button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Featured Health Packages Section */
.health-packages-section {
    padding: 40px 0;
    background-color: #2d3748; /* Lightbackground */
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.health-packages-section h2 {
    text-align: center;
    font-size: 36px;
    color: #e2e8f0; /* Lightt text for heading */
    margin-bottom: 40px;
}

/* Trusted Diagnostic Partners Section */
.partners-section {
    padding: 40px 0;
    text-align: center;
    background-color: #2d3748; /* Darker background */
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.partners-section h2 {
    font-size: 36px;
    color: #e2e8f0; /* Light text for heading */
    margin-bottom: 40px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
}

.partner-card {
    background-color: #2d3748; /* Darker background for cards */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.partner-card img {
    max-width: 100px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-card:hover img {
    filter: grayscale(0%);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Frosted glass effect */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #2d3748; /* Darker background for modal content */
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 80%;
    max-width: 500px;
    position: relative;
    color: #e2e8f0; /* Light text color */
}

.close-button {
    color: #a0aec0;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #e2e8f0;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    color: #63b3ed; /* Light blue for heading */
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #a0aec0;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content input[type="date"] {
    width: calc(100% - 20px);
    padding: 10px;
    background-color: #4a5568; /* Darker input background */
    color: #e2e8f0; /* Light input text */
    border: 1px solid #63708a; /* Darker border */
    margin-bottom: 15px;
    border: 1px solid #63708a;
    border-radius: 5px;
    font-size: 16px;
    background-color: #4a5568;
    color: #e2e8f0;
}

.modal-content button {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #218838;
}

.modal .profile-main {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #2d3748;
    border-radius: 8px;
    border: 1px solid #eee;
}

.modal .profile-main .note {
    font-size: 14px;
    color: #a0aec0;
    text-align: center;
}

.modal .list {
    margin-bottom: 15px;
}

.modal .list .field-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #4a5568;
}

.modal .list .field-row:last-child {
    border-bottom: none;
}

.modal .list .field-row .lbl {
    font-weight: bold;
    color: #e2e8f0;
}

.modal .list .field-row .val {
    color: #a0aec0;
    text-align: right;
}

.modal .list .field-row input.input {
    width: auto; /* Override previous width */
    flex-grow: 1;
    margin-left: 10px;
    text-align: right;
    border: 1px solid #63708a;
    border-radius: 4px;
    padding: 5px 8px;
}

/* Footer Styles */
footer {
    background-color: #2d3748; /* Darker background for footer */
    color: #a0aec0; /* Lighter text color */
    padding: 40px 0;
    font-size: 14px;
    text-align: center;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}

footer .footer-col {
    width: 23%;
    margin-bottom: 20px;
}

footer .footer-col h4 {
    font-size: 18px;
    color: #e2e8f0; /* Light text for headings */
    margin-bottom: 20px;
    position: relative;
}

footer .footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    background-color: #4299e1;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}

footer .footer-col ul {
    list-style: none;
    padding: 0;
}

footer .footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

footer .footer-col ul li a {
    font-size: 16px;
    text-decoration: none;
    color: #e2e8f0;
    display: block;
    transition: all 0.3s ease;
}

footer .footer-col ul li a:hover {
    color: #e2e8f0;
    padding-left: 8px;
}

footer .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(74,85,104,0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: #4299e1;
    background-color: #4a5568;
}

footer .footer-bottom-text {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #4a5568; /* Darker border */
    color: #e2e8f0; /* Even lighter text */
}

/* Dropdown Menu Styles */
.panel {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    z-index: 20;
    background: #0f172a;
    border: 1px solid #23324f;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    padding: 8px;
    display: none;
}

.panel:hover .dropdown-menu {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 36px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .offer-card {
        flex-direction: column;
        text-align: center;
    }

    .hero-main-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .offer-card .offer-image {
        margin-top: 20px;
    }

    .search-tabs {
        flex-direction: column; /* Stack tabs vertically on smaller screens if needed, though user requested horizontal */
        align-items: center;
    }

    .organ-grid, .test-card-grid, .partner-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 28px;
    }

    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .search-container {
        flex-direction: column;
        padding: 15px;
    }

    .search-container input {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-container button {
        width: 100%;
    }

    .search-tabs .tab {
        padding: 8px 15px;
        font-size: 14px;
    }

    .organ-grid, .test-card-grid, .partner-grid {
        grid-template-columns: 1fr;
    }
}