/* ==========================================================
   NEW WORLD CLASS CLEANERS
   REQUEST A QUOTE PAGE
   ========================================================== */


/* ==========================================================
   1. PAGE
   ========================================================== */

.quote-page {
    margin: 0;

    background: #ffffff;
    color: #082c61;
}


/* ==========================================================
   2. QUOTE HERO
   ========================================================== */

.quote-hero {
    position: relative;
    overflow: hidden;

    padding: 58px 0;

    background:
        linear-gradient(
            115deg,
            #052958 0%,
            #075c94 58%,
            #0782bd 100%
        );

    color: #ffffff;
}


/* Decorative background */

.quote-hero::after {
    content: "";

    position: absolute;
    top: -180px;
    right: -120px;

    width: 500px;
    height: 500px;

    border: 70px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;

    pointer-events: none;
}


.quote-hero-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    align-items: center;
    gap: 70px;
}


/* ----------------------------------------------------------
   HERO COPY
   ---------------------------------------------------------- */

.quote-hero-copy {
    max-width: 680px;
}


.quote-kicker {
    display: block;

    margin-bottom: 13px;

    color: #93d8f7;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}


.quote-hero h1 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: clamp(42px, 5vw, 62px);
    line-height: 0.98;
    letter-spacing: -1.8px;
}


.quote-hero h1 span {
    display: block;

    margin-top: 7px;

    color: #8fd8f8;
}


.quote-hero-copy > p {
    max-width: 610px;

    margin: 0 0 25px;

    color: #e6f3fa;

    font-size: 18px;
    line-height: 1.55;
}


/* ----------------------------------------------------------
   HERO POINTS
   ---------------------------------------------------------- */

.quote-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
}


.quote-hero-points div {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}


.quote-hero-points span {
    width: 21px;
    height: 21px;

    display: inline-grid;
    place-items: center;

    flex: 0 0 21px;

    border-radius: 50%;

    background: #ffffff;
    color: #0769a5;

    font-size: 12px;
    font-weight: 900;
}


/* ----------------------------------------------------------
   HERO PHONE CARD
   ---------------------------------------------------------- */

.quote-hero-contact {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;

    position: relative;

    padding: 27px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.10);

    box-shadow:
        0 16px 35px rgba(0, 28, 58, 0.18);

    backdrop-filter: blur(5px);
}


.quote-hero-contact-label {
    grid-column: 1 / -1;

    color: #a8dcf4;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}


.quote-phone-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #ffffff;
    color: #0769a5;

    font-size: 26px;
}


.quote-hero-contact > div:last-child {
    display: flex;
    flex-direction: column;
}


.quote-hero-contact span {
    margin-bottom: 5px;

    color: #d6edf8;

    font-size: 12px;
}


.quote-hero-contact a {
    color: #ffffff;

    text-decoration: none;

    font-size: 25px;
    font-weight: 800;
}


.quote-hero-contact a:hover {
    text-decoration: underline;
}


.quote-hero-contact small {
    margin-top: 4px;

    color: #b9dbea;

    font-size: 12px;
}


/* ==========================================================
   3. MAIN QUOTE AREA
   ========================================================== */

.quote-content {
    padding: 50px 0 55px;

    background: #f5f9fc;
}


.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(285px, 0.75fr);
    align-items: start;
    gap: 32px;
}


/* ==========================================================
   4. QUOTE FORM CARD
   ========================================================== */

.quote-form-card {
    overflow: hidden;

    border: 1px solid #d8e4ec;
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 12px 32px rgba(5, 45, 82, 0.07);
}


/* ----------------------------------------------------------
   FORM TOP
   ---------------------------------------------------------- */

.quote-form-top {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 27px 31px;

    border-bottom: 1px solid #dfe9ef;

    background:
        linear-gradient(
            100deg,
            #f6fbfe,
            #ffffff
        );
}


.form-step-number {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    flex: 0 0 48px;

    border-radius: 50%;

    background: #0769a7;
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
}


.form-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: #0872ad;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


.quote-form-top h2 {
    margin: 0;

    color: #082f66;

    font-size: 27px;
    line-height: 1.15;
}


.quote-form-top p {
    margin: 5px 0 0;

    color: #637b8e;

    font-size: 14px;
}


/* ==========================================================
   5. FORM SECTIONS
   ========================================================== */

.form-section {
    padding: 30px;

    border-bottom: 1px solid #e1e9ee;
}


.form-section:last-of-type {
    border-bottom: 0;
}


/* ----------------------------------------------------------
   SECTION HEADING
   ---------------------------------------------------------- */

.form-section-title {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 22px;
}


.form-section-title > span {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    flex: 0 0 35px;

    border-radius: 50%;

    background: #eaf6fc;
    color: #0769a7;

    font-size: 11px;
    font-weight: 900;
}


.form-section-title h3 {
    margin: 0;

    color: #092f68;

    font-size: 18px;
}


.form-section-title p {
    margin: 3px 0 0;

    color: #708497;

    font-size: 13px;
}


/* ==========================================================
   6. FORM GRID
   ========================================================== */

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


.form-full {
    grid-column: 1 / -1;
}


/* ==========================================================
   7. FORM CONTROLS
   ========================================================== */

.form-group {
    position: relative;

    display: flex;
    flex-direction: column;
}


.form-group label {
    margin-bottom: 7px;

    color: #173c63;

    font-size: 13px;
    font-weight: 800;

    transition:
        color 0.2s ease;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #bfd0dc;
    border-radius: 6px;

    background: #ffffff;
    color: #18364f;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}


.form-group input,
.form-group select {
    min-height: 48px;

    padding: 0 13px;
}


.form-group textarea {
    min-height: 135px;

    padding: 13px;

    resize: vertical;

    line-height: 1.5;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9aaab6;
}


/* ----------------------------------------------------------
   FOCUS
   ---------------------------------------------------------- */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0872b2;

    box-shadow:
        0 0 0 3px rgba(8, 114, 178, 0.10);
}


/* ==========================================================
   8. REQUIRED FIELD VALIDATION
   ========================================================== */

/*
 * JavaScript adds .field-error to an invalid control.
 */

.quote-form input.field-error,
.quote-form select.field-error,
.quote-form textarea.field-error {
    border: 2px solid #d52b2b !important;

    background: #fffafa;

    box-shadow:
        0 0 0 3px rgba(213, 43, 43, 0.10);
}


/* Keep red validation state when focused */

.quote-form input.field-error:focus,
.quote-form select.field-error:focus,
.quote-form textarea.field-error:focus {
    border-color: #d52b2b !important;

    box-shadow:
        0 0 0 4px rgba(213, 43, 43, 0.13);
}


/* Change label to red */

.form-group.has-error > label {
    color: #c52222;
}


/* ----------------------------------------------------------
   ERROR MESSAGE
   ---------------------------------------------------------- */

.field-error-message {
    display: block;

    margin-top: 7px;

    color: #c52222;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}


/* ==========================================================
   9. FREQUENCY SELECTION
   ========================================================== */

.frequency-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;

    border: 2px solid transparent;
    border-radius: 8px;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        padding 0.18s ease;
}


.selection-card {
    position: relative;

    min-height: 100px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 15px 8px;

    border: 1px solid #cbd9e2;
    border-radius: 7px;

    background: #ffffff;

    cursor: pointer;

    text-align: center;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.selection-card:hover {
    border-color: #67afd3;

    background: #f5fbfe;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px rgba(8, 77, 119, 0.07);
}


.selection-card input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.selection-check {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    margin-bottom: 8px;

    border: 1px solid #b6cad7;
    border-radius: 50%;

    background: #ffffff;
    color: transparent;

    font-size: 12px;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}


.selection-card strong {
    color: #12375f;

    font-size: 14px;
}


.selection-card small {
    margin-top: 3px;

    color: #718697;

    font-size: 11px;
}


/* ----------------------------------------------------------
   SELECTED FREQUENCY
   ---------------------------------------------------------- */

.selection-card:has(input:checked) {
    border-color: #0872b2;

    background: #edf8fd;

    box-shadow:
        inset 0 0 0 1px #0872b2;
}


.selection-card:has(input:checked) .selection-check {
    border-color: #0872b2;

    background: #0872b2;
    color: #ffffff;
}


/* ----------------------------------------------------------
   FREQUENCY ERROR
   ---------------------------------------------------------- */

.frequency-options.group-error {
    padding: 10px;

    border-color: #d52b2b;

    background: #fff8f8;
}


.frequency-options.group-error .selection-card {
    border-color: #e3b1b1;
}


.frequency-options > .field-error-message {
    grid-column: 1 / -1;

    margin: 0 2px 2px;
}


/* ==========================================================
   10. SERVICE SELECTION
   ========================================================== */

.service-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;

    border: 2px solid transparent;
    border-radius: 8px;
}


.service-selection {
    position: relative;

    min-height: 74px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 13px;

    border: 1px solid #cad8e2;
    border-radius: 7px;

    background: #ffffff;

    cursor: pointer;

    color: #163a60;

    font-size: 13px;
    font-weight: 700;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.service-selection:hover {
    border-color: #75b5d6;

    background: #f7fcfe;

    transform: translateY(-1px);
}


.service-selection input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.service-selection-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    flex: 0 0 36px;

    border-radius: 50%;

    background: #eaf6fb;
    color: #0870aa;

    font-size: 19px;
}


/* ----------------------------------------------------------
   SELECTED SERVICE
   ---------------------------------------------------------- */

.service-selection:has(input:checked) {
    border-color: #0872b2;

    background: #edf8fd;

    box-shadow:
        inset 0 0 0 1px #0872b2;
}


.service-selection:has(input:checked)
.service-selection-icon {
    background: #0872b2;
    color: #ffffff;
}


/* ----------------------------------------------------------
   SERVICE GROUP ERROR
   ---------------------------------------------------------- */

.service-selection-grid.group-error {
    padding: 10px;

    border-color: #d52b2b;

    background: #fff8f8;
}


.service-selection-grid > .field-error-message {
    grid-column: 1 / -1;
}


/* ==========================================================
   11. SUBMIT AREA
   ========================================================== */

.quote-submit {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;

    padding: 27px 30px;

    border-top: 1px solid #dbe7ee;

    background:
        linear-gradient(
            100deg,
            #eff8fc,
            #f9fcfe
        );
}


.quote-submit-copy {
    display: flex;
    flex-direction: column;
}


.quote-submit-copy strong {
    color: #082f66;

    font-size: 17px;
}


.quote-submit-copy span {
    margin-top: 4px;

    color: #6c8192;

    font-size: 12px;
}


/* ----------------------------------------------------------
   SUBMIT BUTTON
   ---------------------------------------------------------- */

.quote-submit-button {
    min-width: 205px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    padding: 16px 22px;

    border: 0;
    border-radius: 6px;

    background: #0765a3;
    color: #ffffff;

    cursor: pointer;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 6px 14px rgba(7, 78, 127, 0.15);

    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.quote-submit-button:hover {
    background: #054f82;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(7, 78, 127, 0.20);
}


.quote-submit-button:active {
    transform: translateY(0);
}


.quote-submit-button:disabled {
    cursor: wait;

    opacity: 0.65;

    transform: none;
}


/* ==========================================================
   12. FORM RESPONSE MESSAGE
   ========================================================== */

.quote-message {
    grid-column: 1 / -1;

    display: none;

    padding: 13px 15px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}


.quote-message-success {
    display: block;

    border: 1px solid #9bd4b0;

    background: #eefaf2;
    color: #176536;
}


.quote-message-error {
    display: block;

    border: 1px solid #e2aaaa;

    background: #fff4f4;
    color: #a92323;
}


/* ==========================================================
   13. SIDEBAR
   ========================================================== */

.quote-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* ==========================================================
   14. STANDARD SIDEBAR CARD
   ========================================================== */

.standard-sidebar-card {
    overflow: hidden;

    padding: 28px;

    border: 1px solid #d7e4ec;
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 10px 25px rgba(5, 45, 82, 0.06);
}


.sidebar-logo-wrap {
    width: 76px;
    height: 76px;

    display: grid;
    place-items: center;

    margin-bottom: 16px;

    border-radius: 50%;

    background: #edf7fc;
}


.sidebar-logo-wrap img {
    max-width: 64px;
    max-height: 64px;

    display: block;

    object-fit: contain;
}


.sidebar-eyebrow {
    display: block;

    margin-bottom: 6px;

    color: #0872ad;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
}


.standard-sidebar-card h2 {
    margin: 0 0 9px;

    color: #082f66;

    font-size: 24px;
}


.sidebar-intro {
    margin: 0 0 22px;

    color: #667d8f;

    font-size: 13px;
    line-height: 1.55;
}


/* ----------------------------------------------------------
   STANDARD ITEM
   ---------------------------------------------------------- */

.sidebar-standard {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 11px;

    padding: 14px 0;

    border-top: 1px solid #e4ebf0;
}


.sidebar-standard > span {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #e9f6fc;
    color: #0769a7;

    font-size: 12px;
    font-weight: 900;
}


.sidebar-standard div {
    display: flex;
    flex-direction: column;
}


.sidebar-standard strong {
    color: #173a5d;

    font-size: 13px;
}


.sidebar-standard small {
    margin-top: 3px;

    color: #7c8e9d;

    font-size: 11px;
    line-height: 1.4;
}


/* ==========================================================
   15. LOCAL SERVICE CARD
   ========================================================== */

.local-service-card {
    padding: 25px;

    border-radius: 10px;

    background:
        linear-gradient(
            120deg,
            #073462,
            #086da5
        );

    color: #ffffff;

    box-shadow:
        0 10px 25px rgba(5, 45, 82, 0.10);
}


.local-service-card > span {
    display: block;

    margin-bottom: 5px;

    color: #92d6f4;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}


.local-service-card h3 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 21px;
}


.local-service-card > p {
    margin: 0 0 18px;

    color: #d5eaf4;

    font-size: 12px;
    line-height: 1.5;
}


.local-service-card > a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-top: 16px;

    border-top: 1px solid rgba(255, 255, 255, 0.18);

    color: #ffffff;

    text-decoration: none;
}


.local-phone-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.13);

    font-size: 18px;
}


.local-service-card a > span:last-child {
    display: flex;
    flex-direction: column;
}


.local-service-card a small {
    color: #9dd5ef;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}


.local-service-card a strong {
    margin-top: 2px;

    color: #ffffff;

    font-size: 19px;
}


/* ==========================================================
   16. BOTTOM TRUST STRIP
   ========================================================== */

.quote-bottom-strip {
    padding: 24px 0;

    border-top: 1px solid #d9e6ed;
    border-bottom: 1px solid #d9e6ed;

    background: #eef7fb;
}


.quote-bottom-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}


.quote-bottom-strip .container > div {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 3px 18px;

    border-right: 1px solid #c7dbe6;

    text-align: center;
}


.quote-bottom-strip .container > div:last-child {
    border-right: 0;
}


.quote-bottom-strip strong {
    color: #092f68;

    font-size: 14px;
}


.quote-bottom-strip span {
    margin-top: 3px;

    color: #6e8292;

    font-size: 11px;
}


/* ==========================================================
   17. QUOTE PAGE FOOTER OVERRIDES
   ========================================================== */

.quote-page footer a {
    color: #075b9c;

    text-decoration: none;
    font-weight: 700;
}


.quote-page footer a:hover {
    text-decoration: underline;
}


.quote-page .footer-brand {
    text-decoration: none;
}


.quote-page .footer-logo {
    width: 55px;
    height: 55px;

    object-fit: contain;
}


/* ==========================================================
   18. ACCESSIBILITY
   ========================================================== */

.quote-form input:focus-visible,
.quote-form select:focus-visible,
.quote-form textarea:focus-visible,
.quote-submit-button:focus-visible,
.selection-card:has(input:focus-visible),
.service-selection:has(input:focus-visible) {
    outline: 3px solid rgba(8, 114, 178, 0.24);
    outline-offset: 2px;
}


/* ==========================================================
   19. TABLET
   ========================================================== */

@media (max-width: 1000px) {

    .quote-hero-grid {
        grid-template-columns: 1fr 340px;
        gap: 35px;
    }


    .quote-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 22px;
    }


    .frequency-options {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .service-selection-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   20. SMALL TABLET
   ========================================================== */

@media (max-width: 850px) {

    .quote-hero {
        padding: 45px 0;
    }


    .quote-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }


    .quote-hero-contact {
        max-width: 430px;
    }


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


    .quote-sidebar {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


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


    .quote-submit-button {
        width: 100%;
    }

}


/* ==========================================================
   21. MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .quote-hero {
        padding: 38px 0;
    }


    .quote-hero h1 {
        font-size: 39px;
    }


    .quote-hero-copy > p {
        font-size: 16px;
    }


    .quote-hero-points {
        flex-direction: column;
        gap: 10px;
    }


    .quote-hero-contact {
        padding: 21px;
    }


    .quote-content {
        padding: 28px 0 35px;
    }


    .quote-form-top {
        padding: 22px 19px;
    }


    .quote-form-top h2 {
        font-size: 23px;
    }


    .form-section {
        padding: 25px 19px;
    }


    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }


    .form-full {
        grid-column: auto;
    }


    .frequency-options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .selection-card {
        min-height: 92px;
    }


    .service-selection-grid {
        grid-template-columns: 1fr;
    }


    .quote-submit {
        padding: 23px 19px;
    }


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


    .quote-bottom-strip .container {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 20px 0;
    }


    .quote-bottom-strip .container > div {
        border-right: 0;
    }

}


/* ==========================================================
   22. VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 400px) {

    .quote-hero h1 {
        font-size: 34px;
    }


    .quote-hero-contact {
        grid-template-columns: 46px 1fr;
        gap: 12px;
    }


    .quote-phone-icon {
        width: 46px;
        height: 46px;

        font-size: 21px;
    }


    .quote-hero-contact a {
        font-size: 20px;
    }


    .frequency-options {
        grid-template-columns: 1fr 1fr;
    }


    .quote-bottom-strip .container {
        grid-template-columns: 1fr;
    }

}