/**
 * ============================================================================
 * Kasi Mattress
 * Request a Quote
 * File: assets/css/pages/quote.css
 * Version: 2.0.0
 * ============================================================================
 */


/* ==========================================================================
   PAGE
========================================================================== */

.km-quote-page {
    background: #f8fafc;
    color: #333333;
}


/* ==========================================================================
   HERO
========================================================================== */

.km-quote-hero {
    position: relative;

    overflow: hidden;

    padding: 82px 0 88px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(244, 163, 0, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0f4c81 0%,
            #123f68 100%
        );

    color: #ffffff;
}

.km-quote-hero::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    bottom: -260px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 50%;
}

.km-quote-hero-content {
    position: relative;

    z-index: 1;

    max-width: 760px;
}

.km-quote-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;

    color: #f4a300;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.km-quote-eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    margin-right: 11px;

    background: #f4a300;
}

.km-quote-hero h1 {
    max-width: 700px;

    margin: 0;

    color: #ffffff;

    font-family: "Poppins", sans-serif;

    font-size: clamp(38px, 5vw, 62px);

    font-weight: 700;

    letter-spacing: -0.035em;

    line-height: 1.08;
}

.km-quote-hero h1 span {
    display: block;

    color: #f4a300;
}

.km-quote-hero p {
    max-width: 620px;

    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 16px;

    line-height: 1.75;
}


/* ==========================================================================
   CONTENT
========================================================================== */

.km-quote-content {
    padding: 0 0 90px;
}


/* ==========================================================================
   PROGRESS
========================================================================== */

.km-quote-progress {
    position: relative;

    display: flex;
    align-items: center;

    max-width: 900px;

    margin: 0 auto;

    padding: 26px 0 38px;
}

.km-quote-progress-item {
    position: relative;

    z-index: 2;

    display: flex;
    align-items: center;

    gap: 9px;

    color: #8b949c;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.km-progress-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border: 1px solid #dce3e9;

    border-radius: 50%;

    background: #ffffff;

    color: #8b949c;

    font-size: 10px;
    font-weight: 800;
}

.km-progress-label {
    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.km-quote-progress-item.is-active {
    color: #0f4c81;
}

.km-quote-progress-item.is-active .km-progress-number {
    border-color: #f4a300;

    background: #f4a300;

    color: #ffffff;
}

.km-quote-progress-item.is-complete {
    color: #0f4c81;
}

.km-quote-progress-item.is-complete .km-progress-number {
    border-color: #0f4c81;

    background: #0f4c81;

    color: #ffffff;
}

.km-quote-progress-line {
    flex: 1;

    height: 1px;

    margin: 0 14px;

    background: #dfe5ea;
}


/* ==========================================================================
   MAIN GRID
========================================================================== */

.km-quote-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        350px;

    align-items: start;

    gap: 28px;
}


/* ==========================================================================
   FORM PANEL
========================================================================== */

.km-quote-form-panel {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1e7ec;

    border-radius: 14px;

    box-shadow:
        0 12px 35px rgba(15, 76, 129, 0.06);
}

.km-quote-form-header {
    padding: 32px 34px 26px;

    border-bottom: 1px solid #e7ebef;
}

.km-quote-form-header .km-section-label {
    display: block;

    margin-bottom: 7px;

    color: #f4a300;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.km-quote-form-header h2 {
    margin: 0 0 7px;

    color: #0f4c81;

    font-family: "Poppins", sans-serif;

    font-size: 25px;
    font-weight: 700;

    line-height: 1.25;
}

.km-quote-form-header p {
    margin: 0;

    color: #7a858e;

    font-size: 13px;

    line-height: 1.6;
}


/* ==========================================================================
   FORM SECTIONS
========================================================================== */

.km-quote-section {
    min-width: 0;

    margin: 0;

    padding: 32px 34px;

    border: 0;

    border-bottom: 1px solid #e7ebef;
}

.km-quote-section-heading {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 100%;

    margin: 0 0 25px;

    padding: 0;

    color: #0f4c81;
}

.km-form-step {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    background: #f4a300;

    border-radius: 9px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
}

.km-quote-section-heading > span:last-child {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.km-quote-section-heading strong {
    color: #0f4c81;

    font-family: "Poppins", sans-serif;

    font-size: 15px;
    font-weight: 700;
}

.km-quote-section-heading small {
    color: #8a949d;

    font-size: 11px;
    font-weight: 400;

    line-height: 1.4;
}


/* ==========================================================================
   FORM GRID
========================================================================== */

.km-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px 18px;
}

.km-form-group {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.km-form-group-full {
    grid-column: 1 / -1;
}


/* ==========================================================================
   FORM LABELS
========================================================================== */

.km-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #3d4850;

    font-size: 11px;
    font-weight: 700;
}

.km-form-group .required {
    margin-left: 2px;

    color: #f4a300;
}


/* ==========================================================================
   FORM CONTROLS
========================================================================== */

.km-form-group input,
.km-form-group select,
.km-form-group textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dce3e8;

    border-radius: 8px;

    background: #ffffff;

    color: #333333;

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.km-form-group input,
.km-form-group select {
    min-height: 47px;

    padding: 0 14px;
}

.km-form-group textarea {
    min-height: 115px;

    padding: 13px 14px;

    resize: vertical;
}

.km-form-group input::placeholder,
.km-form-group textarea::placeholder {
    color: #a0a8ae;
}

.km-form-group select {
    cursor: pointer;
}

.km-form-group input:hover,
.km-form-group select:hover,
.km-form-group textarea:hover {
    border-color: #c6d0d8;
}

.km-form-group input:focus,
.km-form-group select:focus,
.km-form-group textarea:focus {
    border-color: #0f4c81;

    box-shadow:
        0 0 0 3px rgba(15, 76, 129, 0.08);
}


/* ==========================================================================
   FORM FOOTER
========================================================================== */

.km-quote-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 25px 34px;
}

.km-form-note {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    max-width: 390px;

    margin: 0;

    color: #8a949d;

    font-size: 10px;

    line-height: 1.6;
}

.km-form-note i {
    flex: 0 0 auto;

    margin-top: 2px;

    color: #0f4c81;
}

.km-quote-submit {
    min-width: 190px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    white-space: nowrap;
}


/* ==========================================================================
   SUMMARY
========================================================================== */

.km-quote-summary {
    position: sticky;

    top: 25px;

    overflow: hidden;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #0f4c81 0%,
            #123f68 100%
        );

    color: #ffffff;

    box-shadow:
        0 18px 45px rgba(15, 76, 129, 0.18);
}

.km-summary-inner {
    padding: 28px;
}

.km-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.km-summary-header span {
    color: #ffffff;

    font-family: "Poppins", sans-serif;

    font-size: 19px;
    font-weight: 700;
}

.km-summary-header i {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f4a300;

    color: #ffffff;

    font-size: 13px;
}

.km-summary-intro {
    padding: 20px 0 7px;
}

.km-summary-intro strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 12px;
}

.km-summary-intro p {
    margin: 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 10px;

    line-height: 1.6;
}


/* ==========================================================================
   SUMMARY ITEMS
========================================================================== */

.km-summary-item,
.km-summary-delivery {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 0;
}

.km-summary-label {
    display: block;

    color: rgba(255, 255, 255, 0.53);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.km-summary-item strong,
.km-summary-delivery strong {
    max-width: 180px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.4;

    text-align: right;
}

.km-summary-divider {
    height: 1px;

    background: rgba(255, 255, 255, 0.12);
}


/* ==========================================================================
   SUMMARY MESSAGE
========================================================================== */

.km-summary-message {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-top: 22px;

    padding: 15px;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 9px;
}

.km-summary-message-icon {
    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #f4a300;

    color: #ffffff;

    font-size: 10px;
}

.km-summary-message strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
}

.km-summary-message p {
    margin: 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 9px;

    line-height: 1.6;
}


/* ==========================================================================
   SUMMARY BUTTON
========================================================================== */

.km-summary-submit {
    width: 100%;

    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 20px;

    padding: 0 17px;

    border: 0;

    border-radius: 8px;

    background: #f4a300;

    color: #ffffff;

    font-family: inherit;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.km-summary-submit:hover {
    background: #e59a00;

    transform: translateY(-1px);
}

.km-summary-submit i {
    font-size: 11px;
}


/* ==========================================================================
   WHATSAPP
========================================================================== */

.km-summary-whatsapp {
    padding-top: 20px;

    text-align: center;
}

.km-summary-whatsapp span {
    display: block;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.48);

    font-size: 9px;
}

.km-summary-whatsapp a {
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;
}

.km-summary-whatsapp a:hover {
    color: #f4a300;
}

.km-summary-whatsapp i {
    margin-left: 5px;

    font-size: 9px;
}


/* ==========================================================================
   BOTTOM CTA
========================================================================== */

.km-quote-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    margin-top: 55px;

    padding: 34px 38px;

    background: #ffffff;

    border: 1px solid #e1e7ec;

    border-left: 4px solid #f4a300;

    border-radius: 12px;

    box-shadow:
        0 10px 30px rgba(15, 76, 129, 0.04);
}

.km-quote-bottom-content {
    max-width: 620px;
}

.km-quote-bottom-content .km-section-label {
    display: block;

    margin-bottom: 6px;

    color: #f4a300;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.km-quote-bottom h2 {
    margin: 0 0 6px;

    color: #0f4c81;

    font-family: "Poppins", sans-serif;

    font-size: 20px;
    font-weight: 700;
}

.km-quote-bottom p {
    margin: 0;

    color: #7b858d;

    font-size: 11px;

    line-height: 1.6;
}

.km-quote-bottom-actions {
    display: flex;

    flex-shrink: 0;

    gap: 10px;
}


/* ==========================================================================
   BUTTON OVERRIDES
========================================================================== */

.km-quote-page .km-btn {
    min-height: 45px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 18px;

    border-radius: 7px;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}


/* ==========================================================================
   TABLET
========================================================================== */

@media (max-width: 1050px) {

    .km-quote-grid {
        grid-template-columns:
            minmax(0, 1fr)
            310px;
    }

    .km-summary-inner {
        padding: 24px;
    }

    .km-quote-section,
    .km-quote-form-header,
    .km-quote-form-footer {
        padding-left: 27px;
        padding-right: 27px;
    }

}


/* ==========================================================================
   MOBILE
========================================================================== */

@media (max-width: 767px) {

    .km-quote-hero {
        padding: 58px 0 62px;
    }

    .km-quote-hero h1 {
        font-size: 38px;
    }

    .km-quote-hero p {
        font-size: 14px;
    }


    .km-quote-content {
        padding-bottom: 60px;
    }


    /* Progress */

    .km-quote-progress {
        overflow-x: auto;

        justify-content: flex-start;

        margin: 0 -15px;

        padding: 20px 15px 28px;
    }

    .km-quote-progress-line {
        min-width: 24px;

        margin: 0 8px;
    }

    .km-progress-label {
        display: none;
    }

    .km-progress-number {
        width: 32px;
        height: 32px;
    }


    /* Grid */

    .km-quote-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    /* Summary */

    .km-quote-summary {
        position: static;

        grid-row: 1;
    }


    /* Form */

    .km-quote-form-panel {
        grid-row: 2;

        border-radius: 11px;
    }

    .km-quote-form-header {
        padding: 25px 20px 22px;
    }

    .km-quote-section {
        padding: 27px 20px;
    }

    .km-form-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .km-form-group-full {
        grid-column: auto;
    }

    .km-quote-form-footer {
        align-items: stretch;

        flex-direction: column;

        padding: 22px 20px;
    }

    .km-quote-submit {
        width: 100%;
    }


    /* Bottom */

    .km-quote-bottom {
        align-items: stretch;

        flex-direction: column;

        gap: 24px;

        margin-top: 35px;

        padding: 27px 22px;
    }

    .km-quote-bottom-actions {
        flex-direction: column;
    }

    .km-quote-bottom-actions .km-btn {
        width: 100%;
    }

}


/* ==========================================================================
   SMALL MOBILE
========================================================================== */

@media (max-width: 480px) {

    .km-quote-hero h1 {
        font-size: 33px;
    }

    .km-summary-inner {
        padding: 21px;
    }

    .km-quote-section-heading strong {
        font-size: 14px;
    }

}