/* Flat Fee MLS Listing: the marketing page (/flat-fee-listing), its two step
   pages and the thank-you page. Built on the project's Tailwind theme and
   component classes; what is here is only what those don't cover. */

/* ---------- Hero ---------- */

/* The site's inner-page hero (Contact Us, List With Us): the interior photo
   under the brand navy. To use a photo of a house, change the url. */
.flat-fee-hero {
    background: rgba(22, 41, 73, 0.9) url("../../landing/images/nav-bg.7519c9d5e3ed.png") center/cover no-repeat;
    background-blend-mode: multiply;
}

.flat-fee-eyebrow {
    letter-spacing: 0.14em;
}

.flat-fee-hero__lede {
    color: rgba(255, 255, 255, 0.85);
}

.flat-fee-trust {
    list-style: none;
    padding: 0;
}

.flat-fee-trust li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.85);
}

.flat-fee-trust strong {
    display: block;
    color: var(--bs-white);
    font-weight: 600;
}

.flat-fee-trust__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--bs-white);
    font-size: 1.15rem;
}

/* ---------- Getting around the page ---------- */

/* "Get Started", "See All Pricing Options" and "Start My Listing" are links
   to a part of this page. The header is fixed, so where they land is moved
   down by its height, or the part's top would be under it. */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

#start-your-listing,
.flat-fee-anchor {
    scroll-margin-top: calc(var(--header-size) + 1.5rem);
}

/* The Packages section brings its own space above, so its heading lands
   where the others do without it. */
#packages.flat-fee-anchor {
    scroll-margin-top: calc(var(--header-size) - 2rem);
}

/* ---------- Cards and their forms ---------- */

.flat-fee-card {
    position: relative;
    background: var(--bs-white);
    border-radius: var(--bs-border-radius-xl);
    box-shadow: 0 20px 60px rgba(18, 34, 60, 0.12);
    padding: 1.5rem;
}

@media only screen and (min-width: 768px) {
    .flat-fee-card {
        padding: 2rem;
    }
}

/* room-finder.css sizes fields for a roomy page; these sit in a card. Its
   shorthand padding also takes the room a select's arrow needs. */
.flat-fee-card .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.flat-fee-card .form-control,
.flat-fee-card .form-select {
    height: auto;
    padding: 0.7rem 1rem;
}

.flat-fee-card .form-select {
    padding-right: 2.25rem;
}

/* A select that hasn't been chosen reads as a placeholder, like the inputs. */
.flat-fee-card .form-select:invalid {
    color: rgba(0, 0, 0, 0.45);
}

/* room-finder.css shows a field's message for inputs only. */
.flat-fee-card .was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
}

/* ---------- The step pages ---------- */

/* No hero on these: the page starts under the fixed header. */
.flat-fee-step {
    background: linear-gradient(120deg, #E9F1FF 0%, #F7ECE8 55%, #FBE3DA 100%);
    padding-top: calc(var(--header-size) + 2.5rem);
}

.flat-fee-progress__bar {
    display: block;
    width: 2.75rem;
    height: 0.35rem;
    border-radius: 50rem;
    background: rgba(18, 34, 60, 0.12);
}

.flat-fee-progress__bar--done {
    background: var(--primary-gradient);
}

/* ---------- Package cards ---------- */

.flat-fee-package {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bs-white);
    border: 1px solid #E5E9F0;
    border-radius: var(--bs-border-radius-xl);
    box-shadow: 0 10px 30px rgba(18, 34, 60, 0.06);
    padding: 2rem 1.5rem 1.5rem;
}

.flat-fee-package--popular {
    border: 2px solid var(--bs-primary);
    box-shadow: 0 20px 50px rgba(233, 141, 129, 0.22);
}

/* The one the visitor already chose, on the way back from checkout. */
.flat-fee-package--picked {
    outline: 3px solid var(--bs-secondary);
    outline-offset: 3px;
}

.flat-fee-package__ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0.3rem 1rem;
    border-radius: 50rem;
    background: var(--primary-gradient-v2);
    color: var(--bs-white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.flat-fee-package__price {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bs-dark);
}

/* No margin here: this file is unlayered, so it would beat the mb-* utility
   each list is given. */
.flat-fee-features {
    list-style: none;
    padding: 0;
}

.flat-fee-features li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.flat-fee-features .bi {
    flex: none;
    margin-top: 0.1rem;
    color: var(--bs-primary);
}

/* ---------- Checkout ---------- */

.flat-fee-order {
    background: rgba(233, 141, 129, 0.1);
    border-radius: var(--bs-border-radius-lg);
    padding: 1rem 1.25rem;
}

/* ---------- Thank you ---------- */

.flat-fee-next__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(233, 141, 129, 0.15);
    color: var(--bs-primary);
    font-size: 1.4rem;
}

/* ---------- Savings calculator ---------- */

.flat-fee-savings {
    background: linear-gradient(120deg, #E9F1FF 0%, #F7ECE8 55%, #FBE3DA 100%);
    border-radius: var(--bs-border-radius-xl);
}

.flat-fee-savings__price {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bs-dark);
}

.flat-fee-savings__figure {
    background: var(--bs-white);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0 10px 30px rgba(18, 34, 60, 0.06);
    padding: 1.25rem;
}

.flat-fee-savings__amount {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--bs-dark);
}

.flat-fee-savings__figure--saved {
    background: var(--primary-gradient-v2);
    color: var(--bs-white);
}

.flat-fee-savings__figure--saved .flat-fee-savings__amount {
    color: var(--bs-white);
}

/* The slider. --fill is how far along the thumb is, set by the script, so the
   track is coloured up to it. transition: none, because room-finder.css gives
   every element one and the fill would trail the thumb. */
.flat-fee-range {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 6px;
    margin: 1.5rem 0 1rem;
    border-radius: 50rem;
    background: linear-gradient(to right, var(--bs-primary) var(--fill, 44.4%), #E5E9F0 var(--fill, 44.4%));
    cursor: pointer;
    transition: none;
}

.flat-fee-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 5px solid var(--bs-white);
    background: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(18, 34, 60, 0.25);
    transition: none;
}

.flat-fee-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 5px solid var(--bs-white);
    background: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(18, 34, 60, 0.25);
    transition: none;
}

.flat-fee-range:focus-visible {
    outline: 2px solid var(--bs-secondary);
    outline-offset: 8px;
}

/* ---------- How it works ---------- */

.flat-fee-how {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flat-fee-how__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bs-secondary);
    color: var(--bs-white);
    font-weight: 700;
}

/* ---------- Closing band ---------- */

.flat-fee-closing {
    background: var(--secondary-gradient);
    border-radius: var(--bs-border-radius-xl);
    color: var(--bs-white);
}

.flat-fee-closing h2 {
    color: var(--bs-white);
}
