/*
 * Lead-capture contact form + Quote-page stepper.
 *
 * Used by the [ecko_contact_form], [ecko_quote_intro] and
 * [ecko_quote_contact] shortcodes. Inputs inherit the base field styling
 * from kadence-overrides.css; this file owns layout, labels, notices, and
 * the quote stepper.
 */

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

.ecko-contact-form {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.ecko-contact-form__heading {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--ink);
    margin: 0 0 8px;
}

.ecko-contact-form__intro {
    color: var(--mute);
    font-size: 15px;
    line-height: 1.55;
    max-width: 60ch;
    margin: 0 0 24px;
}

/* Status banners */
.ecko-contact-form__notice {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid;
}

.ecko-contact-form__notice--ok {
    color: var(--kelly-hover);
    background-color: color-mix(in oklch, var(--kelly) 12%, var(--paper));
    border-color: color-mix(in oklch, var(--kelly) 35%, var(--paper));
}

.ecko-contact-form__notice--err {
    color: oklch(45% 0.16 28);
    background-color: oklch(96% 0.03 28);
    border-color: oklch(80% 0.09 28);
}

.ecko-contact-form__notice--err a {
    color: inherit;
    font-weight: 700;
}

/* Field grid */
.ecko-contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.ecko-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ecko-contact-form__field--full {
    grid-column: 1 / -1;
}

.ecko-contact-form__field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.ecko-contact-form__req {
    color: var(--kelly);
}

.ecko-contact-form__field input,
.ecko-contact-form__field textarea {
    width: 100%;
}

.ecko-contact-form__field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

.ecko-contact-form__submit {
    margin-top: 22px;
    cursor: pointer;
}

/* Honeypot — visually + AT hidden, still focusable to nobody real. */
.ecko-contact-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .ecko-contact-form__grid {
        grid-template-columns: 1fr;
    }

    .ecko-contact-form__submit {
        width: 100%;
    }
}

/* ----------------------------------------------------------------------- *
 * Quote page — "how to request a quote" stepper
 * ----------------------------------------------------------------------- */

.ecko-quote-intro {
    max-width: 1040px;
    margin: 0 auto 40px;
}

.ecko-quote-intro__heading {
    font-size: clamp(22px, 3.2vw, 30px);
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--ink);
    margin: 0 0 8px;
}

.ecko-quote-intro__lede {
    color: var(--mute);
    font-size: 15px;
    line-height: 1.55;
    max-width: 64ch;
    margin: 0;
}

.ecko-quote-intro__steps {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.ecko-quote-intro__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ecko-quote-intro__num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--kelly);
    color: var(--paper);
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ecko-quote-intro__step-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 3px;
}

.ecko-quote-intro__step-text {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mute);
}

.ecko-quote-intro__step-text a {
    color: var(--kelly-hover);
    font-weight: 600;
}

@media (max-width: 900px) {
    .ecko-quote-intro__steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .ecko-quote-intro__steps {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------------------- *
 * Quote page — session-aware tail (form when empty / button when items)
 * ----------------------------------------------------------------------- */

.ecko-quote-tail--empty {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--rule);
}

.ecko-quote-tail--has-items {
    margin-top: 32px;
    padding: 28px 24px;
    text-align: center;
    background-color: var(--section);
    border: 1px solid var(--rule);
    border-radius: 4px;
}

.ecko-quote-tail__text {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}

.ecko-quote-tail__btn {
    display: inline-flex;
}

/* Tidy YITH's bare empty-list message so it reads as a calm note rather
   than unstyled text between our stepper and the form. */
.ywraq-wrapper .ywraq-form-table-wrapper > p {
    color: var(--mute);
    font-size: 14px;
    margin: 0;
}
