/*
Theme Name: Kinsurance
Description: Clean responsive insurance quote site.
Version: 2.1
Author: Riven
*/

/* =========================================================
   RESET / GLOBAL
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    color: #243447;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button, input, select, textarea {
    font: inherit;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #e7edf4;
    box-shadow: 0 1px 8px rgba(20,45,70,.03);
}

.site-header .container {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0;
    color: #173a63;
    text-decoration: none;
    font-size: 0;
    line-height: 1;
}

/* Coverage Request logo */
.logo a::before {
    content: "";
    width: 230px;
    height: 100px;
    flex: 0 0 230px;
    display: block;
    background-image: url("http://localhost:8881/wp-content/uploads/2026/08/coverage-request-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Hide any old/broken image inside the logo link. */
.logo a img {
    display: none !important;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: #42546a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.main-nav a:hover {
    color: #2f6fb3;
}

.quote-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #2f6fb3;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.quote-btn:hover {
    background: #255d99;
}

/* =========================================================
   HERO
   ========================================================= */
.site-main {
    width: 100%;
}

.hero {
    position: relative;
    width: min(1460px, 96%);
    min-height: 610px;
    margin: 26px auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: 46% 54%;
    overflow: hidden;
    border-radius: 24px;
    background: #f7faff;
    box-shadow: 0 10px 35px rgba(15,47,95,.07);
}

.hero-content {
    position: relative;
    z-index: 5;
    min-width: 0;
    width: 100%;
    padding: 88px 42px 105px 52px;
    overflow: hidden;
}

.hero-label {
    margin: 0 0 12px;
    color: #2f6fb3;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero h1 {
    max-width: 560px;
    margin: 0 0 18px;
    color: #173a63;
    font-size: clamp(44px, 4.3vw, 64px);
    line-height: 1.04;
    letter-spacing: -1.8px;
    font-weight: 750;
}

.hero-description {
    max-width: 500px;
    margin: 0 0 18px;
    color: #596b7f;
    font-size: 17px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.hero-button {
    background: #2f6fb3;
    color: #fff;
}

.hero-button:hover {
    background: #255d99;
}

.secondary-button {
    border: 1px solid #b8c9da;
    color: #3d5873;
    background: #fff;
}

.secondary-button:hover {
    background: #f1f6fb;
    border-color: #9db5cc;
}

/* =========================================================
   HERO IMAGE
   ========================================================= */
.hero-image {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 54%;
    height: 100%;
    overflow: hidden;
    background: #f7faff;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center center;
}

/* =========================================================
   AUTO / LIFE HERO BOXES
   ========================================================= */
.hero-insurance-badges {
    position: absolute;
    z-index: 10;
    right: 12px;
    bottom: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
}

.hero-insurance-badge {
    width: 116px;
    min-height: 104px;
    padding: 11px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #173a63;
    background: rgba(255,255,255,.97);
    border: 1px solid #e1e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15,47,95,.16);
    transition: transform .18s ease, box-shadow .18s ease;
}

.hero-insurance-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15,47,95,.19);
}

.hero-badge-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0f5bd7;
    color: #fff;
    font-size: 16px;
}

.hero-insurance-badge.life .hero-badge-icon {
    background: #2aa66f;
}

.hero-insurance-badge strong {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.2;
}

.hero-insurance-badge > span:last-child {
    display: block;
    color: #718096;
    font-size: 9px;
    line-height: 1.3;
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.hero-trust {
    position: absolute;
    z-index: 20;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 72px;
    padding: 10px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    background: rgba(255,255,255,.98);
    border-top: 1px solid #e2e9f1;
    color: #29496d;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
}

.hero-trust span {
    display: block;
    min-width: 0;
    color: #29496d;
    white-space: nowrap;
}

.hero-trust span:nth-child(1) {
    justify-self: start;
    text-align: left;
}

.hero-trust span:nth-child(2) {
    justify-self: center;
    text-align: center;
}

.hero-trust span:nth-child(3) {
    justify-self: end;
    text-align: right;
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */
.insurance-section,
.how-section,
.trust-section {
    padding: 82px 7%;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-label {
    margin: 0 0 10px;
    color: #2f6fb3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin: 0 0 15px;
    color: #173a63;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -.6px;
}

.section-heading > p:last-child {
    margin: 0;
    color: #687789;
    font-size: 17px;
}

/* =========================================================
   INSURANCE OPTIONS
   ========================================================= */
.insurance-section {
    background: #f7faff;
}

.insurance-grid {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.insurance-card {
    position: relative;
    overflow: hidden;
    padding: 0 32px 32px;
    border: 1px solid #e1e8f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(27,55,85,.055);
}

.insurance-card-image {
    position: relative;
    width: calc(100% + 64px);
    height: 360px;
    margin: 0 -32px 25px;
    overflow: hidden;
    background: #f7f9fc;
    border-bottom: 1px solid #e1e9f2;
}

.insurance-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.insurance-card:first-child .insurance-card-image img {
    object-position: center 34%;
}

.insurance-card:nth-child(2) .insurance-card-image img {
    object-position: center 30%;
}

.insurance-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 11px;
    background: #f0f6fc;
    color: #2f6fb3;
    font-size: 13px;
    font-weight: 800;
}

.insurance-card h3 {
    margin: 0 0 12px;
    color: #173a63;
    font-size: 25px;
    font-weight: 700;
}

.insurance-card > p {
    margin: 0 0 20px;
    color: #627286;
}

.insurance-card ul {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.insurance-card li {
    margin: 10px 0;
    color: #627286;
}

.insurance-card li::before {
    content: "✓";
    margin-right: 10px;
    color: #4d82b7;
    font-weight: 800;
}

.card-button {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 7px;
    background: #173a63;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.card-button:hover {
    background: #2f6fb3;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-section {
    background: #fff;
}

.steps-grid {
    width: min(1000px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step {
    padding: 22px;
    text-align: center;
}

.step-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border: 1px solid #dce7f1;
    border-radius: 50%;
    background: #f1f6fb;
    color: #2f6fb3;
    font-size: 24px;
    font-weight: 900;
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2f6fb3;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.step h3 {
    margin: 0 0 10px;
    color: #173a63;
    font-size: 21px;
}

.step p {
    margin: 0;
    color: #687789;
}

/* =========================================================
   QUOTE SECTION / FORM
   ========================================================= */
.quote-section {
    width: min(1300px, 100%);
    margin: 0 auto;
    padding: 82px 7%;
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.55fr);
    gap: 32px;
    align-items: start;
    background: #f8fafc;
}

.quote-info {
    background: #173a63;
    color: #fff;
    border-radius: 14px;
    padding: 30px;
}

.quote-info .section-label {
    color: #a8cbff;
}

.quote-info h2 {
    margin: 10px 0 20px;
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
}

.quote-info > p,
.quote-points p {
    color: #deebf8;
    font-size: 16px;
}

.quote-points {
    margin-top: 30px;
}

.quote-points p {
    margin: 12px 0;
}

.quote-form-card {
    padding: 30px;
    border: 1px solid #e0e7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(27,55,85,.08);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step-label {
    margin-bottom: 8px;
    color: #2f6fb3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-step h3 {
    margin: 0 0 22px;
    color: #173a63;
    font-size: 24px;
    line-height: 1.3;
}

.insurance-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.type-option {
    padding: 18px;
    border: 1px solid #d8e2ec;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.type-option:hover,
.type-option.selected {
    border-color: #2f6fb3;
    background: #f5f9fd;
}

.type-option strong {
    display: block;
    margin-bottom: 5px;
    color: #173a63;
    font-size: 17px;
}

.type-option span {
    color: #6b7a8c;
    font-size: 14px;
}

.conditional-questions {
    display: none;
}

.conditional-questions.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #34485d;
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 0 13px;
    border: 1px solid #cfd9e4;
    border-radius: 7px;
    background: #fff;
    color: #26394d;
    font-size: 15px;
}

.form-group textarea {
    padding-top: 12px;
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6f9bc3;
    box-shadow: 0 0 0 3px rgba(47,111,179,.08);
}

.form-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 14px;
}

.next-button,
.back-button,
.submit-quote {
    border-radius: 7px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
}

.next-button,
.submit-quote {
    border: 0;
    background: #2f6fb3;
    color: #fff;
}

.next-button:hover,
.submit-quote:hover {
    background: #255d99;
}

.next-button {
    margin-left: auto;
}

.back-button {
    border: 1px solid #ccd7e2;
    background: #fff;
    color: #53667a;
}

.back-button:hover {
    background: #f7f9fb;
}

.form-navigation .submit-quote {
    width: auto;
    min-width: 210px;
}

.consent-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin: 5px 0 20px;
    padding: 10px;
    border: 1px solid #e1e7ee;
    border-radius: 8px;
    background: #fafbfd;
    color: #697789;
    font-size: 12px;
    line-height: 1.5;
}

.notice-at-collection {
    padding: 12px;
    border: 1px solid #cedff1;
    border-radius: 12px;
    background: #f8fbff;
}

.notice-at-collection strong {
    color: #173a63;
}

.form-disclaimer {
    margin-top: 13px;
    text-align: center;
    color: #7b8798;
    font-size: 11px;
}

/* =========================================================
   TRUST / CARRIERS / CTA / FOOTER
   ========================================================= */
.trust-section {
    background: #fff;
}

.trust-grid {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.trust-card {
    padding: 26px;
    border: 1px solid #e2e8ef;
    border-radius: 12px;
    background: #fff;
}

.trust-card h3 {
    margin: 0 0 10px;
    color: #173a63;
    font-size: 19px;
}

.trust-card p {
    margin: 0;
    color: #687789;
}

.carrier-section {
    padding: 72px 7%;
    background: #fff;
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
}

.carrier-grid {
    width: min(1000px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.carrier-card {
    min-height: 118px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e0e7ef;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(27,55,85,.045);
}

.carrier-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 185px;
    max-height: 55px;
    object-fit: contain;
}

.carrier-note {
    width: min(850px, 100%);
    margin: 20px auto 0;
    text-align: center;
    color: #7a8795;
    font-size: 11px;
    line-height: 1.6;
}

.final-cta {
    padding: 70px 7%;
    background: #173a63;
    color: #fff;
    text-align: center;
}

.final-cta h2 {
    margin: 0 0 12px;
    font-size: 36px;
}

.final-cta p {
    margin: 0 0 28px;
    color: #dbe6f0;
    font-size: 17px;
}

.final-cta .hero-button {
    background: #fff;
    color: #173a63;
}

.final-cta .hero-button:hover {
    background: #f1f5f9;
}

.site-footer {
    padding: 30px 0;
    background: #102d4c;
    color: #d9e3ec;
    text-align: center;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 980px) {

    .main-nav {
        display: none;
    }

    .hero {
        display: flex;
        flex-direction: column;
        width: 94%;
        min-height: 0;
        height: auto;
        margin-top: 18px;
    }

    .hero-content {
        width: 100%;
        padding: 52px 7% 34px;
        overflow: visible;
    }

    .hero h1 {
        max-width: 700px;
        font-size: 48px;
    }

    .hero-description {
        max-width: 650px;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 430px;
        order: 2;
    }

    .hero-image img {
        object-fit: contain;
        object-position: center center;
    }

    .hero-insurance-badges {
        right: 24px;
        bottom: 20px;
    }

    .hero-trust {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        min-height: 64px;
        padding: 14px 5%;
        order: 3;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .hero-trust span {
        white-space: nowrap;
    }

    .hero-trust span:nth-child(1) {
        justify-self: start;
        text-align: left;
    }

    .hero-trust span:nth-child(2) {
        justify-self: center;
        text-align: center;
    }

    .hero-trust span:nth-child(3) {
        justify-self: end;
        text-align: right;
    }

    .insurance-grid,
    .steps-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .insurance-card-image {
        height: 330px;
    }

    .insurance-card:first-child .insurance-card-image img {
        object-position: center 34%;
    }

    .insurance-card:nth-child(2) .insurance-card-image img {
        object-position: center 30%;
    }

    .quote-section {
        grid-template-columns: 1fr;
    }

    .quote-info {
        position: static;
    }

    .carrier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 700px) {

    .site-header .container {
        min-height: 68px;
    }

    .logo a {
        font-size: 0;
    }

    .logo a::before {
        width: 155px;
        height: 68px;
        flex-basis: 155px;
    }

    .quote-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .hero {
        width: 92%;
        margin-top: 12px;
        border-radius: 16px;
    }

    .hero-content {
        padding: 40px 7% 30px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.06;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        height: 310px;
    }

    .hero-image img {
        object-fit: contain;
        object-position: center center;
    }

    .hero-insurance-badges {
        right: 12px;
        bottom: 12px;
        gap: 7px;
    }

    .hero-insurance-badge {
        width: 102px;
        min-height: 94px;
        padding: 9px 6px;
    }

    .hero-badge-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 5px;
        font-size: 15px;
    }

    .hero-insurance-badge strong {
        font-size: 10px;
    }

    .hero-insurance-badge > span:last-child {
        font-size: 8px;
    }

    .hero-trust {
        justify-content: stretch;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 13px 18px;
    }

    .hero-trust span {
        white-space: normal;
        text-align: center;
        font-size: 10px;
    }

    .hero-trust span:nth-child(1),
    .hero-trust span:nth-child(2),
    .hero-trust span:nth-child(3) {
        justify-self: center;
        text-align: center;
    }

    .insurance-section,
    .how-section,
    .trust-section,
    .quote-section {
        padding: 62px 6%;
    }

    .section-heading h2,
    .quote-info h2,
    .final-cta h2 {
        font-size: 30px;
    }

    .insurance-card {
        padding: 0 20px 26px;
    }

    .insurance-card-image {
        width: calc(100% + 40px);
        height: 240px;
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: 22px;
    }

    .insurance-card:first-child .insurance-card-image img {
        object-position: center 34%;
    }

    .insurance-card:nth-child(2) .insurance-card-image img {
        object-position: center 30%;
    }

    .insurance-type-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .quote-form-card {
        padding: 22px;
    }

    .form-navigation {
        flex-direction: column;
    }

    .next-button,
    .back-button,
    .form-navigation .submit-quote {
        width: 100%;
    }

    .carrier-section {
        padding: 58px 6%;
    }

    .carrier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .carrier-card {
        min-height: 90px;
        padding: 14px;
    }

    .carrier-card img {
        max-width: 135px;
        max-height: 42px;
    }
}