.quote-calculator-container {
    font-family: 'Raleway', sans-serif;
    padding: 16px 0;
}

.grey1-color-bg {
    background-color: #F1F1F1;
}

.quote-calculator-container .title-1 {
    font-weight: 700;  /* Reduced weight for better legibility */
    font-size: 24px;   /* Adjusted font size for better hierarchy */
    line-height: 32px; /* Increased line height for improved spacing */
    color: var(--primary-color);
    margin-top: 8px;
    margin-bottom: 16px;
}

.quote-calculator-container .title-2 {
    font-weight: 700;  /* Reduced weight for better legibility */
    font-size: 20px;   /* Adjusted font size for better hierarchy */
    line-height: 28px; /* Increased line height for improved spacing */
    margin-top: 8px;
    margin-bottom: 16px;
}

.quote-calculator-container .caption {
    font-weight: 700;  /* Reduced weight for better legibility */
    font-size: 18px;   /* Adjusted font size for better hierarchy */
    line-height: 24px; /* Increased line height for improved spacing */
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.quote-calculator-container .button-primary-blue,
.card-style .button-primary-blue,
table .button-primary-blue {
    color: #C0F8E8;
    background-color: var(--primary-color);
    padding: 8px 16px;
    line-height: 18px;
    font-size: 1rem;
    margin: 8px;
    font-weight:normal;
}

.card-style a,
table .button-secondary-blue {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    line-height: 18px;
    font-size: 1rem;
    margin: 8px;
    font-weight:normal;
}

.secondary-accent-bg {
    background-color: #9DB355;
}
.accent-color-bg {
    background-color: #D2476A;
}
.accent-color {
    margin: 8px;
    color: #D2476A;
}
.white-color {
    color: #ffffff;
}

.quote-calculator-container .common-element {
    display: inline-block;
}

.quote-calculator {
    max-width: 768px;
    margin: auto;
    border: 1px solid #D7D7D7;
    background-color: #fff;
    padding: 16px;
}

.form-section {
    margin-top: 8px;
    margin-bottom: 32px;
    padding-left: 12px;
}

.first-applicant-title {
    color: #9DB355;
}
.first-applicant {
    border-left: 2px solid #9DB355;
}

.second-applicant-title {
    color: #D2476A;
}
.second-applicant {
    display: none;
    border-left: 2px solid #D2476A;
}

.section-heading {
    margin: 32px 0px 16px 0px;
}

.col-3-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.form-grid-item {
    width: auto;
}
.couple-quote {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 8px 0px 12px 0px;
}
.applicant-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.applicant-bullet {
    height: 24px;
    width: 24px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* TABLE STYLE STARTS */
.quote-table-container {
    font-family: 'Raleway', sans-serif;
    max-width: 1440px;
    margin: auto;
}

.quote-table-container h5 {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.quote-table-container .caption {
    margin-top: 16px;
    font-size: .8rem;
    color: var(--primary-color);
}


.quote-table-container img {
    width: auto;
    margin-bottom: auto;
    border-radius: 0;
}

.quote-table-section {
    padding: 8px 24px;
}

.quote-table {
    width: 100%;
}

.quote-table tr:first-child {
    background-color: #F1F1F1;
    font-weight: 500;
}

.quote-table tr th {
    padding: 16px;
}

.quote-table tr td {
    padding: 16px;
    border-bottom: 2px solid #D7D7D7;
}

.quote-table td {
    text-align: center;
}

.quote-table td img {
    max-height: 56px;
    max-width: 200px;
}

.quote-table-actions {
    text-align: right;
}

.quote-table-actions img {
    margin: 4px;
    cursor: pointer;
    width: 32px;
    margin-bottom: 0px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
}

/* TABLE STYLE ENDS   */
/* QUOTE CARD START */
.card-style {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    display: none;
    margin-top: 16px;
}
.quote-card {
    max-width: 330px;
    width: 330px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border: solid 1px #D7D7D7;
}
.quote-card a {
    cursor: pointer;
    text-decoration: underline;
    font-weight: 700;
}
.quote-card img {
    max-height: 52px;
    max-width: 246px;
}
.quote-card p {
    margin-top: 0px;
}
.margin-top-p-12 {
    margin-top: 12px !important;
}
.quote-card-fotter{
    width: 100%;
    background-color: #ecf7ff;
    color: #0672C4;
    text-align: center;
    padding: 8px;
    margin-top: 8px !important;
}
.table-style {
    margin-top: 16px;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #D2476A;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    bottom: 30px;
    left: 50%;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
    font-family: 'Raleway', sans-serif;
}
.toast.show {
    visibility: visible;
    opacity: 1;
}

/* QUOTE CARD ENDS  */
@media (max-width: 768px) {
    .quote-calculator-container {
        padding: 16px 8px;
    }

    .quote-card {
        flex: 0 0 100%;
        /* Full width on mobile */
        max-width: 100%;
        width: 100%;
    }

    .table-style,
    .quote-table-actions {
        display: none;
    }
    .card-style {
        display: flex;
    }
}