/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #003366;
}

body > *:not(header) {
    filter: brightness(0.9);
}

a {
    text-decoration: none;
    color: #003366;
}

/* Header - UHC Style */
header {
    background-color: #eaf6fb;
    padding: 20px 0;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #003366;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #003366;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #0050b3;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background-color: #fff;
    padding: 80px 20px 60px;
    display: flex;
    justify-content: center;
}

.hero-content {
    display: flex;
    max-width: 1100px;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.text-section {
    flex: 1;
    min-width: 300px;
}

.text-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.text-section p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: #444;
}

.hero-buttons .btn {
    padding: 12px 20px;
    margin-right: 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
}

/* Button Styles */
.btn.primary {
    background: linear-gradient(90deg, #d03b00, #ff6f61);
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 120px;
    text-align: center;
}

.btn.primary:hover {
    background: linear-gradient(90deg, #b53200, #e55a50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn.primary:disabled {
    background: #cccccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn.secondary {
    background: transparent;
    border: 2px solid #d03b00;
    color: #d03b00;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 120px;
    text-align: center;
}

.btn.secondary:hover {
    background: #d03b00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn.secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn.secondary:disabled {
    border-color: #cccccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.image-section img {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 8px;
    object-fit: cover;
}

/* Video Section */
.video-section {
    background: transparent;
    padding: 40px 20px;
    text-align: center;
}

.video-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: transparent;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper video {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: block;
}

/* Plans Section */
.plans-section {
    padding: 40px 20px;
    background-color: #f2faff;
    text-align: center;
}

.plans-section h2 {
    margin-bottom: 20px;
    color: #003366;
}

.plan-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.plan-box {
    background-color: #dff1fc;
    padding: 20px 30px;
    border-radius: 8px;
    font-weight: 600;
    min-width: 180px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: #003366;
    display: inline-block;
}

.plan-box:hover {
    background-color: #bee3f8;
}

/* Member Info Section */
.member-info {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
}

.member-info h3 {
    color: #003366;
    font-size: 1.5rem;
}

.member-info a {
    color: #0050b3;
    font-weight: 600;
}

.member-benefits {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.benefit {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    max-width: 300px;
    text-align: left;
}

.benefit h4 {
    color: #003366;
    margin-bottom: 10px;
}

/* Features */
.features {
    padding: 4rem 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3c72;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* About, Contact, Benefits Sections */
.about-section,
.contact-section {
    padding: 4rem 0;
    background-color: #fff;
    min-height: calc(100vh - 80px);
    filter: none !important; /* Prevent brightness filter */
}

.about-section h2,
.contact-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3c72;
}

/* About & Contact Images */
.about-section .about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin: 2rem 0;
}

.contact-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 2rem 0;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #444;
}

.contact-info a {
    color: #0050b3;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Benefits Table */
.about-section .benefits-table {
    margin: 2rem 0;
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-section .benefits-table h3 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.about-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.about-section th,
.about-section td {
    padding: 0.8rem;
    text-align: center;
    border: 1px solid #ddd;
}

.about-section .benefit-package {
    background-color: #fdbd59;
    color: #003366;
}

/* Header Styles (th) */
.about-section .plan-AHOTƆ-header {
    background-color: #e02128;
    color: white;
}

.about-section .plan-ANIDASOƆ-header {
    background-color: #fbeb19;
    color: white;
}

.about-section .plan-ADEHYEƐ-header {
    background-color: #2a9b49;
    color: white;
}

/* Body Styles (td) */
.about-section td {
    background-color: #f9f9f9;
    color: #333;
}

.about-section .plan-AHOTƆ.show-plan {
    background-color: #fce2e5;
    color: black;
    display: table-cell;
}

.about-section .plan-ANIDASOƆ.show-plan {
    background-color: #f7f3a9;
    color: black;
    display: table-cell;
}

.about-section .plan-ADEHYEƐ.show-plan {
    background-color: #ecf6f5;
    color: black;
    display: table-cell;
}

.about-section .hidden {
    display: none;
}

.about-section .benefit-filters {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-section .benefit-filters p {
    margin-bottom: 1rem;
    color: #555;
}

.about-section .benefit-filters .benefit-btn {
    margin: 0 0.5rem;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 20px;
    background-color: #e0e0e0;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    min-width: 100px;
    transition: background-color 0.3s, color 0.3s, transform 0.1s, box-shadow 0.2s;
}

.about-section .benefit-filters .benefit-btn.active,
.about-section .benefit-filters .benefit-btn:hover {
    background: linear-gradient(90deg, #007bff, #00d4ff);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Form Selector (for errorMessage and loadingMessage) */
.form-selector {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    filter: none !important;
}

.form-selector label {
    display: block;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.selector-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.selector-btn {
    padding: 0.9rem 2rem;
    border: none;
    background: #e0e0e0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    min-width: 140px;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.selector-btn.active,
.selector-btn:hover {
    background: linear-gradient(90deg, #007bff, #00d4ff);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.selector-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.selector-btn:disabled {
    background: #cccccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Registration Form */
.registration-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    filter: none !important;
}

.registration-form h3 {
    color: #1e3c72;
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    color: #333;
    background-color: #f1f1f1;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.form-group input.invalid,
.form-group select.invalid {
    border-color: #ff4d4f;
    background-color: #fff1f1;
}

.form-group small {
    color: #555;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.3rem;
}

.form-group .error {
    color: #ff4d4f;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.3rem;
    min-height: 1rem;
}

.form-group .required {
    color: #ff6f61;
}

.upload-box {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    background-color: #f1f1f1;
    position: relative;
    min-height: 100px;
    cursor: pointer;
}

.upload-box input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.upload-placeholder {
    color: #555;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    pointer-events: none;
}

.upload-icon {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.file-list img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    border: 1px solid #ddd;
    object-fit: cover;
    cursor: pointer;
}

.upload-box .error {
    color: #ff4d4f;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

.dependant-container .dependant-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dependant-card h3 {
    color: #ff6f61;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.dependant-card .remove-dependant {
    color: #ff4d4f;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.dependant-card .remove-dependant:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal.centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.alert {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 1rem;
    color: #0050b3;
    font-size: 0.9rem;
}

#premiumBreakdown ul {
    padding-left: 1.5rem;
    color: #333;
    font-size: 0.9rem;
}

#premiumBreakdown li {
    margin-bottom: 0.5rem;
}

#paymentInstructions h4 {
    color: #1e3c72;
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

#paymentInstructions p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

#paymentInstructions a {
    color: #0050b3;
    text-decoration: none;
}

#paymentInstructions a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0 1rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .image-section img {
        max-width: 100%;
    }

    .selector-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .selector-btn,
    .btn.primary,
    .btn.secondary {
        width: 100%;
        padding: 0.8rem;
    }

    .about-section table {
        display: block;
        overflow-x: auto;
    }

    .contact-map iframe {
        width: 100%;
        max-width: 100%;
        height: 400px;
        border: none;
        border-radius: 10px;
    }

    .video-section {
        padding: 20px 10px;
    }

    .video-wrapper video {
        border-radius: 5px;
    }

    .modal-content {
        width: 90%;
        padding: 1.5rem;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}