/* ==========================================================================
   SkyViews: enquiry forms (furnishing, owners) and their thank-you pages.
   Markup from tools/lib/forms.php. Self-contained, because the form also
   sits on the management pages, which use the template styles.
   ========================================================================== */

.lead {
    --lead-paper: #ede9d2;
    --lead-field: #faf8f4;
    --lead-card: #ffffff;
    --lead-ink: #2c2721;
    --lead-soft: #5f574a;
    --lead-mute: #736d5c;
    --lead-brown: #a58a6c;
    --lead-brown-deep: #8a7259;
    --lead-rule: rgba(44, 39, 33, 0.14);
    --lead-focus: rgba(165, 138, 108, 0.28);

    padding: clamp(64px, 8vw, 120px) 0;
    background: var(--lead-paper);
    color: var(--lead-ink);
    font-family: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    font-weight: 350;
    line-height: 1.6;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}

.lead *,
.lead *::before,
.lead *::after {
    box-sizing: border-box;
    /* the management template sets its typeface on every element */
    font-family: inherit;
}

.lead__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(36px, 6vw, 96px);
    align-items: start;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 64px);
}

/* ---------------------------------------------------------------- intro */

.lead__intro {
    position: sticky;
    top: 110px;
}

.lead .lead__eyebrow {
    margin: 0 0 16px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lead-mute);
}

.lead .lead__title {
    margin: 0 0 18px;
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-transform: none;
    color: var(--lead-brown);
}

.lead .lead__text {
    margin: 0 0 36px;
    font-size: 1.12rem;
    color: var(--lead-soft);
}

.lead .lead__next {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lead-mute);
}

.lead__steps {
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
    counter-reset: lead-step;
}

.lead__steps li {
    position: relative;
    margin: 0;
    padding: 14px 0 14px 48px;
    border-top: 1px solid var(--lead-rule);
    counter-increment: lead-step;
    color: var(--lead-ink);
}

.lead__steps li:last-child {
    border-bottom: 1px solid var(--lead-rule);
}

.lead__steps li::before {
    content: counter(lead-step);
    position: absolute;
    left: 0;
    top: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--lead-ink);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
}

.lead .lead__direct {
    margin: 0;
    font-size: 0.95rem;
    color: var(--lead-mute);
}

.lead__direct a {
    white-space: nowrap;
}

.lead__direct a,
.lead__privacy a,
.lead__error a {
    color: var(--lead-ink);
    text-decoration: underline;
    text-decoration-color: var(--lead-rule);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.lead__direct a:hover,
.lead__privacy a:hover,
.lead__error a:hover {
    text-decoration-color: currentColor;
}

/* ----------------------------------------------------------------- form */

.lead__form {
    display: grid;
    gap: 26px;
    margin: 0;
    padding: clamp(24px, 3.4vw, 44px);
    border-radius: 22px;
    background: var(--lead-card);
    box-shadow: 0 1px 0 var(--lead-rule), 0 40px 80px -48px rgba(44, 39, 33, 0.45);
}

.lead__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    align-items: end; /* fields line up when a label wraps */
}

.lead__field {
    display: grid;
    gap: 8px;
    margin: 0;
}

.lead__field--wide {
    grid-column: 1 / -1;
}

.lead .lead__label {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: var(--lead-soft);
}

.lead__optional {
    font-weight: 350;
    color: var(--lead-mute);
}

.lead .lead__input {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid var(--lead-rule);
    border-radius: 12px;
    background: var(--lead-field);
    color: var(--lead-ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: none;
    outline: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lead .lead__input::placeholder {
    color: var(--lead-mute);
    opacity: 0.75;
}

.lead .lead__input:hover {
    border-color: rgba(44, 39, 33, 0.28);
}

.lead .lead__input:focus {
    border-color: var(--lead-brown);
    background: #fff;
    box-shadow: 0 0 0 4px var(--lead-focus);
}

.lead .lead__textarea {
    min-height: 128px;
    resize: vertical;
}

.lead .lead__select {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f574a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

/* choices as chips (topic, plan) */
.lead__choices {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.lead__choices .lead__label {
    margin-bottom: 10px;
}

.lead__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lead__chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.lead__chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.lead__chip span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--lead-rule);
    border-radius: 999px;
    background: var(--lead-field);
    color: var(--lead-ink);
    font-size: 0.95rem;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lead__chip:hover span {
    border-color: rgba(44, 39, 33, 0.32);
}

.lead__chip input:checked + span {
    border-color: var(--lead-ink);
    background: var(--lead-ink);
    color: #fff;
}

.lead__chip input:focus-visible + span {
    box-shadow: 0 0 0 4px var(--lead-focus);
}

/* footer: privacy note and submit */
.lead__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding-top: 22px;
    border-top: 1px solid var(--lead-rule);
}

.lead .lead__privacy {
    flex: 1 1 240px;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--lead-mute);
}

.lead .lead__submit {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 8px 8px 8px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--lead-ink);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.lead .lead__submit:hover {
    background: #000;
    transform: translateY(-1px);
}

.lead .lead__submit:focus-visible {
    outline: 2px solid var(--lead-brown);
    outline-offset: 3px;
}

.lead .lead__submit[disabled] {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

.lead__submit-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--lead-brown);
}

.lead__submit-arrow svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    transform: rotate(-45deg);
}

.lead .lead__error {
    margin: 0;
    padding: 14px 16px;
    border-left: 3px solid var(--lead-brown-deep);
    border-radius: 0 10px 10px 0;
    background: #f6efe6;
    color: var(--lead-ink);
    font-size: 0.95rem;
}

.lead .lead__error[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .lead__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead__intro {
        position: static;
    }

    .lead .lead__text,
    .lead__steps {
        margin-bottom: 28px;
    }
}

@media (max-width: 560px) {
    .lead__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead .lead__submit {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lead *,
    .lead *::before,
    .lead *::after {
        transition: none !important;
    }
}

/* ---------------------------------------------------------- thank you */

.lead-thanks {
    max-width: 820px;
    padding-top: clamp(140px, 16vw, 200px);
    padding-bottom: clamp(80px, 10vw, 140px);
    text-align: center;
}

.lead-thanks .lede {
    margin-left: auto;
    margin-right: auto;
}

.lead-thanks .service-hero__actions {
    justify-content: center;
}

.lead-thanks__mark {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--ink, #2c2721);
}

.lead-thanks__mark svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
}

.lead-thanks__urgent {
    margin: 0 0 32px;
    color: var(--ink-mute, #736d5c);
}

.lead-thanks__urgent a {
    color: var(--ink, #2c2721);
    white-space: nowrap;
}
