/* Lead capture pop-up. Colours come from the site tokens so a palette change carries through. */
/* The checkout's "who is this for" step wears the same panel as the pop-up;
   these were scoped to one id, so it came out unpositioned. */
#lead-popup, #checkout-details { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 24px; }
#lead-popup[open], #checkout-details[open] { display: flex; }
body.lead-popup-open { overflow: hidden; }

.lead-backdrop { position: absolute; inset: 0; background: #023a1fbf; backdrop-filter: blur(3px); border: 0; padding: 0; cursor: pointer; animation: lead-fade .25s ease; }

.lead-panel { position: relative; width: min(440px, 100%); background: var(--cream, #fff6e8); color: var(--green, #034c29);
  border-radius: 24px; padding: 38px 34px 34px; box-shadow: 0 26px 60px #0e30231f; animation: lead-rise .35s cubic-bezier(.22,.68,0,1.1); }

@keyframes lead-fade { from { opacity: 0 } }
@keyframes lead-rise { from { opacity: 0; transform: translateY(18px) } }

.lead-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background .2s; }
.lead-close:hover { background: #034c2914; }
.lead-close .icon { width: 18px; height: 18px; stroke-width: 2; }

.lead-eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 12px; opacity: .72; }
.lead-panel h2 { font-family: var(--serif, Georgia, serif); font-size: 31px; line-height: 1.12; font-weight: 500; margin: 0 0 10px; }
.lead-panel h2 em { font-style: italic; }
.lead-intro { font-size: 14px; line-height: 1.6; margin: 0 0 22px; opacity: .8; }

.lead-field { display: block; margin-bottom: 14px; }
.lead-field span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .3px; margin-bottom: 7px; }
.lead-field input { width: 100%; min-height: 50px; padding: 13px 16px; font: inherit; font-size: 15px; color: inherit;
  background: #fff; border: 1px solid #034c2929; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.lead-field input:focus { outline: none; border-color: var(--green, #034c29); box-shadow: 0 0 0 3px #034c291f; }
.lead-field input::placeholder { color: #034c2966; }

.lead-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-panel button[type="submit"] { width: 100%; min-height: 54px; margin-top: 8px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--green, #034c29); color: var(--cream, #fff6e8); font: inherit; font-size: 15px; font-weight: 600;
  transition: background .25s, color .25s; }
.lead-panel button[type="submit"]:hover { background: #023a1f; }
.lead-panel button[type="submit"]:disabled { opacity: .65; cursor: default; }

.lead-status { min-height: 18px; margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; text-align: center; }
.lead-status[data-tone="error"] { color: #a6301f; }

.lead-alt { margin: 16px 0 0; font-size: 12.5px; text-align: center; opacity: .75; }
.lead-alt a { color: inherit; font-weight: 600; }

.lead-done { display: none; text-align: center; }
.lead-done .icon { width: 46px; height: 46px; color: var(--green, #034c29); stroke-width: 1.4; margin-bottom: 14px; }
.lead-done h2 { margin-bottom: 8px; }
.lead-done a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 18px; padding: 13px 22px;
  border-radius: 10px; background: var(--green, #034c29); color: var(--cream, #fff6e8); font-size: 14px; font-weight: 600; text-decoration: none; }
#lead-popup[data-state="done"] .lead-form-body { display: none; }
#lead-popup[data-state="done"] .lead-done { display: block; }

@media (max-width: 700px) {
  #lead-popup, #checkout-details { padding: 18px; align-items: flex-end; }
  .lead-panel { padding: 32px 22px 26px; border-radius: 22px 22px 18px 18px; }
  .lead-panel h2 { font-size: 27px; }
  .lead-intro { font-size: 13.5px; margin-bottom: 18px; }
}
