/* request-demo.css — scoped to .rd-page
   All selectors begin with .rd- or are nested under .rd-page.
   No hardcoded brand hex — --brand / --brand-deep reference --zf-primary / --zf-secondary.
   Token names and values deliberately match contact.css so the two public forms are siblings.
   Minimum font-size on this page is 13px (public-site floor).
*/

/* ─────────────────────────────────────────────
   TOKEN BLOCK
───────────────────────────────────────────── */
.rd-page {
    --ink:        #0b1b34;
    --ink-soft:   #2d3a52;
    --muted:      #6b7487;
    --hair:       #e5e7ef;
    --paper:      #fbfbfd;
    --wash:       #f3f5fb;
    --brand:      var(--zf-primary,   #1870d1);
    --brand-deep: var(--zf-secondary, #0f4ea3);
    --teal:       #07c3d6;
    --card:       #ffffff;
    --card-shadow: 0 10px 30px rgba(11, 27, 52, 0.08);
    --current:    #0f8b5a;  --current-bg: #e6f4ed;
    --danger:     #b82347;  --danger-bg:  #fdecef;
    color: var(--ink);
    font-family: "Montserrat", sans-serif;
    padding: 56px 0 72px;
}

html[data-theme="dark"] .rd-page {
    --ink:        #e8ecf5;
    --ink-soft:   #c6cbd8;
    --muted:      #8d95a8;
    --hair:       #2a3142;
    --paper:      #161a25;
    --wash:       #1c2231;
    --card:       #161a25;
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    /* Both halves, not just the -bg: #b82347 on a dark tint is 2.5:1 and #0f8b5a is 3.3:1,
       against the 4.5:1 body-text floor. These keep the hue and clear AA. */
    --current:    #3fc48d;  --current-bg: rgba(15, 139, 90, 0.18);
    --danger:     #f0788f;  --danger-bg:  rgba(184, 35, 71, 0.18);
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.rd-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: start;
}

@media (max-width: 991px) {
    .rd-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

/* ─────────────────────────────────────────────
   LEFT — PITCH
───────────────────────────────────────────── */
.rd-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
    border-radius: 999px;
    padding: 7px 14px;
    margin-bottom: 20px;
}

.rd-title {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--ink);
}

.rd-title em {
    font-style: italic;
    font-weight: 700;
}

.rd-title__accent {
    display: block;
    background: linear-gradient(90deg, var(--brand), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rd-lede {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 56ch;
    margin: 0 0 34px;
}

/* ── The agenda rail: the signature element.
      Numbers here are the real minutes of the call, so the sequence carries information. ── */
.rd-agenda {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    position: relative;
}

.rd-agenda::before {
    content: "";
    position: absolute;
    left: 63px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--brand) 70%, transparent),
        color-mix(in srgb, var(--teal) 55%, transparent));
    border-radius: 2px;
    transform-origin: top center;
    animation: rd-draw 0.7s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
}

@keyframes rd-draw {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

.rd-step {
    display: grid;
    grid-template-columns: 52px 24px minmax(0, 1fr);
    align-items: start;
    gap: 0;
    padding-bottom: 26px;
    opacity: 0;
    transform: translateY(8px);
    animation: rd-rise 0.5s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
}

.rd-step:last-child { padding-bottom: 0; }

.rd-step:nth-child(1) { animation-delay: 0.10s; }
.rd-step:nth-child(2) { animation-delay: 0.20s; }
.rd-step:nth-child(3) { animation-delay: 0.30s; }
.rd-step:nth-child(4) { animation-delay: 0.40s; }

@keyframes rd-rise {
    to { opacity: 1; transform: translateY(0); }
}

.rd-step__min {
    /* Set here, not via a .tabular-nums utility class — that class is only defined in the
       employee-area stylesheets, which the public layout never loads. */
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-align: right;
    padding-top: 3px;
    white-space: nowrap;
}

.rd-step__node {
    justify-self: center;
    margin-top: 7px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}

.rd-step__body { padding-left: 16px; }

.rd-step__heading {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 5px;
    color: var(--ink);
}

.rd-step__icon {
    font-size: 15px;
    color: var(--brand);
    flex: 0 0 auto;
}

.rd-step__detail {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
    max-width: 52ch;
}

/* ── Assurance strip ── */
.rd-assurance {
    border-top: 1px solid var(--hair);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rd-assurance__line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

.rd-assurance__line i {
    color: var(--brand);
    font-size: 15px;
    line-height: 1.4;
    flex: 0 0 auto;
}

.rd-assurance__line a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.rd-assurance__line a:hover,
.rd-assurance__line a:focus-visible {
    text-decoration: underline;
}

/* ─────────────────────────────────────────────
   RIGHT — FORM CARD
───────────────────────────────────────────── */
.rd-form-card {
    background: var(--card);
    border: 1px solid var(--hair);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 30px 28px 26px;
    position: sticky;
    top: 96px;
}

@media (max-width: 991px) {
    .rd-form-card {
        position: static;
        padding: 26px 20px 22px;
    }
}

.rd-form-card__head { margin-bottom: 20px; }

.rd-form-card__title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--ink);
}

.rd-form-card__subtitle {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}

/* Honeypot — off-screen rather than display:none so bots still fill it. */
.rd-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rd-form__row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 519px) {
    .rd-form__row-2 { grid-template-columns: 1fr; }
}

/* ── Fields ── */
.rd-field { margin-bottom: 16px; }

.rd-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.rd-field__required { color: var(--danger); }

.rd-field__optional {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
}

.rd-field__input-wrap { position: relative; }

.rd-field__input {
    width: 100%;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--hair);
    border-radius: 10px;
    padding: 12px 40px 12px 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
    appearance: none;
}

.rd-field__input::placeholder { color: var(--muted); }

.rd-field__input:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--hair)); }

.rd-field__input:focus,
.rd-field__input:focus-visible {
    outline: none;
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

.rd-field__select { cursor: pointer; }

/* Native date/select indicators sit where our icon is, so give them the room back. */
.rd-field__date { padding-right: 14px; }
.rd-field__date::-webkit-calendar-picker-indicator { cursor: pointer; }
.rd-field__date + .rd-field__icon { display: none; }

.rd-field__textarea {
    resize: vertical;
    min-height: 104px;
    padding-top: 12px;
}

.rd-field__icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
    pointer-events: none;
}

.rd-field__icon--top {
    top: 14px;
    transform: none;
}

.rd-field__input--invalid,
.rd-field--error .rd-field__input {
    border-color: var(--danger);
    background: color-mix(in srgb, var(--danger) 6%, var(--paper));
}

.rd-field--error .rd-field__input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent);
}

.rd-field--valid .rd-field__input {
    border-color: color-mix(in srgb, var(--current) 45%, var(--hair));
}

.rd-field__error {
    font-size: 13px;
    line-height: 1.45;
    color: var(--danger);
    margin: 6px 0 0;
    font-weight: 500;
}

/* ── Optional scheduling block ── */
.rd-slot {
    border: 1px dashed var(--hair);
    border-radius: 12px;
    padding: 16px 14px 2px;
    margin: 0 0 16px;
    background: var(--wash);
}

.rd-slot__legend {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 0 8px;
    margin-left: 4px;
    width: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* ── Submit button ──
   Self-contained. The _Button partial renders .zf-button, but _PublicLayout never loads
   css/components/button.css — so a public page that uses the partial must style it itself
   or the browser draws a raw grey <button>. contact.css does the same for the same reason. */
.rd-form-card .zf-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 30px;
    border: 0;
    border-radius: 38px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--teal) 100%);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px -14px rgba(24, 112, 209, 0.45);
    transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.18s ease;
    margin-top: 8px;
}

.rd-form-card .zf-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -14px rgba(24, 112, 209, 0.65);
    filter: brightness(1.05);
}

.rd-form-card .zf-button:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.97);
}

.rd-form-card .zf-button:focus-visible {
    outline: 3px solid rgba(24, 112, 209, 0.35);
    outline-offset: 2px;
}

.rd-form-card .zf-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

.rd-form-card .zf-button.is-loading { pointer-events: none; }

.rd-form-card .zf-button.is-loading .button-content::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -3px;
    animation: rd-spin 0.7s linear infinite;
}

@keyframes rd-spin {
    to { transform: rotate(360deg); }
}

.rd-form-card .zf-button .button-content { line-height: 1; }

/* ── Result ── */

.rd-form-success {
    border: 1px solid color-mix(in srgb, var(--current) 35%, transparent);
    background: var(--current-bg);
    border-radius: 12px;
    padding: 22px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
}

.rd-form-success__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}

.rd-form-success__title i { color: var(--current); }

.rd-form-success__body { margin: 0; color: var(--ink-soft); }

.rd-form-success__ref {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

.rd-form-success__ref code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    background: var(--wash);
    border: 1px solid var(--hair);
    border-radius: 6px;
    padding: 2px 7px;
    color: var(--ink);
}

.rd-fineprint {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    margin: 16px 0 0;
}

.rd-fineprint a { color: var(--brand); }

/* ─────────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .rd-step,
    .rd-agenda::before {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ─────────────────────────────────────────────
   SMALL SCREENS
───────────────────────────────────────────── */
@media (max-width: 575px) {
    .rd-page { padding: 36px 0 56px; }

    .rd-agenda::before { left: 47px; }

    .rd-step { grid-template-columns: 40px 20px minmax(0, 1fr); }

    .rd-step__body { padding-left: 12px; }
}
