/* lp4 — Auksinės valandos fotografija. Prefiksas: lp4- */

:root {
  --lp4-card-bg: #FFF7ED;
  --lp4-accent: #EA580C;
  --lp4-accent-dark: #C2410C;
  --lp4-text: #431407;
  --lp4-on-accent: #2A0A02;
  --lp4-muted: #7C4A32;
  --lp4-border: #F4C9A6;
  --lp4-error: #B42318;
  --lp4-focus: #9A3412;
  --lp4-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --lp4-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.lp4-body {
  font-family: var(--lp4-font-body);
  color: var(--lp4-text);
  background: #7C2D12;
  overflow-x: hidden;
}

.lp4-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #111;
  padding: 0.6em 1em;
  z-index: 100;
}
.lp4-skip:focus {
  left: 8px;
  top: 8px;
}

.lp4-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lp4-hero {
  position: absolute;
  inset: 0;
  background-image: url("hero-portrait.jpg");
  background-size: cover;
  background-position: 22% 20%;
  background-repeat: no-repeat;
}

.lp4-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(67,20,7,0.35) 0%, rgba(67,20,7,0) 30%, rgba(67,20,7,0) 65%, rgba(67,20,7,0.55) 100%),
    linear-gradient(90deg, rgba(67,20,7,0.25) 0%, rgba(67,20,7,0) 45%);
}

.lp4-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(16px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vh, 88px);
}

.lp4-card {
  width: min(94vw, 416px);
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  background: var(--lp4-card-bg);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(43, 12, 2, 0.35), 0 2px 8px rgba(43, 12, 2, 0.18);
  padding: clamp(18px, 3vw, 30px) clamp(18px, 3vw, 28px) clamp(16px, 2.4vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp4-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp4-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--lp4-accent);
  color: #FFF7ED;
  font-family: var(--lp4-font-display);
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

.lp4-brand-name {
  font-family: var(--lp4-font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--lp4-text);
}

.lp4-heading {
  font-family: var(--lp4-font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.25;
  margin: 0;
  color: var(--lp4-text);
}

.lp4-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

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

.lp4-fieldset,
.lp4-field-group {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp4-legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp4-muted);
  padding: 0;
}

.lp4-radio-row {
  display: flex;
  gap: 10px;
}

.lp4-radio {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--lp4-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp4-text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lp4-radio input {
  width: 16px;
  height: 16px;
  accent-color: var(--lp4-accent);
  margin: 0;
}

.lp4-radio:has(input:checked) {
  border-color: var(--lp4-accent);
  background: #FFEDD9;
}

.lp4-radio input:focus-visible {
  outline: 2px solid var(--lp4-focus);
  outline-offset: 2px;
}

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

.lp4-select {
  width: 100%;
  padding: 10px 10px;
  border: 1.5px solid var(--lp4-border);
  border-radius: 10px;
  background: #fff;
  color: var(--lp4-text);
  font-family: var(--lp4-font-body);
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23431407' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 26px;
}

.lp4-select:focus-visible,
.lp4-radio input:focus-visible + span {
  outline: 2px solid var(--lp4-focus);
  outline-offset: 2px;
}

.lp4-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;
}

.lp4-error {
  margin: 0;
  font-size: 12.5px;
  color: var(--lp4-error);
  font-weight: 600;
}

.lp4-cta {
  appearance: none;
  border: none;
  border-radius: 12px;
  background: var(--lp4-accent);
  color: var(--lp4-on-accent);
  font-family: var(--lp4-font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 16px;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease, transform 0.05s ease;
}

.lp4-cta:hover {
  background: var(--lp4-accent-dark);
}

.lp4-cta:focus-visible {
  outline: 2px solid var(--lp4-focus);
  outline-offset: 2px;
}

.lp4-cta:active {
  transform: translateY(1px);
}

.lp4-cta:disabled {
  opacity: 0.7;
  cursor: default;
}

.lp4-consent {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--lp4-muted);
}

.lp4-social-proof {
  margin: 0;
  font-size: 12.5px;
  color: var(--lp4-muted);
  text-align: center;
}

.lp4-social-proof[role="status"] {
  color: #1F6A3C;
  font-weight: 600;
}

.lp4-trust {
  list-style: none;
  margin: 2px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--lp4-border);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.lp4-trust li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--lp4-muted);
}

.lp4-trust svg {
  width: 20px;
  height: 20px;
  color: var(--lp4-accent);
}

.lp4-legal {
  position: relative;
  z-index: 2;
  background: var(--lp4-text);
  padding: 10px clamp(16px, 4vw, 32px);
}

.lp4-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.lp4-legal-nav a {
  color: #FFE8D4;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.lp4-legal-nav a:hover,
.lp4-legal-nav a:focus-visible {
  text-decoration: underline;
}

.lp4-legal-nav a:focus-visible {
  outline: 2px solid #FFE8D4;
  outline-offset: 2px;
}

.lp4-legal-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--lp4-text);
  background: #FFE8D4;
  padding: 2px 8px;
  border-radius: 6px;
}

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

@media (max-width: 640px) {
  .lp4-stage {
    justify-content: center;
    padding-bottom: clamp(64px, 10vh, 96px);
  }
  .lp4-hero {
    background-size: auto 165%;
    background-position: 30% 65%;
  }
  .lp4-card {
    width: 92vw;
  }
  .lp4-trust span {
    font-size: 10px;
  }
}

@media (min-width: 1024px) {
  .lp4-hero {
    background-position: 20% 24%;
  }
  .lp4-heading {
    font-size: 25px;
  }
}

@media (min-width: 1440px) {
  .lp4-stage {
    padding-right: 8vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
