/* Root Variables */
:root {
    --primary-color: #a51c36;
    --secondary-color: #1E293B;
    --accent-color: #3B82F6;
    --light-bg: #F8FAFC;
    --dark-bg: #0F172A;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #ffffff;
    scroll-behavior: smooth;
}

/* Update heading styles */
h1,
h2 {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

/* Unique styles for headings */
.unique-heading-insurance {
    color: var(--primary-color) !important;
    font-size: 2.5rem;
    font-weight: bold;
}

.unique-heading-finding-insurance {
    color: var(--primary-color) !important;
    font-size: 2rem;
    font-weight: bold;
}

.unique-heading-ready-details {
    color: var(--primary-color) !important;
    font-size: 2rem;
    font-weight: bold;
}

/* Main Layout */
.main-layout-container {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-bg) 100%);
    min-height: 100vh;
}

.main-content {
    padding: 2rem;
    padding-right: 1rem;
}

.sidebar {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem 1rem;
    border-left: 1px solid var(--border-color);
    min-height: 100vh;
    top: 0;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #901835;
    border-color: #901835;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Hero Section */
.hero-section {
    background: white;
    position: relative;
    padding: 0 0 2rem 0;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(176, 30, 66, 0.02), rgba(59, 130, 246, 0.02));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-image-container {
    position: relative;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(176, 30, 66, 0.1), rgba(59, 130, 246, 0.1));
    pointer-events: none;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease-out;
    margin-top: 2rem;
}

/* Quote Form */
.quote-form-container {
    margin-bottom: 1.5rem;
}

.quote-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease-out;
    top: 2rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(176, 30, 66, 0.15);
    transform: translateY(-1px);
    background: white;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Insurance Info Section */
.insurance-info-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.info-highlight-card {
    background: linear-gradient(135deg, var(--primary-color), #c62f50);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease-out;
}

.info-highlight-card a {
    color: white;
    text-decoration: underline;
}

.info-highlight-card a:hover {
    color: #FEF3C7;
}

/* Insurance Type Cards */
.insurance-type-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

.insurance-type-card:hover {
    transform: translateY(-15px) !important;
}

.insurance-type-card .card-header {
    background: linear-gradient(135deg, var(--light-bg), #E2E8F0);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.insurance-type-card .card-header i {
    color: var(--primary-color) !important;
}

.insurance-type-card .card-body {
    padding: 1.5rem;
}

.combined-insurance-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    animation: fadeInLeft 0.6s ease-out;
    margin-left: 1rem;
    margin-right: 1rem;
}

.flooding-info-card {
    border: 1px solid var(--primary-color);
    padding: 0.5rem;
    box-shadow: var(--shadow-md) !important;
    margin-left: 1rem;
    margin-right: 1rem;

}

/* Competition Banner */
.competition-banner {
    margin-left: 1rem;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.competition-banner img {
    transition: transform 0.3s ease;
}

.competition-banner:hover {
    transform: translateY(-3px);
}

.competition-banner:hover img {
    transform: scale(1.02);
}

/* Details Section - Clean */
.details-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.detail-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(176, 30, 66, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.detail-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: var(--shadow-lg);
    border-color: rgba(176, 30, 66, 0.2);
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #c62f50);
}

.detail-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #c62f50);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.detail-number::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c62f50, var(--primary-color)) !important;
    z-index: -1;
    opacity: 0.3;
}

/* Sidebar Ads Section */
.sidebar-ads-section {
    margin-top: 2rem;
}

.ad-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.ad-card img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.ad-card:hover img {
    transform: scale(1.05);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    background: linear-gradient(135deg, #EBF8FF, #DBEAFE);
    color: #1E40AF;
    border-left: 4px solid var(--accent-color);
}

.alert-warning {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    color: #92400E;
    border-left: 4px solid var(--warning-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .main-content {
        padding: 1rem;
    }

    .sidebar {
        background: white;
        border-left: none;
        border-top: 1px solid var(--border-color);
        min-height: auto;
        position: static;
        padding: 2rem 1rem;
    }

    .quote-form {
        position: static;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .insurance-info-section,
    .details-section {
        padding: 1.5rem;
    }

    .hero-section,
    .insurance-info-section,
    .quote-form-container,
    .competition-banner,
    .details-section {
        padding: 1rem;
    }

    .insurance-type-card {
        padding: 1rem;
    }

    .sidebar-ads-section .ad-card {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0.5rem;
    }

    .sidebar {
        padding: 1rem;
        border-top: none;
        min-height: auto;
        position: static;
    }

    .quote-form {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding: 1rem;
        text-align: center;
    }

    .insurance-info-section,
    .details-section {
        padding: 1rem;
    }

    .insurance-type-card,
    .detail-card {
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }

    .competition-banner img {
        width: 100%;
        height: auto;
    }

    .ad-card img {
        width: 100%;
        height: auto;
    }

    .info-highlight-card {
        padding: 1rem;
        text-align: center;
    }

    .detail-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero-section,
    .insurance-info-section,
    .quote-form-container,
    .competition-banner,
    .details-section {
        padding: 0.5rem;
    }

    .insurance-type-card {
        padding: 0.5rem;
    }

    .sidebar-ads-section .ad-card {
        padding: 0.5rem;
    }
}