:root {
    --primary: #015FC9;
    --secondary: #0B2B5E;
    --accent: #0DD3F1;
    --dark: #0B1E33;
    --light: #F2F6FC;
    --body-color: #6C7A91;

    --auto-color: #E8590C;
    --auto-light: #FFF4EC;
    --auto-dark: #C44508;

    --tenant-color: #2F9E44;
    --tenant-light: #ECFBEF;
    --tenant-dark: #237B34;

    --quote-color: #7048E8;
    --quote-light: #F3EFFF;
    --quote-dark: #5A34C0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--body-color);
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Marcellus', serif;
    color: var(--secondary);
}

a {
    text-decoration: none;
    transition: 0.3s;
}

.btn {
    font-weight: 600;
    transition: 0.5s;
    border-radius: 30px;
    padding: 10px 28px;
}

.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.btn-light {
    background: var(--light);
    color: var(--primary);
    border: none;
}

.btn-light:hover {
    background: var(--secondary);
    color: #fff;
}

.section-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-family: 'Open Sans', sans-serif;
}

/* ========== TOPBAR ========== */
.topbar {
    background: var(--secondary);
    color: rgba(255,255,255,.7);
    font-size: 0.85rem;
}

.topbar a {
    color: rgba(255,255,255,.7);
}

.topbar a:hover {
    color: #fff;
}

/* ========== NAVBAR ========== */
.navbar-area {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.navbar-area .navbar-brand {
    font-family: 'Marcellus', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.navbar-area .navbar-brand span {
    color: var(--secondary);
}

.navbar-area .navbar-nav .nav-link {
    color: var(--secondary) !important;
    font-weight: 600;
    padding: 10px 16px !important;
    transition: 0.3s;
}

.navbar-area .navbar-nav .nav-link:hover,
.navbar-area .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-area .nav-right .btn {
    font-size: 0.875rem;
}

.navbar-area .user-display {
    color: var(--body-color);
    font-size: 0.875rem;
}

/* ========== HERO CAROUSEL ========== */
.hero-carousel .carousel-item {
    min-height: 520px;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide-auto {
    background: linear-gradient(135deg, var(--auto-color) 0%, var(--auto-dark) 60%, var(--secondary) 100%);
}

.hero-slide-tenant {
    background: linear-gradient(135deg, var(--tenant-color) 0%, var(--tenant-dark) 60%, var(--secondary) 100%);
}

.hero-slide-general {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.hero-carousel .carousel-caption {
    position: relative;
    inset: auto;
    padding: 80px 0 60px;
    text-align: left;
    z-index: 2;
}

.hero-carousel .carousel-caption h1 {
    color: #fff;
    font-size: 3rem;
    line-height: 1.15;
}

.hero-carousel .carousel-caption p {
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    max-width: 560px;
}

.hero-carousel .carousel-caption .hero-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-carousel .carousel-caption .btn-hero-light {
    background: #fff;
    color: var(--secondary);
    font-weight: 700;
    border-radius: 30px;
    padding: 12px 32px;
}

.hero-carousel .carousel-caption .btn-hero-light:hover {
    background: var(--dark);
    color: #fff;
}

.hero-carousel .carousel-caption .btn-hero-outline {
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    background: transparent;
    border-radius: 30px;
    padding: 12px 32px;
    font-weight: 600;
}

.hero-carousel .carousel-caption .btn-hero-outline:hover {
    background: #fff;
    color: var(--secondary);
    border-color: #fff;
}

.hero-carousel .hero-float-icon {
    font-size: 14rem;
    opacity: 0.08;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    opacity: 0.7;
}

.hero-carousel .carousel-indicators .active {
    background: #fff;
    opacity: 1;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    opacity: 1;
}

.hero-carousel .carousel-control-prev { left: 20px; }
.hero-carousel .carousel-control-next { right: 20px; }

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(255,255,255,.3);
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item { min-height: 420px; }
    .hero-carousel .carousel-caption { padding: 50px 0 40px; }
    .hero-carousel .carousel-caption h1 { font-size: 2rem; }
    .hero-carousel .hero-float-icon { font-size: 8rem; right: 2%; }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next { display: none; }
}

/* ========== FEATURES ========== */
.feature-card {
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eef2f7;
    padding: 32px 24px;
    transition: 0.4s;
    text-align: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(1, 95, 201, 0.12);
    border-color: var(--primary);
}

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: var(--light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: 0.4s;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
}

.feature-card h5 { font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ========== SERVICE CARDS (insurance-type colors) ========== */
.service-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef2f7;
    transition: 0.4s;
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-card .service-stripe {
    height: 6px;
    width: 100%;
}

.service-card .card-body { padding: 30px; }
.service-card h5 { font-size: 1.15rem; }

.service-card .service-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: 0.4s;
}

.service-card .service-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-auto .service-stripe { background: var(--auto-color); }
.service-auto .service-icon-wrap { background: var(--auto-light); color: var(--auto-color); }
.service-auto:hover .service-icon-wrap { background: var(--auto-color); color: #fff; }
.service-auto .service-tag { background: var(--auto-light); color: var(--auto-color); }

.service-tenant .service-stripe { background: var(--tenant-color); }
.service-tenant .service-icon-wrap { background: var(--tenant-light); color: var(--tenant-color); }
.service-tenant:hover .service-icon-wrap { background: var(--tenant-color); color: #fff; }
.service-tenant .service-tag { background: var(--tenant-light); color: var(--tenant-color); }

.service-quote .service-stripe { background: var(--quote-color); }
.service-quote .service-icon-wrap { background: var(--quote-light); color: var(--quote-color); }
.service-quote:hover .service-icon-wrap { background: var(--quote-color); color: #fff; }
.service-quote .service-tag { background: var(--quote-light); color: var(--quote-color); }

/* ========== STATS / COUNTERS ========== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 50px 0;
}

.stat-item { text-align: center; color: #fff; }
.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Marcellus', serif;
}
.stat-item .stat-label { font-size: 0.9rem; opacity: 0.85; }

/* ========== FAQ ACCORDION ========== */
.faq-section .accordion-item {
    border: 1px solid #eef2f7;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-section .accordion-button {
    font-family: 'Marcellus', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary);
    padding: 18px 24px;
    background: #fff;
    box-shadow: none !important;
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--primary);
    color: #fff;
}

.faq-section .accordion-button::after {
    filter: none;
}

.faq-section .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.faq-section .accordion-body {
    padding: 20px 24px;
    color: var(--body-color);
    line-height: 1.7;
}

/* ========== TESTIMONIAL CAROUSEL ========== */
.testimonial-section {
    background: var(--light);
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.1;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--body-color);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.testimonial-card .testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-card .testimonial-name {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
}

.testimonial-card .testimonial-role {
    font-size: 0.8rem;
    color: var(--body-color);
}

.testimonial-card .stars {
    color: #FCC419;
    font-size: 0.85rem;
}

.testimonial-carousel .carousel-indicators {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 0;
}

.testimonial-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    border: none;
}

.testimonial-carousel .carousel-indicators .active {
    opacity: 1;
    width: 28px;
    border-radius: 10px;
}

/* ========== DASHBOARD CARDS (BROKER / ADMIN) ========== */
.dashboard-card {
    border-radius: 12px;
    border: 1px solid #eef2f7;
    transition: 0.3s;
    height: 100%;
    overflow: hidden;
}

.dashboard-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.dashboard-card .card-header-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 1.5rem;
}

.dashboard-welcome h3 { color: #fff; }
.dashboard-welcome p { color: rgba(255,255,255,.8); margin: 0; }

/* ========== LOGIN PAGE ========== */
.login-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #eef2f7;
    padding: 40px;
}

.login-card .login-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.6);
    padding: 50px 0 0;
}

.site-footer h5 { color: #fff; font-size: 1.1rem; margin-bottom: 1.25rem; }
.site-footer a { color: rgba(255,255,255,.6); line-height: 2; }
.site-footer a:hover { color: var(--accent); }

.site-footer .footer-brand {
    font-family: 'Marcellus', serif;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.site-footer .footer-brand span { color: var(--accent); }

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}

.site-footer .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 8px;
    transition: 0.3s;
}

.site-footer .social-links a:hover { background: var(--primary); }

/* ========== PAGE HEADER ========== */
.page-header-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 40px 0;
    color: #fff;
    margin-bottom: 2rem;
}

.page-header-banner h2 { color: #fff; margin: 0; }

/* ========== FORM STYLES ========== */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(1, 95, 201, 0.15);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ========== TABLE STYLES ========== */
.table thead th {
    background: var(--light);
    color: var(--secondary);
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.875rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@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); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.animate-fadeIn      { animation: fadeIn .5s ease both; }
.animate-fadeInUp    { animation: fadeInUp .6s ease both; }
.animate-fadeInLeft  { animation: fadeInLeft .6s ease both; }
.animate-fadeInRight { animation: fadeInRight .6s ease both; }
.animate-scaleIn     { animation: scaleIn .5s ease both; }

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
.delay-6 { animation-delay: .6s; }

.main-content {
    animation: fadeIn .4s ease both;
    min-height: calc(100vh - 280px);
}

/* ========== PAGE BANNER (inner pages) ========== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 36px 0;
    color: #fff;
    margin-bottom: 0;
}

.page-banner h2 {
    color: #fff;
    margin: 0;
    font-size: 1.75rem;
}

.page-banner p { color: rgba(255,255,255,.75); margin: .25rem 0 0; }

.page-banner .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: .85rem;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
    color: rgba(255,255,255,.65);
}

.page-banner .breadcrumb-item.active { color: #fff; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ========== FORM CARD ========== */
.form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
    padding: 36px;
}

.form-card .form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.form-card .form-header h4 {
    margin: 0;
    font-size: 1.15rem;
}

.form-card .form-header .form-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}

.form-card .form-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: .875rem;
}

.form-card .form-text { font-size: .8rem; }

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--light);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* ========== STATUS / INFO CARD ========== */
.status-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
    padding: 48px 36px;
    text-align: center;
}

.status-card .status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.status-card .status-icon.success { background: #d3f9d8; color: var(--tenant-color); }
.status-card .status-icon.warning { background: #fff3cd; color: #856404; }
.status-card .status-icon.danger  { background: #ffe0e0; color: #c92a2a; }
.status-card .status-icon.info    { background: var(--light); color: var(--primary); }

/* ========== DATA TABLE CARD ========== */
.data-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
    overflow: hidden;
}

.data-card .data-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-card .table { margin: 0; }
.data-card .table thead th { border-top: none; }
.data-card .data-card-empty {
    padding: 60px 24px;
    text-align: center;
}

/* ========== DETAIL PANEL ========== */
.detail-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #eef2f7;
    padding: 30px;
}

.detail-panel .detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-panel .detail-row:last-child { border-bottom: none; }

.detail-panel .detail-label {
    font-weight: 600;
    color: var(--secondary);
    min-width: 160px;
    font-size: .875rem;
}

.detail-panel .detail-value { color: var(--body-color); }

/* ========== UTILITIES ========== */
.bg-primary-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); }
.text-primary { color: var(--primary) !important; }
.bg-light-custom { background: var(--light); }
.rounded-xl { border-radius: 12px; }
.section-padding { padding: 80px 0; }
.form-narrow { max-width: 640px; margin: 0 auto; }
.form-medium { max-width: 800px; margin: 0 auto; }

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .form-card { padding: 24px; }
    .detail-panel { padding: 20px; }
    .detail-panel .detail-row { flex-direction: column; }
    .detail-panel .detail-label { min-width: auto; margin-bottom: .25rem; }
}
