/* Domain offers – page, blocks, countdown and offer form.
   Colours come from CSS variables set from config.php (theme). */

.lp-page {
  margin: 0;
  min-height: 100vh;
  background: var(--lp-background, #fff);
  color: var(--lp-text, #1F2A44);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lp-page *, .lp-page *::before, .lp-page *::after { box-sizing: border-box; }
.lp-page [hidden] { display: none !important; }

/* ---------- Stage & canvas ---------- */
.lp-stage {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  overflow: clip;
}
.lp-canvas {
  position: relative;
  width: 1120px;
  transform-origin: top left;
}
.lp-block { position: relative; }

/* Free layout (positions saved in the builder) – desktop and tablet */
.lp-canvas--free { min-height: var(--h, 600px); }
.lp-canvas--free .lp-block {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
}

/* Flow layout (before the builder has saved positions): stacked and centred */
.lp-canvas--flow { padding: 96px 0 120px; }
.lp-canvas--flow .lp-block { width: var(--w); max-width: 100%; margin: 0 auto; }
.lp-canvas--flow .lp-block + .lp-block { margin-top: 32px; }
.lp-canvas--flow .lp-block--text + .lp-block--text { margin-top: 20px; }

/* Phones: everything stacks in reading order (top to bottom, left to right) */
@media (max-width: 759.98px) {
  .lp-stage { overflow: visible; }
  .lp-canvas, .lp-canvas--free {
    width: auto;
    min-height: 0;
    transform: none !important;
    padding: 56px 20px 72px;
  }
  .lp-canvas .lp-block,
  .lp-canvas--free .lp-block {
    position: static;
    width: auto;
    max-width: var(--w);
    margin: 0 auto;
  }
  .lp-canvas .lp-block + .lp-block { margin-top: 24px; }
  .lp-canvas .lp-block--text + .lp-block--text { margin-top: 14px; }
}

/* ---------- Text boxes ---------- */
.lp-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.lp-align-left { text-align: left; }
.lp-align-center { text-align: center; }
.lp-align-right { text-align: right; }
.lp-color-blue { color: var(--lp-blue); }
.lp-color-dark { color: var(--lp-text); }
.lp-color-muted { color: var(--lp-muted); }

.lp-text--eyebrow {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.lp-text--title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.lp-text--subtitle {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.lp-text--body { font-size: 19px; line-height: 1.6; }
.lp-text--small { font-size: 14px; line-height: 1.55; }

@media (max-width: 759.98px) {
  .lp-text--title { font-size: clamp(34px, 10vw, 48px) !important; }
  .lp-text--subtitle { font-size: clamp(20px, 5.6vw, 24px) !important; }
  .lp-text--body { font-size: 17px !important; }
}

/* ---------- Countdown ---------- */
.lp-timer { container-type: inline-size; }
.lp-timer-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.2cqi, 18px);
}
.lp-timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35em;
  padding: clamp(14px, 4cqi, 30px) 6px clamp(12px, 3.2cqi, 24px);
  border-radius: clamp(12px, 2.4cqi, 20px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 55%),
    var(--lp-blue);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.lp-timer-num {
  font-size: clamp(24px, 9cqi, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.lp-timer-label {
  font-size: clamp(10px, 1.9cqi, 15px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  text-align: center;
}
@container (max-width: 480px) {
  .lp-timer-unit { padding-left: 2px; padding-right: 2px; }
  .lp-timer-label { font-size: 9px; letter-spacing: .06em; }
}
.lp-timer-done {
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  background: var(--lp-blue);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

/* ---------- Offer form ---------- */
.lp-offer { width: 100%; max-width: 100%; margin: 0 auto; }
.lp-form { display: grid; gap: 16px; margin: 0; }
.lp-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lp-input {
  display: block;
  width: 100%;
  min-height: 62px;
  padding: 16px 22px;
  font: inherit;
  font-size: 18px;
  color: var(--lp-text);
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-input::placeholder { color: #6E7889; opacity: 1; }
.lp-input:focus { border-color: var(--lp-blue); box-shadow: 0 0 0 4px var(--lp-ring); }
.lp-input[aria-invalid="true"] { border-color: #C62828; }
textarea.lp-input { min-height: 116px; resize: vertical; line-height: 1.5; }
.lp-btn {
  width: 100%;
  min-height: 64px;
  margin-top: 4px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: var(--lp-blue);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.lp-btn:hover { background: var(--lp-blue-dark); }
.lp-btn:focus-visible { outline: 3px solid var(--lp-blue); outline-offset: 3px; }
.lp-btn:disabled { opacity: .72; cursor: progress; }
.lp-error { margin: 0; font-size: 15px; color: #C62828; text-align: center; }
.lp-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--lp-muted); text-align: center; }
.lp-success {
  padding: 32px 24px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.lp-success:focus { outline: none; }
.lp-success h2 { margin: 0; font-size: 24px; font-weight: 700; color: var(--lp-blue); }
.lp-success p { margin: 12px 0 0; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .lp-page * { transition: none !important; }
}

/* ---------- Text formatting inside text boxes ---------- */
.lp-text strong { font-weight: 700; }
.lp-mark { background: var(--lp-mark, #FFE58A); color: inherit; padding: 0 .15em; border-radius: .15em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lp-blue { color: var(--lp-blue); }
.lp-link { color: var(--lp-blue); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.lp-link:hover { text-decoration-thickness: 2px; }
.lp-link:focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 2px; border-radius: 2px; }

/* ---------- Links box ---------- */
.lp-links-title { margin: 0 0 14px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--lp-text); }
.lp-links ul { list-style: none; margin: 0; padding: 0; }
.lp-links--list ul { display: grid; gap: 10px; }
.lp-links--list .lp-link { font-size: 18px; }
.lp-links--pills ul { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-links--pills .lp-link {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--lp-line); border-radius: 999px;
  background: #fff; font-size: 16px; font-weight: 500; text-decoration: none; transition: border-color .15s ease, background-color .15s ease;
}
.lp-links--pills .lp-link:hover { border-color: var(--lp-blue); background: rgba(0, 53, 128, .04); }
.lp-links.lp-align-center ul { justify-content: center; justify-items: center; }
.lp-links.lp-align-right ul { justify-content: flex-end; justify-items: end; }

/* ---------- Offer form: amount + currency ---------- */
.lp-offer { container-type: inline-size; }
.lp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 38%); gap: 12px; }
@container (max-width: 440px) { .lp-row { grid-template-columns: 1fr; gap: 16px; } }
select.lp-input {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23003580' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
select.lp-input:invalid, select.lp-input option[value=""] { color: #6E7889; }
select.lp-input option { color: var(--lp-text); }
