/* =======================
    General: CSS Reset
    ======================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =======================
    General: Navigation Bar
    ======================== */

.navbar {
    padding: 0.85rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    font-weight: bolder;
}


/* =======================
    General: Body & Section Formatting
    ======================== */
html,
body {
    height: 100%;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #191a1b;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    padding: 60px 0;
    scroll-margin-top: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

section h2 {
    margin-bottom: 1rem;
    color: #222;
    text-align: center;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

.print-only {
    display: none !important;
}

@media print {
    .print-only {
        display: block !important;
    }
}
/* =======================
    Homepage: Hero
    ======================== */

.hero-section {
    background: linear-gradient(135deg, #499da8, #62cbd6);
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.hero-section .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

/* ==========================
    Homepage: Card Effects
    ========================== */

.card {
    border: none;
    border-radius: 12px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 0.75rem;
}

.card-text {
    color: #555;
}

/* ================================
    Homepage: Product Types 
    ================================ */

.product-types-section {
    background-color: #ffffff;
}

.product-types-section .card {
    background-color: #ffffff;
}

.product-types-section .btn {
    margin-top: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

/* =========================
    Homepage: Customer Testimonials 
    ========================= */

.testimonials-section {
    background-color: #f8f9fa;
}

.testimonial-card {
    border-left: 4px solid #8ce4e7;
}

.testimonial-text {
    font-style: italic;
    color: #444;
    margin-bottom: 1rem;
}

.testimonial-name {
    font-weight: 700;
    color: #212529;
}

.testimonial-location {
    font-size: 0.9rem;
    color: #6c757d;
}


/* ==============================================
    Get a Quote: Insurance Product Types 
    ============================================== */

.insurance-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.insurance-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 1.5rem 1rem;
    text-align: center;
    background-color: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.insurance-option-card:hover {
    border-color: #2e8894;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.insurance-option-input:checked+.insurance-option-card {
    border-color: #2e8894;
    background-color: #f0f7ff;
    box-shadow: 0 8px 20px rgba(98, 219, 235, 0.15);
}

.insurance-option-input:focus+.insurance-option-card {
    outline: 3px solid rgba(98, 219, 235, 0.2);
    outline-offset: 2px;
}


/* ====================
    Get a Quote: Form 
    ==================== */

.form-step-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

#autoFields .border {
    border-color: #dee2e6 !important;
}

#autoFields h2 {
    color: #212529;
}


/* =========================
    Get a Quote: Calculate Quote Button
    ========================= */

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}


/* =========================
   Get a Quote: Quote Results 
    ========================= */

.quote-results-section {
    padding-top: 10px;
}

.quote-summary-card {
    border: 1px solid #6ea8fe;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
}

.quote-summary-header {
    background-color: #39a9b8;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.9rem 1rem;
}

.premium-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    height: 100%;
}

.premium-label {
    color: #6c757d;
    font-size: 0.95rem;
}

.premium-amount {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.premium-monthly {
    color: #19949c;
}

.premium-annual {
    color: #25a76a;
}


/* =========================
   Get a Quote: Breakdown Table
    ========================= */

.quote-breakdown-wrapper h3 {
    color: #333;
}

.quote-breakdown-table {
    margin-bottom: 0;
    background-color: #ffffff;
}

.quote-breakdown-table thead th {
    background-color: #212529;
    color: #ffffff;
    border-color: #212529;
    font-size: 0.95rem;
    vertical-align: middle;
}

.quote-breakdown-table tbody td {
    vertical-align: middle;
    font-size: 0.95rem;
}

.quote-breakdown-table tbody td:last-child {
    font-weight: 600;
}


/* =========================
   Get a Quote: Form Action Buttons
    ========================= */

.quote-actions {
    justify-content: center;
}

.quote-action-btn {
    min-width: 170px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
}

.placeholder-btn {
    cursor: not-allowed;
    opacity: 1;
    background-color: #ffffff;
}

.placeholder-btn.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.placeholder-btn.btn-outline-success {
    color: #198754;
    border-color: #198754;
}

.placeholder-btn.btn-outline-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.placeholder-btn.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}



/* =========================
   Get a Quote: Saved Quotes
    ========================= */

.saved-quotes-section .card {
    border-radius: 10px;
}

.saved-quote-card {
    border: 1px solid #32c0d3;
    border-radius: 10px;
    height: 100%;
}

.saved-quote-card .card-body {
    padding: 1.25rem;
    min-height: 220px;
}

.saved-quote-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.saved-quote-meta {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.35rem;
}

.saved-quote-amount {
    font-weight: 700;
}

.saved-quote-saved-at {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.75rem;
}

.delete-saved-quote-btn {
    margin-top: 0.25rem;
}

/* =========================
   Quote Comparison Section
========================= */
.quote-comparison-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    height: 100%;
}

.quote-comparison-card .card-header {
    font-weight: 700;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.quote-comparison-summary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.quote-comparison-summary p {
    margin-bottom: 0.5rem;
}

.quote-comparison-table thead th {
    background-color: #212529;
    color: #ffffff;
    border-color: #212529;
}





/* Highlight differing rows in quote comparison tables */
.compare-highlight-row td {
    background-color: #fff3cd !important;
    border-left: 3px solid #ffc107;
    font-weight: 500;
}

.quote-comparison-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0.5rem !important;
}

.quote-comparison-section .card-body {
    padding-top: 1.25rem !important;
}

.quote-comparison-table .table {
    table-layout: fixed;
    width: 100%;
}

.quote-comparison-table th,
.quote-comparison-table td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
    font-size: 0.92rem;
}

.quote-comparison-table th:nth-child(1),
.quote-comparison-table td:nth-child(1) {
    width: 28%;
}

.quote-comparison-table th:nth-child(2),
.quote-comparison-table td:nth-child(2) {
    width: 30%;
}

.quote-comparison-table th:nth-child(3),
.quote-comparison-table td:nth-child(3) {
    width: 42%;
}

.quote-comparison-table .table-responsive {
    overflow-x: visible;
}

@media (max-width: 991.98px) {

    .quote-comparison-table th,
    .quote-comparison-table td {
        font-size: 0.88rem;
    }
}


/* =========================
   About Us: Company Overview
    ========================= */

.about-content {
    max-width: 760px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}


/* =========================
   About Us: Executive Team
    ========================= */

.executive-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}


/* =========================
   About Us: Company Values
    ========================= */

.values-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.value-item {
    flex: 1 1 220px;
    max-width: 260px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.value-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #212529;
}

.value-text {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0;
}




/* ======================
    FAQ: Accordion & Search
    ====================== */
.accordion-item {
    border: 1px solid #dee2e6;
}

.accordion-button {
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: #dbeafe;
    color: #1f4f8f;
    box-shadow: none;
}

.accordion-body {
    line-height: 1.8;
    color: #444;
}

#faq-search {
    border: 1px solid #ced4da;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

#faq-search:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    border-color: #86b7fe;
}

/* ======================
    General: Footer
    ====================== */

footer {
    background-color: #212529;
    color: #ffffff;
    padding: 40px 0 20px;
}

footer h5 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer p,
footer li,
footer a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 1.5rem 0;
}




/* =========================
   Responsive Design
========================= */

/* Mobile */
@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .hero-section {
        padding: 60px 15px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .quote-summary-header {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .premium-box {
        padding: 1.25rem 0.75rem;
    }

    .premium-amount {
        font-size: 1.5rem;
    }

    .quote-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-action-btn {
        width: 100%;
        min-width: auto;
    }

    .insurance-option-card {
        min-height: 120px;
        padding: 1.25rem 0.75rem;
    }

    .executive-img {
        width: 120px;
        height: 120px;
    }

    .value-item {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }

    .accordion-button {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .accordion-body {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    #faq-search {
        font-size: 1rem;
    }

    footer {
        text-align: center;
    }

    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Tablet */

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .hero-section {
        padding: 80px 20px;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section p {
        font-size: 1.05rem;
    }

    .quote-summary-header {
        font-size: 1.1rem;
    }

    .premium-amount {
        font-size: 1.8rem;
    }

    .quote-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .quote-action-btn {
        min-width: 180px;
    }




            .quote-comparison-summary {
                padding: 0.85rem;
            }
    
.quote-comparison-table .table {
    table-layout: auto;
    width: 100%;
}


    .executive-img {
        width: 140px;
        height: 140px;
    }

    .value-item {
        flex: 1 1 45%;
        max-width: 320px;
    }

    footer {
        text-align: center;
    }

    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Desktop */
@media (max-width: 1024px) {
    .hero-section {
        padding: 100px 20px;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.15rem;
    }

    .quote-summary-card {
        max-width: 900px;
        margin: 0 auto;
    }

    .quote-breakdown-wrapper {
        max-width: 900px;
        margin: 0 auto;
    }

    .quote-actions {
        justify-content: center;
    }

    .about-content {
        max-width: 760px;
        margin: 0 auto;
    }
}