/* /e/demo/ — free demo request.
   Uses the standard centred hero (.fg / .fg--gsm from learn.css + gsm.css):
   animated title, lead, then ONE row — work email + button. Everything below
   the hero is the /l/google-shopping/ content, untouched. The completion
   states reuse .apl (css/pages/gsm.css), same as /offer/. */

/* [hidden] loses to any class that sets display (.btn-dark is inline-flex,
   .dmo-done is grid) — the form swaps steps with the hidden attribute, so it
   has to win inside the block. */
.dmo [hidden] { display: none !important; }

.dmo { max-width: 620px; margin: 0 auto; }

.dmo-row { display: flex; gap: 10px; }
.dmo-row input {
    font: inherit;
    font-size: 16px;
    flex: 1;
    min-width: 0;
    height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(17, 17, 16, .12);
    background: #fff;
    color: var(--ink);
    outline: none;
    text-align: left;
    transition: border-color .2s, box-shadow .2s;
}
.dmo-row input::placeholder { color: var(--ink-mute); }
.dmo-row input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 16, .06); }
.dmo-row .btn-dark { height: 56px; padding: 0 24px; font-size: 16px; white-space: nowrap; }

/* step 2 — a proper form card. Step 1 is a bare row on the page ground, so
   the follow-up gets the house card recipe (white on --page-bg, one hairline,
   one soft far-thrown shadow) to read as "a form to fill in", not more hero.
   Fields sit on --panel inside it — never white on white (see the design
   rules, §6 Cards & containers). */
.dmo-card {
    background: #fff;
    border: 1px solid rgba(17, 17, 16, .08);          /* --card-border */
    border-radius: 22px;                              /* --radius-lg   */
    box-shadow: 0 1px 2px rgba(17, 17, 16, .04), 0 14px 40px -22px rgba(17, 17, 16, .3);  /* --card-shadow */
    padding: clamp(22px, 3.4vw, 32px);
    text-align: left;
}
.dmo-card__h {
    font-family: var(--font-serif);
    font-weight: 400;
    font-variation-settings: 'SOFT' 50;
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0 0 20px;
}
.dmo-req { font-style: normal; color: var(--ink-mute); }

/* step 2 — same fields, stacked */
.dmo-fields { display: grid; gap: 12px; text-align: left; }
.dmo-fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.dmo-fields input,
.dmo-fields select {
    font: inherit;
    font-size: 16px;
    height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(17, 17, 16, .12);
    background: #f6f6f4;                              /* --panel */
    color: var(--ink);
    outline: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
}
.dmo-fields select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 42px;
}
.dmo-fields input:focus,
.dmo-fields select:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(17, 17, 16, .06); }
.dmo-fields .btn-dark { height: 54px; justify-content: center; margin-top: 2px; }

.dmo-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.dmo-err { margin: 12px 0 0; font-size: 13.5px; color: #be123c; }
.dmo-fine {
    margin: 18px 0 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--ink-mute);
}
.dmo-fine a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.dmo-fine a:hover { color: var(--ink); }

/* spinner inside a busy button (gs-rot keyframes live in learn.css) */
.dmo-spin {
    width: 15px; height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: gs-rot .8s linear infinite;
    margin-right: 9px;
    display: inline-block;
    vertical-align: -2px;
}

/* ── completion: the /offer/ "applying" rows (.apl, css/pages/gsm.css) ──── */
.dmo-done { display: grid; gap: 12px; text-align: left; margin-top: 18px; }
.dmo-done .apl { margin: 0; }
/* .apl's reveal animation is gd-in, and this block lives inside the .fg
   inview zone — a backgrounded tab pauses that animation and would strand
   the rows at opacity 0. Visibility must not depend on the motion gate. */
.dmo-done .apl.is-open { animation: none; }
.dmo-done__note { margin: 6px 0 0; font-size: 13px; font-weight: 300; color: var(--ink-mute); text-align: center; }
.dmo-done__note button {
    font: inherit;
    color: var(--ink-soft);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.dmo-done__note button:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .dmo-spin { animation: none; } }

/* ── workspace mock (copied from /agencies/) — spacing only, the mock's own
   styles are .mw* in learn.css + the Skybar shell in style.css ──────────── */
.mw--dmo { margin: clamp(34px, 5vw, 64px) auto 0; padding-bottom: 0; margin-bottom: 0; border-bottom: 0; text-align: left; }

@media (max-width: 560px) {
    .dmo-row { flex-direction: column; }
    .dmo-row .btn-dark { width: 100%; justify-content: center; }
}
