/* Nuvo AP automation landing page styles. */
html,
    body {
      min-height: 100%;
    }

    body {
      margin: 0;
      background: var(--nuvo-bg);
    }

    .lead-page {
      min-height: calc(100svh - var(--tal-nav-height, 64px));
      background: var(--nuvo-bg);
    }

    .lead-page,
    .lead-page * {
      box-sizing: border-box;
    }

    .lead-page .nuvo-btn,
    .lead-page .nuvo-eyebrow,
    .lead-page .nuvo-field__label {
      letter-spacing: 0;
    }

    .lead-page .nuvo-field__label {
      font-size: 18.9px;
      line-height: 1.22;
      font-weight: 400;
      margin-bottom: 18px;
    }

    html[data-theme="dark"] .lead-page .nuvo-field__label {
      color: color-mix(in srgb, var(--nuvo-ink) 86%, white);
      font-weight: 300;
    }

    .lead-shell {
      width: 100%;
      max-width: 1180px;
      margin: 0 auto;
      padding: 32px 24px 28px;
      min-width: 0;
      min-height: calc(100svh - var(--tal-nav-height, 64px));
      display: flex;
      flex-direction: column;
    }

    .lead-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      width: 100%;
      min-width: 0;
      margin: 0 0 26px;
    }

    .lead-topbar__actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 0 0 auto;
      margin-left: auto;
    }

    .lead-brand {
      display: flex;
      align-items: center;
      gap: 11px;
      margin: 0;
      color: var(--nuvo-ink);
      text-align: left;
      flex: 1 1 0;
      width: auto;
      min-width: 0;
      height: auto;
      overflow: hidden;
    }

    .lead-brand__logo {
      display: block;
      width: 44px;
      height: 44px;
      object-fit: contain;
      border-radius: 8px;
      flex: 0 0 auto;
    }

    .lead-brand__name {
      font-family: var(--nuvo-font-display);
      font-size: 20px;
      line-height: 1;
      font-weight: 500;
      letter-spacing: 0;
      color: var(--nuvo-ink);
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .lead-brand .lead-brand__logo--light {
      display: block;
    }

    .lead-brand .lead-brand__logo--dark {
      display: none !important;
    }

    html[data-theme="dark"] .lead-brand .lead-brand__logo--light {
      display: none !important;
    }

    html[data-theme="dark"] .lead-brand .lead-brand__logo--dark {
      display: block !important;
    }

    .theme-toggle {
      border: 1px solid var(--nuvo-line-strong);
      border-radius: 999px;
      background: var(--nuvo-bg-card);
      color: var(--nuvo-ink);
      display: inline-grid;
      place-items: center;
      width: 40px;
      height: 40px;
      padding: 0;
      cursor: pointer;
    }

    .theme-toggle svg {
      width: 18px;
      height: 18px;
      display: block;
    }

    .theme-toggle .sun {
      display: none;
    }

    .theme-toggle:hover {
      border-color: var(--nuvo-green);
    }

    [data-theme="dark"] .theme-toggle .sun {
      display: block;
    }

    [data-theme="dark"] .theme-toggle .moon {
      display: none;
    }

    .language-select {
      min-width: 112px;
      height: 40px;
      border: 1px solid var(--nuvo-line-strong);
      border-radius: 999px;
      background: var(--nuvo-bg-card);
      color: var(--nuvo-ink);
      font: 700 12px var(--nuvo-font-body);
      padding: 0 28px 0 12px;
    }

    .language-select:focus {
      outline: none;
      box-shadow: var(--nuvo-focus);
    }

    .lead-panel {
      position: relative;
      display: grid;
      place-items: center;
      overflow: hidden;
      width: 100%;
      min-width: 0;
      min-height: clamp(460px, 54svh, 610px);
      padding: clamp(24px, 3vw, 34px) 28px;
      border: 1px solid color-mix(in srgb, var(--nuvo-green) 42%, var(--nuvo-line));
      border-radius: 8px;
      background: var(--nuvo-footer-bg);
      color: var(--nuvo-footer-ink);
      flex: 0 0 auto;
    }

    html[data-theme="dark"] .lead-panel {
      background: var(--nuvo-footer-bg);
    }

    .lead-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.4px);
      background-size: 22px 22px;
      opacity: 1;
      pointer-events: none;
      z-index: 1;
    }

    .lead-panel::after {
      content: none;
    }

    .lead-panel__inner {
      position: relative;
      z-index: 2;
      display: grid;
      gap: 28px;
      width: 100%;
      max-width: 760px;
      margin: 0 auto;
      align-self: center;
      justify-self: center;
      min-width: 0;
    }

    .lead-intake {
      width: 100%;
      max-width: none;
      color: var(--nuvo-ink);
      box-shadow: var(--nuvo-shadow-lg);
    }

    .form-showcase {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      border: 1px solid var(--nuvo-line);
      border-radius: 8px;
      overflow: hidden;
      background: var(--nuvo-bg-card);
    }

    .form-showcase__main {
      padding: 32px 36px;
      min-width: 0;
    }

    .form-fieldset {
      border: none;
      padding: 0;
      margin: 0 0 28px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 16px;
    }

    .lead-step[data-step="4"] .form-row {
      grid-template-columns: 1fr;
      gap: 0;
      margin-bottom: 18px;
    }

    .lead-step[data-step="4"] .form-row:last-child {
      margin-bottom: 0;
    }

    .lead-step[data-step="4"] .nuvo-field__label {
      margin-bottom: 10px;
    }

    .sms-consent {
      display: grid;
      grid-template-columns: 16px 1fr;
      column-gap: 11px;
      align-items: start;
      max-width: 760px;
      margin-top: 12px;
    }

    .sms-consent input {
      width: 16px;
      height: 16px;
      margin: 2px 0 0;
      accent-color: var(--nuvo-green);
    }

    .sms-consent-body,
    .sms-consent-title,
    .sms-consent-copy {
      display: block;
    }

    .sms-consent-title {
      font-size: 14px;
      font-weight: 600;
      line-height: 1.25;
      color: rgba(37, 37, 31, 0.68);
    }

    .sms-consent-copy {
      margin-top: 4px;
      font-size: 12px;
      line-height: 1.45;
      color: rgba(37, 37, 31, 0.52);
      max-width: 720px;
    }

    .sms-consent-links {
      display: block;
      max-width: 720px;
      margin: 2px 0 0 27px;
      font-size: 11px;
      line-height: 1.35;
    }

    .sms-consent-links a {
      color: rgba(37, 37, 31, 0.5);
      text-decoration: none;
      text-underline-offset: 2px;
    }

    .sms-consent-links a:hover {
      text-decoration: underline;
    }

    html[data-theme="dark"] .sms-consent-title {
      color: color-mix(in srgb, var(--nuvo-ink) 82%, transparent);
    }

    html[data-theme="dark"] .sms-consent-copy {
      color: color-mix(in srgb, var(--nuvo-ink) 68%, transparent);
    }

    html[data-theme="dark"] .sms-consent-links a {
      color: color-mix(in srgb, var(--nuvo-ink) 62%, transparent);
    }

    .form-row--single {
      grid-template-columns: 1fr;
    }

    .form-row--thirds {
      grid-template-columns: 1fr 1fr 1fr;
    }

    .lead-card-select {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .option-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .option-grid--three {
      grid-template-columns: repeat(3, 1fr);
    }

    .option-card {
      position: relative;
      display: flex;
      align-items: center;
      width: 100%;
      min-height: 48px;
      padding: 14px 16px;
      border: 1px solid var(--nuvo-line-strong);
      border-radius: 4px;
      background: var(--nuvo-bg-card);
      color: var(--nuvo-ink);
      cursor: pointer;
      font: inherit;
      font-size: 14px;
      line-height: 1.3;
      text-align: left;
      transition: all 140ms ease;
    }

    .option-card:hover {
      border-color: var(--nuvo-ink);
      background: var(--nuvo-bg-soft);
    }

    .option-card.is-selected {
      border-color: var(--nuvo-green-deep);
      background: var(--nuvo-green-bg);
      color: var(--nuvo-ink);
    }

    .option-card.is-selected::after {
      content: "✓";
      position: absolute;
      top: 8px;
      right: 10px;
      width: 16px;
      height: 16px;
      display: grid;
      place-items: center;
      font-size: 11px;
      color: var(--nuvo-green-deep);
      font-weight: 600;
    }

    .option-card__num {
      display: none;
    }

    .option-card__text {
      flex: 1;
    }

    .option-card__text strong {
      display: block;
      font-weight: 500;
    }

    .option-card__text small {
      display: none;
    }

    .nuvo-radio-group {
      display: inline-flex;
      border: 1px solid var(--nuvo-line-strong);
      border-radius: 4px;
      overflow: hidden;
      background: var(--nuvo-bg-card);
      flex-wrap: wrap;
      max-width: 100%;
    }

    .nuvo-radio-group input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .nuvo-radio-group label {
      padding: 8px 14px;
      font-family: var(--nuvo-font-mono);
      font-size: 11px;
      letter-spacing: 0;
      text-transform: uppercase;
      color: var(--nuvo-ink-mute);
      cursor: pointer;
      border-right: 1px solid var(--nuvo-line);
      transition: all 120ms ease;
      user-select: none;
    }

    .nuvo-radio-group label:last-of-type {
      border-right: none;
    }

    .nuvo-radio-group input:checked + label {
      background: var(--nuvo-ink);
      color: var(--nuvo-bg-card);
    }

    .nuvo-radio-group label:hover {
      background: var(--nuvo-bg-alt);
      color: var(--nuvo-ink);
    }

    .nuvo-radio-group input:checked + label:hover {
      background: var(--nuvo-ink);
      color: var(--nuvo-bg-card);
    }

    .lead-check-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px 18px;
      margin-top: 8px;
    }

    .lead-other-input {
      margin-top: 10px;
    }

    .lead-other-input[hidden] {
      display: none !important;
    }

    .form-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: flex-end;
      padding-top: 18px;
      border-top: 1px solid var(--nuvo-line);
    }

    .form-actions .lead-back {
      margin-right: auto;
    }

    .lead-step {
      display: none;
    }

    .lead-step.is-active {
      display: block;
    }

    .lead-step[hidden],
    .lead-complete[hidden] {
      display: none !important;
    }

    .lead-progress {
      height: 8px;
      border-radius: 999px;
      background: var(--nuvo-line);
      overflow: hidden;
    }

    .lead-progress__bar {
      width: var(--lead-progress, 8%);
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--nuvo-green), var(--nuvo-lavender));
      transition: width .25s ease;
    }

    .lead-error {
      min-height: 18px;
      font-size: 13px;
      color: var(--nuvo-red);
    }

    .lead-error--status {
      color: var(--nuvo-ink-mute);
    }

    .lead-complete {
      display: grid;
      gap: 14px;
      text-align: center;
      place-items: center;
      padding: 20px 0 8px;
    }

    .lead-complete__badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: var(--nuvo-green-bg);
      color: var(--nuvo-green-deep);
      font-weight: 700;
      border: 1px solid color-mix(in srgb, var(--nuvo-green) 30%, var(--nuvo-line));
    }

    .lead-complete h2 {
      margin: 0;
      font-family: var(--nuvo-font-display);
      font-size: 30px;
      line-height: 1.15;
      font-weight: 500;
      letter-spacing: 0;
    }

    .lead-complete p {
      margin: 0;
      max-width: 560px;
      color: var(--nuvo-ink-mute);
    }

    .lead-summary {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border: 1px solid var(--nuvo-line);
      border-radius: 8px;
      overflow: hidden;
      margin-top: 8px;
      text-align: left;
    }

    .lead-summary__item {
      padding: 13px 14px;
      border-right: 1px solid var(--nuvo-line);
      background: var(--nuvo-bg-soft);
    }

    .lead-summary__item:last-child {
      border-right: 0;
    }

    .lead-summary__label {
      display: block;
      font-family: var(--nuvo-font-mono);
      font-size: 11px;
      color: var(--nuvo-ink-mute);
    }

    .lead-summary__value {
      display: block;
      margin-top: 4px;
      font-weight: 600;
      color: var(--nuvo-ink);
      overflow-wrap: anywhere;
    }

    .callback-scheduler {
      width: 100%;
      display: grid;
      gap: 14px;
      margin-top: 10px;
      padding: 18px;
      border: 1px solid var(--nuvo-line);
      border-radius: 8px;
      background: var(--nuvo-bg-card);
      text-align: left;
    }

    .callback-scheduler__head {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: flex-start;
    }

    .callback-scheduler__head h3 {
      margin: 0;
      font-size: 18px;
      line-height: 1.2;
    }

    .callback-scheduler__head p {
      margin: 6px 0 0;
      color: var(--nuvo-ink-mute);
      font-size: 14px;
      line-height: 1.5;
    }

    .callback-scheduler__date {
      font-family: var(--nuvo-font-mono);
      font-size: 11px;
      color: var(--nuvo-ink-mute);
      text-transform: uppercase;
      white-space: nowrap;
    }

    .callback-slots {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }

    .callback-slot {
      min-height: 42px;
      border: 1px solid var(--nuvo-line-strong);
      border-radius: 4px;
      background: var(--nuvo-bg);
      color: var(--nuvo-ink);
      font: inherit;
      font-size: 14px;
      cursor: pointer;
      transition: border-color .16s ease, background-color .16s ease, color .16s ease;
    }

    .callback-slot:hover,
    .callback-slot.is-selected {
      border-color: var(--nuvo-green-deep);
      background: var(--nuvo-green-bg);
      color: var(--nuvo-ink);
    }

    .callback-scheduler__status {
      min-height: 18px;
      color: var(--nuvo-ink-mute);
      font-size: 13px;
    }

    .callback-scheduler__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .callback-scheduler__actions .nuvo-btn {
      min-width: 0;
    }

    .lead-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-top: auto;
      padding-top: 18px;
      color: var(--nuvo-ink-mute);
      font-size: 12px;
    }

    .lead-footer a {
      color: var(--nuvo-ink-soft);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    @media (max-width: 760px) {
      .lead-topbar {
        gap: 12px;
      }

      .lead-shell {
        padding: 22px 14px 20px;
      }

      .lead-brand {
        flex: 1 1 auto;
        margin: 0;
        align-self: center;
      }

      .lead-brand__logo {
        width: 36px;
        height: 36px;
      }

      .lead-brand__name {
        font-size: clamp(17px, 4.6vw, 20px);
      }

      .language-select {
        display: none;
      }

      .lead-topbar {
        justify-content: space-between;
        margin-bottom: 18px;
      }

      .lead-panel {
        min-height: auto;
        padding: 28px 14px 30px;
      }

      .lead-panel__inner {
        justify-items: stretch;
      }

      .form-showcase {
        grid-template-columns: 1fr;
        width: 100%;
        min-width: 0;
      }

      .form-showcase__main {
        padding: 26px 20px;
      }

      .option-grid,
      .option-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .form-row,
      .form-row--thirds {
        grid-template-columns: 1fr;
      }

      .lead-check-grid {
        grid-template-columns: 1fr;
      }

      .callback-scheduler__head {
        display: grid;
      }

      .callback-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .nuvo-radio-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .nuvo-radio-group label {
        border-right: 1px solid var(--nuvo-line);
        border-bottom: 1px solid var(--nuvo-line);
        text-align: center;
      }

      .form-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .form-actions .nuvo-btn {
        width: 100%;
      }

      .form-actions .lead-back {
        margin-right: 0;
        order: 2;
      }

      .form-actions .lead-next {
        order: 1;
      }

      .lead-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
    }

    @media (max-width: 420px) {
      .lead-topbar {
        align-items: center;
      }

      .lead-brand {
        gap: 9px;
      }

      .lead-brand__logo {
        width: 34px;
        height: 34px;
      }

      .lead-brand__name {
        font-size: 17px;
      }

      .theme-toggle {
        width: 38px;
        height: 38px;
      }

      .lead-panel {
        padding: 18px 10px 22px;
      }

      .form-showcase__main {
        padding: 24px 16px;
      }

      .option-grid,
      .option-grid--three {
        grid-template-columns: 1fr;
      }

      .callback-slots {
        grid-template-columns: 1fr;
      }

    }
