/*
 * The global lead form.
 *
 * Measured against the supplied design: a white card on a hairline border with
 * a soft drop shadow, 28px semibold heading, underlined fields with a muted
 * glyph, and a full-width gradient button. Everything here is self-hosted; the
 * one exception on the page is the reCAPTCHA frame, which Google must serve.
 */

.glf {
    --glf-ink: #0E2A48;
    --glf-muted: #5F7490;
    --glf-line: #DFE8F2;
    --glf-glyph: #9BB0C6;
    --glf-accent: #189CCC;
    --glf-deep: #184884;
    --glf-bad: #D9534F;

    position: relative;
    max-width: 620px;
    padding: clamp(26px, 3vw, 40px);
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #E8EFF6;
    box-shadow: 0 30px 70px -48px rgba(18, 50, 88, .55);
}

/* ------------------------------------------------------------------ header */

.glf-head { margin-bottom: 26px; }

.glf-title {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--glf-ink);
}

.glf-lede {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--glf-muted);
    text-wrap: pretty;
}

/* ------------------------------------------------------------------ fields */

.glf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
}

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

.glf-label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #4E637E;
}

.glf-req { color: var(--glf-bad); }

.glf-input {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 2px 9px;
    border-bottom: 1.5px solid var(--glf-line);
    transition: border-color .22s ease;
}

.glf-input:focus-within { border-bottom-color: var(--glf-accent); }
.glf-input.is-bad { border-bottom-color: var(--glf-bad); }

.glf-input svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--glf-glyph);
}

.glf-input input {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 15.5px;
    color: var(--glf-ink);
}

.glf-input input::placeholder { color: #A9BACD; }

.glf-error {
    margin: 7px 0 0;
    font-size: 12.5px;
    color: var(--glf-bad);
}

.glf-notice {
    margin: 18px 0 0;
    padding: 10px 13px;
    border-radius: 10px;
    background: #ECF7F1;
    border: 1px solid #CDE9DC;
    font-size: 13px;
    color: #1B6B4C;
}

/* -------------------------------------------------------------- robot check */

/*
 * Google's widget is an iframe it controls, so its insides cannot be restyled.
 * What can be done is set it in a row that belongs to this card — the frame
 * sits left, the label sits right, and the whole thing lines up with the fields.
 */
.glf-human {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    padding: 12px 16px;
    border: 1px solid #E4EDF6;
    border-radius: 12px;
    background: #F7FAFD;
    transition: border-color .22s ease, background .22s ease;
}

.glf-human.is-bad {
    border-color: var(--glf-bad);
    background: #FEF6F6;
}

.glf-human-box {
    flex: 0 0 auto;
    /* The widget is 304px wide; let it shrink rather than push the card open. */
    max-width: 100%;
    overflow: hidden;
}

.glf-human-tag {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    letter-spacing: .12em;
    color: #A9BACD;
    white-space: nowrap;
}

.glf-error-center { text-align: center; }

/* ------------------------------------------------------------------ button */

.glf-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    margin-top: 30px;
    padding: 17px 24px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(100deg, #1B9AD1 0%, #1D7DBB 48%, #1B4E8C 100%);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    cursor: pointer;
    box-shadow: 0 18px 34px -18px rgba(24, 72, 132, .85);
    transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
}

.glf-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px -18px rgba(24, 72, 132, .9);
}

.glf-submit:disabled { filter: saturate(.7); opacity: .82; cursor: progress; }

.glf-arrow { width: 18px; height: 18px; flex: none; }

.glf-note {
    margin: 15px 0 0;
    text-align: center;
    font-size: 13px;
    color: #93A6BB;
}

/* -------------------------------------------------------------------- otp */

.glf-resend {
    margin-top: 16px;
    text-align: center;
    font-size: 13.5px;
    color: var(--glf-muted);
}

.glf-link {
    padding: 0;
    border: 0;
    background: none;
    color: #166FA8;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.glf-change { display: block; margin: 14px auto 0; }

/*
 * The honeypot.
 *
 * Moved off-screen rather than display:none — some bots skip fields that are
 * not rendered, and this one is only useful if they fill it in.
 */
.glf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .glf { padding: 22px 18px; border-radius: 16px; }
    /* The widget cannot shrink below 304px, so the label drops beneath it. */
    .glf-human { flex-wrap: wrap; gap: 8px; padding: 12px; }
    .glf-human-tag { margin-left: 0; }
    .glf-grid { grid-template-columns: 1fr; gap: 18px; }
    .glf-submit { font-size: 15.5px; padding: 15px 20px; }
}
