/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-white {
    background-color: white;
    color: #2563eb;
}

.btn-white:hover {
    background-color: #f8fafc;
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-primary {
    background-color: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-outline-primary:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    height: 4rem;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.brand-icon {
    font-size: 2rem;
    color: #2563eb;
    margin-right: 0.5rem;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #111827;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-dropdown-btn:hover {
    color: #111827;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 16rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown.active .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.nav-dropdown-content a:hover {
    background-color: #f3f4f6;
}

/* Nested Dropdown */
.nav-dropdown-nested {
    position: relative;
}

.nav-dropdown-nested-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.nav-dropdown-nested-btn:hover {
    background-color: #f3f4f6;
}

.nav-dropdown-nested-content {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 16rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nav-dropdown-nested.active .nav-dropdown-nested-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Language Toggle */
.language-toggle {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.language-toggle:hover {
    color: #111827;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* AI Chat Button */
.ai-chat-btn {
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: #2563eb;
    padding: 5rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: brightness(0.5);
}

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

.hero-text {
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Cards */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333;
}

.hero-card:hover {
    transform: translateY(-5px);
}

.hero-card-icon {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

/* Dual Icon Container for Dental & Vision */
.dual-icon-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dual-icon-container .hero-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.hero-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-card-desc {
    color: #6b7280;
    margin-bottom: 1rem;
}

.hero-card-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: color 0.3s ease;
}

.hero-card-btn:hover {
    color: #1d4ed8;
}

/* Dual Button Container for Dental & Vision */
.dual-button-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.hero-card-btn.small {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    border-radius: 0.375rem;
    margin: 0;
}

.hero-card-btn.small:hover {
    background-color: #1d4ed8;
    color: white;
}

/* Hero Search */
.hero-search {
    max-width: 36rem;
    margin: 0 auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    white-space: nowrap;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

/* Insurance Types Section */
.insurance-types {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insurance-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
}

.insurance-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.insurance-icon {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.insurance-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.insurance-card-desc {
    color: #6b7280;
    margin-bottom: 1rem;
}

.insurance-card-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.insurance-card-link:hover {
    color: #1d4ed8;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
}

.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: #dbeafe;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 2rem;
    color: #2563eb;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.feature-desc {
    color: #6b7280;
}

/* CTA Section */
.cta {
    background-color: #2563eb;
    padding: 4rem 0;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow: hidden;
}

.chat-modal {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.contact-modal {
    max-width: 600px;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-icon {
    font-size: 1.5rem;
    color: #2563eb;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #6b7280;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.assistant {
    justify-content: flex-start;
}

.chat-message-content {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    word-wrap: break-word;
}

.chat-message.user .chat-message-content {
    background-color: #2563eb;
    color: white;
}

.chat-message.assistant .chat-message-content {
    background-color: #f3f4f6;
    color: #111827;
}

/* Chat Input */
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.chat-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-send-btn {
    white-space: nowrap;
}

/* Contact Form Styles */
.contact-form-container {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1f2937;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3);
}

.error-message {
    display: none;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 4px;
}

.hint {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 4px;
}

.optional {
    font-weight: normal;
    color: #6b7280;
    font-size: 0.875rem;
}

.contact-options {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.contact-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-option:hover {
    background-color: #f3f4f6;
}

.contact-option.selected {
    border-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
}

.icon-container {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.contact-icon {
    font-size: 24px;
    color: #1f2937;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    opacity: 0.6;
}

.address-line {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.address-line input {
    flex: 1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.cc-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.cc-logo img {
    max-height: 60px;
    width: auto;
}

.contact-alternatives {
    margin-top: 24px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.contact-alternatives p {
    margin-bottom: 12px;
    color: #6b7280;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background-color: #f9fafb;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    font-size: 1.5rem;
    color: #2563eb;
    margin-right: 0.5rem;
}

.footer-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-desc {
    color: #6b7280;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #111827;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }

    .search-btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .cta-title {
        font-size: 1.875rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-brand {
        grid-column: span 1;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .contact-option {
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
    
    .icon-container {
        margin-bottom: 0;
    }
    
    .address-line {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }

    .dual-button-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-card-btn.small {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .insurance-card,
    .feature {
        padding: 1.5rem;
    }

    .modal-content {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    .chat-modal {
        height: calc(100vh - 2rem);
    }

    .dual-icon-container .hero-card-icon {
        font-size: 2rem;
    }
}