:root {
    --primary: #002e5b;
    --secondary: #e63946;
    --light: #f1f3f5;
    --white: #ffffff;
    --dark: #212529;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { line-height: 1.6; color: var(--dark); overflow-x: hidden; }

/* Splash Screen */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--primary); color: white; display: flex;
    justify-content: center; align-items: center; z-index: 9999;
    transition: opacity 1s, visibility 1s;
}
#splash-screen.hidden { opacity: 0; visibility: hidden; }
.fade-in { animation: fadeIn 1.5s forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Layout Elements */
 
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: white;
    position: sticky; /* Add 'position:' here */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo { font-size: 24px; font-weight: 700; color: var(--primary); }
.logo span { color: var(--secondary); }
.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; }
.auth-btn { background: var(--primary); color: white !important; padding: 8px 18px; border-radius: 4px; }
.book-btn { border: 1px solid var(--secondary); color: var(--secondary) !important; padding: 8px 18px; border-radius: 4px; }

/* Hero Slider */
/* Hero Container */
.hero {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* The Slider Engine */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 25s linear infinite;
}

/* Staggering the 5 images (5 seconds each) */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }
.slide:nth-child(5) { animation-delay: 20s; }

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; transform: scale(1.1); } /* Slight zoom effect */
    100% { opacity: 0; }
}

/* Text Overlay Styling */
.hero-content {
    background: rgba(0, 46, 91, 0.6); /* Dark blue semi-transparent box */
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px); /* Modern blurry glass effect */
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
/* Horizontal Plan Layout */
.plans-list-section {
    padding: 40px 5%;
    background-color: #f9f9fb;
}

.plans-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.plan-row {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: box-shadow 0.3s;
}

.plan-row:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.featured-border {
    border-left: 4px solid #e63946;
}

/* Brand Section */
.insurer-brand {
    flex: 1;
    border-right: 1px solid #f0f0f0;
    text-align: center;
}

.brand-logo {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary);
}

.about-link {
    font-size: 11px;
    color: #888;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

/* Details Section */
.plan-details {
    flex: 2;
    padding-left: 20px;
}

.plan-name {
    font-size: 18px;
    color: #444;
}

.heart-icon {
    font-size: 16px;
    color: #ccc;
    margin-left: 5px;
    cursor: pointer;
}

.features-brief {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.view-list {
    color: #2c7be5;
    text-decoration: none;
    font-weight: 600;
}

/* Meta & Pricing */
.plan-meta, .plan-pricing {
    flex: 1.2;
    text-align: center;
}

.meta-label {
    font-size: 12px;
    color: #888;
}

.meta-value, .price-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.tax-info {
    font-size: 11px;
    color: #999;
}

/* Actions */
.plan-actions {
    flex: 1.5;
    text-align: right;
}

.cta-btn {
    background: #ff5a2c; /* PolicyBazaar orange */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.compare-checkbox {
    font-size: 12px;
    color: #666;
}

/* Top Label Tag */
.tag-label {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #e8f0fe;
    color: #1967d2;
    font-size: 11px;
    padding: 2px 12px;
    border-radius: 4px;
    font-weight: 600;
}

/* Forms */
.form-page { display: flex; justify-content: center; padding: 60px 20px; background: var(--light); min-height: 80vh; }
.form-container { background: white; padding: 40px; border-radius: 10px; width: 100%; max-width: 500px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; }
.submit-btn { width: 100%; padding: 15px; background: var(--secondary); color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; }

footer { text-align: center; padding: 20px; background: white; border-top: 1px solid #ddd; }

/* This makes sure the logo and text stay on the same line */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between the logo and the text */
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

/* Adjust the height to match your navbar size */
.logo-img {
    height: 40px; 
    width: auto;
    object-fit: contain;
}

.plans-wrapper {
    background: #f8f9fa;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.plan-row {
    display: flex;
    background: white;
    margin-bottom: 12px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    align-items: center;
    border: 1px solid #e1e8ed;
}

.insurer-brand {
    flex: 1;
    border-right: 1px solid #eee;
    text-align: center;
}

.brand-logo {
    font-weight: bold;
    color: #002e5b;
    font-size: 1.2rem;
}

.about-link {
    font-size: 0.75rem;
    color: #007bff;
    text-decoration: none;
}

.plan-details {
    flex: 2;
    padding-left: 20px;
}

.plan-name {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.heart-icon { color: #ccc; cursor: pointer; }

.features-brief { margin-top: 5px; font-size: 0.85rem; color: #666; }
.view-list { color: #007bff; text-decoration: none; font-size: 0.8rem; }

.plan-meta, .plan-pricing {
    flex: 1.5;
    text-align: center;
}

.meta-label { font-size: 0.75rem; color: #888; margin: 0; }
.meta-value { font-weight: 600; margin-top: 4px; }
.price-value { font-size: 1.3rem; font-weight: bold; color: #002e5b; margin: 4px 0; }
.tax-info { font-size: 0.7rem; color: #999; }

.plan-actions {
    flex: 1.5;
    text-align: center;
}

.cta-btn {
    background: #ffb400;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9rem;
}

.compare-checkbox {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #666;
}
