/* ==========================================================================
   Request a quote  (/request-a-quote.html)
   --------------------------------------------------------------------------
   Reuses the form furniture from contact-page.css (.sd-main, .sd-field,
   .sd-submit, .sd-alert). Only what is specific to the guided form is here.
   ========================================================================== */

.sd-quote__step {
    margin: 0 0 34px;
    padding: 0;
    border: 0;
}

.sd-quote__step[hidden] {
    display: none;
}

.sd-quote__step legend {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 8px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--sd-line);
    font-size: 19px;
    font-weight: 800;
    color: var(--sd-navy);
}

.sd-quote__n {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sd-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.sd-quote__lead {
    margin: 12px 0 18px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--sd-muted);
}

/* --------------------------------------------------------------------------
   Step 1: what do you need
   -------------------------------------------------------------------------- */

.sd-quote__picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.sd-quote__pick {
    position: relative;
    margin: 0;
    cursor: pointer;
}

/* The native box is hidden but still focusable, so keyboard use is unaffected. */
.sd-quote__pick input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.sd-quote__pick-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 20px 18px;
    border: 1px solid var(--sd-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.sd-quote__pick:hover .sd-quote__pick-body {
    border-color: rgba(232, 106, 56, .5);
}

.sd-quote__pick input:focus-visible + .sd-quote__pick-body {
    outline: 2px solid var(--sd-blue);
    outline-offset: 2px;
}

.sd-quote__pick.is-on .sd-quote__pick-body {
    border-color: var(--sd-orange);
    background: #FFFBF9;
    box-shadow: 0 0 0 2px rgba(232, 106, 56, .22);
}

.sd-quote__pick-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    border-radius: 11px;
    background: var(--sd-tint);
    color: var(--sd-orange);
    font-size: 17px;
    transition: background .2s ease, color .2s ease;
}

.sd-quote__pick.is-on .sd-quote__pick-icon {
    background: var(--sd-orange);
    color: #fff;
}

.sd-quote__pick-name {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--sd-navy);
}

.sd-quote__pick-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--sd-muted);
}

/* A tick appears on the chosen cards. */
.sd-quote__pick.is-on .sd-quote__pick-body::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sd-orange);
    color: #fff;
    font-size: 11px;
}

/* --------------------------------------------------------------------------
   Step 2: the revealed spec blocks
   -------------------------------------------------------------------------- */

.sd-quote__block {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--sd-line);
    border-left: 3px solid var(--sd-orange);
    border-radius: 0 14px 14px 0;
    background: var(--sd-tint);
}

.sd-quote__block[hidden] {
    display: none;
}

.sd-quote__block h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 800;
    color: var(--sd-navy);
}

.sd-quote__block .sd-field input,
.sd-quote__block .sd-field select {
    background: #fff;
}

/* --------------------------------------------------------------------------
   File input
   -------------------------------------------------------------------------- */

.sd-field input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px dashed var(--sd-line);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--sd-navy);
    cursor: pointer;
}

.sd-field input[type="file"]:focus {
    outline: none;
    border-color: var(--sd-blue);
    box-shadow: 0 0 0 3px rgba(18, 74, 154, .12);
}

/* --------------------------------------------------------------------------
   Side panels
   -------------------------------------------------------------------------- */

.sd-quote__panel {
    padding: 26px 24px;
    border: 1px solid var(--sd-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(16, 38, 73, .06);
}

.sd-quote__panel + .sd-quote__panel {
    margin-top: 20px;
}

.sd-quote__panel h2 {
    margin: 0 0 16px;
    font-size: 19px;
    font-weight: 800;
    color: var(--sd-navy);
}

.sd-quote__panel p {
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--sd-muted);
}

.sd-quote__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: sd-qs;
}

.sd-quote__steps li {
    position: relative;
    list-style: none;
    counter-increment: sd-qs;
    padding: 0 0 18px 44px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--sd-muted);
}

.sd-quote__steps li:last-child {
    padding-bottom: 0;
}

.sd-quote__steps li::before {
    content: counter(sd-qs);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sd-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.sd-quote__steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 34px;
    bottom: 8px;
    width: 2px;
    background: var(--sd-line);
}

.sd-quote__steps strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--sd-navy);
}

.sd-quote__panel--call a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    border-top: 1px solid var(--sd-line);
    font-size: 15px;
    font-weight: 700;
    color: var(--sd-navy);
    text-decoration: none;
    transition: color .2s ease;
}

.sd-quote__panel--call a i {
    width: 20px;
    color: var(--sd-orange);
    text-align: center;
}

.sd-quote__panel--call a:hover {
    color: var(--sd-orange-ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .sd-quote__step legend {
        font-size: 17px;
    }

    .sd-quote__picks {
        grid-template-columns: minmax(0, 1fr);
    }

    .sd-quote__block {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sd-quote__pick-body,
    .sd-quote__pick-icon,
    .sd-quote__panel--call a {
        transition: none !important;
    }
}

/* The "already know the model" panel: quieter than the two above it, since
   it is an alternative route rather than the action we want. */
.sd-quote__panel--alt {
    background: var(--sd-tint);
    box-shadow: none;
}

.sd-quote__panel--alt h2 {
    font-size: 17px;
}

.sd-quote__panel--alt p {
    margin-bottom: 14px;
    font-size: 14px;
}
