/* ============================================
   MODERN DESIGN SYSTEM - Variables & Defaults
   ============================================ */

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #0ea5e9;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-gray: #1f2937;
    --light-gray: #f9fafb;
    --border-gray: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cpath fill='%23eaf7f4' d='M0,700 C300,600 500,900 900,850 C1200,800 1300,600 1440,550 L1440,900 L0,900 Z'/%3E%3Cpath fill='%23d6f1ec' d='M0,0 C300,150 600,50 900,200 C1200,350 1300,200 1440,150 L1440,0 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ============================================
   NAVBAR STYLING
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0;
    position: relative;
    z-index: 1030;
    transition: background 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out;
}

.navbar.is-transparent {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.navbar.scrolled {
    padding: 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    margin-right: 2rem;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
    transform: translateX(2px);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #ffffff !important;
}

.nav-link.active::after {
    width: 100%;
}

.btn-nav-cta {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-left: 1rem;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    background: #0891b2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero-section {
    height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(6, 182, 212, 0.3) 100%);
    z-index: 1;
}

.carousel-item img.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    width: 4rem;
    height: 4rem;
    opacity: 0.7;
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
    bottom: 2rem;
    z-index: 15;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: var(--transition);
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
    width: 32px;
    border-radius: 6px;
}

/* Hero Overlay Text */
.hero-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    animation: slideInUp 0.8s ease-out;
}

.hero-overlay-text h1 {
    color: #ffffff;
    font-size: 3.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-overlay-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.hero-cta-button {
    background: #d44a06;
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    margin-top: 2rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
    cursor: pointer;
}



/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    70% {
        opacity: 1;
        transform: scale(1.03) translateY(-5px); /* Slightly overshoot for bounce */
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ============================================
   INSURANCE CARDS
   ============================================ */

.insurance-card {
    background: #ffffff;
    border: 1px solid var(--border-gray);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.insurance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insurance-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.insurance-card:hover::before {
    opacity: 1;
}

.insurance-card .card-body {
    padding: 1.25rem;
}

.insurance-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.insurance-card .card-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.insurance-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.insurance-card .card-body .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
    color: white;
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
    background: var(--border-gray);
    color: var(--dark-gray);
}

.btn-outline-primary {
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-light);
    color: white;
}

.btn-block {
    width: 100%;
}

/* ============================================
   FORM STYLING
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.form-control {
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #ffffff;
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    background-color: #ffffff;
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-control:disabled {
    background-color: var(--light-gray);
    cursor: not-allowed;
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.3rem;
}

.form-check-input:checked {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    cursor: pointer;
}

.form-text {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ============================================
   MODAL STYLING
   ============================================ */

.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; /* Enhanced animation with bounce effect */
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1.75rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
    border: none;
    border-radius: 0.75rem;
    border-left: 4px solid;
    padding: 1.5rem;
    animation: slideInDown 0.4s ease-out;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #10b981;
}

.alert-danger {
    background-color: #fef2f2;
    color: #7f1d1d;
    border-color: #ef4444;
}

.alert-warning {
    background-color: #fffbeb;
    color: #78350f;
    border-color: #f59e0b;
}

.alert-info {
    background-color: #eff6ff;
    color: #0c2340;
    border-color: #3b82f6;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    padding: 0 2rem;
}

.section-spacing {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, var(--dark-gray), var(--primary-color)) !important;
    color: white;
    margin-top: auto;
    padding-top: 3rem;
}

footer a {
    color: white;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-overlay-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    #hero-section {
        height: 400px;
        margin-bottom: 2rem;
    }

    .carousel-item {
        height: 400px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-overlay-text {
        padding: 1rem;
    }

    .hero-overlay-text h1 {
        font-size: 1.75rem;
    }

    .hero-overlay-text p {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-spacing {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    #hero-section {
        height: 300px;
        margin-bottom: 1.5rem;
    }

    .carousel-item {
        height: 300px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-overlay-text h1 {
        font-size: 1.5rem;
    }

    .hero-overlay-text p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }

    .row-cols-lg-4 {
        --bs-columns: 1;
    }

    .modal-dialog {
        margin: 1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-muted {
    color: var(--text-secondary) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded {
    border-radius: 0.5rem;
}

.rounded-lg {
    border-radius: 0.75rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    border-top: 1px solid var(--border-gray);
    margin: 2rem 0;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}



