/* ==========================================================================
   lp9 — „Koralas“ — šviesus vasaros vakaras, maža stiklo (glass) kortelė
   viršuje dešinėje ant pilno ekrano nuotraukos
   ========================================================================== */

:root {
  --lp9-bg-fallback: #FDE9DE;
  --lp9-coral: #FB7862;
  --lp9-coral-dark: #C2371D;
  --lp9-coral-text: #9A2F0C;
  --lp9-sky: #38BDF8;
  --lp9-ink: #7C2D12;
  --lp9-ink-muted: rgba(124, 45, 18, 0.88);
  --lp9-ink-faint: rgba(124, 45, 18, 0.82);
  --lp9-card-bg: rgba(255, 255, 255, 0.88);
  --lp9-card-border: rgba(255, 255, 255, 0.75);
  --lp9-danger: #B3261E;
  --lp9-font-brand: "Fraunces", Georgia, "Times New Roman", serif;
  --lp9-font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --lp9-radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--lp9-bg-fallback);
  color: var(--lp9-ink);
  font-family: var(--lp9-font-body);
  height: 100%;
}

.lp9-body {
  min-height: 100dvh;
  overflow: hidden;
}

img, svg { display: block; }

a { color: inherit; }

.lp9-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Puslapio karkasas ---------- */

.lp9-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.lp9-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 233, 217, 0.08) 0%, rgba(120, 60, 30, 0.10) 100%),
    url("hero-portrait.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 38% 18%;
  background-color: var(--lp9-bg-fallback);
}

.lp9-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(115% 85% at 18% 20%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(0deg, rgba(60, 22, 10, 0.42) 0%, rgba(60, 22, 10, 0) 26%);
  pointer-events: none;
}

/* ---------- Pagrindinis stage: maža kortelė viršuje kairėje (kad neuždengtų veido) ---------- */

.lp9-stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(16px, 5vh, 48px) clamp(16px, 5vw, 56px) 3vh;
  min-height: 0;
}

.lp9-card {
  width: min(336px, 90vw);
  background: var(--lp9-card-bg);
  border: 1px solid var(--lp9-card-border);
  border-radius: var(--lp9-radius);
  padding: 20px 20px 18px;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 24px 60px rgba(90, 35, 15, 0.28),
    0 2px 10px rgba(90, 35, 15, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  max-height: 90dvh;
  overflow-y: auto;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lp9-card { background: rgba(255, 255, 255, 0.96); }
}

/* ---------- Prekės ženklas ---------- */

.lp9-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.lp9-brand-name {
  font-family: var(--lp9-font-brand);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--lp9-coral-text);
}

.lp9-brand-tag {
  font-size: 11px;
  color: var(--lp9-ink-faint);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lp9-headline {
  font-family: var(--lp9-font-brand);
  font-weight: 600;
  font-size: clamp(17px, 2.8vw, 20px);
  line-height: 1.22;
  margin: 0 0 5px;
  color: var(--lp9-ink);
}

.lp9-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--lp9-ink-muted);
}

/* ---------- Forma ---------- */

.lp9-form[hidden] { display: none; }

.lp9-fieldset {
  border: 0;
  margin: 0 0 11px;
  padding: 0;
}

.lp9-legend {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp9-ink-faint);
  margin-bottom: 6px;
  padding: 0;
}

.lp9-radio-row {
  display: flex;
  gap: 8px;
}

.lp9-radio {
  flex: 1 1 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: 1px solid rgba(124, 45, 18, 0.22);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lp9-ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lp9-radio input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}

.lp9-radio:has(input:checked) {
  border-color: var(--lp9-coral);
  background: rgba(251, 120, 98, 0.16);
}

.lp9-radio:has(input:focus-visible) {
  outline: 2px solid var(--lp9-coral-dark);
  outline-offset: 2px;
}

.lp9-date-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 7px;
}

.lp9-select-wrap select {
  width: 100%;
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid rgba(124, 45, 18, 0.22);
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--lp9-ink);
  font-family: var(--lp9-font-body);
  font-size: 13px;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C2D12' stroke-width='1.8'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 15px;
  padding-right: 26px;
}

.lp9-select-wrap select:focus-visible,
.lp9-cta:focus-visible,
.lp9-legal-nav a:focus-visible {
  outline: 2px solid var(--lp9-coral-dark);
  outline-offset: 2px;
}

.lp9-select-wrap select option { color: #111; }

.lp9-cta {
  width: 100%;
  margin-top: 2px;
  padding: 12px 16px;
  border: none;
  border-radius: 11px;
  background: var(--lp9-coral-dark);
  color: #FFF7F2;
  font-family: var(--lp9-font-body);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(251, 120, 98, 0.35);
  transition: filter 0.15s ease, transform 0.05s ease;
}

.lp9-cta:hover { filter: brightness(1.06); }
.lp9-cta:active { transform: translateY(1px); }

.lp9-consent {
  margin: 9px 0 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--lp9-ink-faint);
}

.lp9-consent a { text-decoration: underline; color: var(--lp9-ink-muted); }

.lp9-error {
  margin: 9px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--lp9-danger);
}

/* ---------- Sėkmės būsena ---------- */

.lp9-success[hidden] { display: none; }

.lp9-success {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(251, 120, 98, 0.14);
  border: 1px solid rgba(251, 120, 98, 0.4);
  margin-bottom: 4px;
}

.lp9-success:focus { outline: none; }

.lp9-success-icon {
  width: 18px; height: 18px;
  flex: none;
  color: var(--lp9-coral-dark);
  margin-top: 1px;
}

.lp9-success p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--lp9-ink);
}

/* ---------- Pasitikėjimo ženkliukai ---------- */

.lp9-badges {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 14px 0 8px;
  padding: 0;
}

.lp9-badge {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.25;
  color: var(--lp9-ink-muted);
  font-weight: 700;
}

.lp9-badge svg {
  width: 17px; height: 17px;
  color: var(--lp9-sky);
}

.lp9-social-proof {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--lp9-ink-faint);
}

.lp9-social-proof::before {
  content: "● ";
  color: #16A34A;
}

/* ---------- Teisinė juosta ---------- */

.lp9-legal {
  position: relative;
  z-index: 2;
  flex: none;
  padding: 10px clamp(16px, 4vw, 40px);
  background: linear-gradient(0deg, rgba(60, 22, 10, 0.62) 0%, rgba(60, 22, 10, 0.30) 100%);
}

.lp9-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: 11.5px;
}

.lp9-legal-nav a {
  text-decoration: none;
  color: rgba(255, 244, 237, 0.88);
}

.lp9-legal-nav a:hover { color: #FFFFFF; }

.lp9-legal-age {
  color: rgba(255, 244, 237, 0.88);
  font-weight: 700;
  border: 1px solid rgba(255, 244, 237, 0.4);
  border-radius: 4px;
  padding: 0 5px;
}

/* ---------- Responsive ---------- */

/* Itin platūs / žemi langai (ultraplatus desktop) — didesnė matoma aukščio dalis,
   veidas lieka viršuje-centre-kairėje, todėl stumiame poziciją į kairę/aukštį. */
@media (min-aspect-ratio: 21/9) {
  .lp9-hero { background-position: 32% 8%; }
}

@media (max-width: 900px) {
  .lp9-hero { background-size: auto 175%; background-position: 34% 10%; }
  .lp9-stage {
    align-items: flex-start;
    justify-content: center;
    padding: 3.5vh 4vw 2vh;
  }
  .lp9-card { width: min(420px, 94vw); }
}

@media (max-width: 640px) {
  .lp9-hero { background-size: auto 185%; background-position: 36% 8%; }
  .lp9-scrim {
    background:
      linear-gradient(0deg, rgba(60, 22, 10, 0.55) 0%, rgba(60, 22, 10, 0.08) 40%, rgba(60, 22, 10, 0.02) 58%);
  }
  .lp9-stage { justify-content: center; padding-top: 3vh; }
}

@media (max-width: 399px) {
  .lp9-body { overflow-y: auto; height: auto; }
  .lp9-page { min-height: 100dvh; }
  .lp9-card { max-height: none; }
  .lp9-hero { position: fixed; }
  .lp9-scrim { position: fixed; }
}

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