/* =========================================================
   likimokeliai.lt — sviesus mistinis stilius
   ========================================================= */

:root {
  --bg:           #f5efe0;
  --bg-deep:      #ede3c8;
  --paper:        #fffaf0;
  --paper-soft:   #fbf6e8;
  --ink:          #14082e;       /* dar tamsesnis - max kontrastas */
  --ink-soft:     #2d1850;       /* anksciau buvo violetinis-pilkas */
  --ink-faint:    #3d2b5c;       /* labels - daugiau kontrasto */
  --plum:         #4a2c7a;
  --plum-deep:    #2d1850;
  --gold:         #c89414;       /* sodresnis auksas, geresnis kontrastas */
  --gold-deep:    #7a5a0d;       /* tamsesnis tekstui */
  --gold-soft:    #c9b783;       /* labiau matomas border'is */
  --gold-pale:    #f5e9c0;

  --shadow-soft:  0 30px 60px -30px rgba(74, 44, 122, 0.25),
                  0 14px 30px -16px rgba(139, 105, 20, 0.18);
  --shadow-card:  0 40px 80px -28px rgba(45, 24, 80, 0.28),
                  0 12px 24px -10px rgba(212, 175, 55, 0.18);

  --serif:        'Cinzel', 'Trajan Pro', 'Cormorant Garamond', Georgia, serif;
  --display:      'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --body:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --glyph:        'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
}

/* ===== Reset ===== */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;          /* base padidintas */
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--plum);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
a:hover { color: var(--gold-deep); }

button { font-family: inherit; cursor: pointer; }
input, button { font: inherit; }

/* =========================================================
   Mistinis fonas
   ========================================================= */

.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, #fdf7e6 0%, #f5efe0 55%, #ede3c8 100%);
}

.cosmos__glow {
  position: absolute;
  top: 35%; left: 50%;
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 175, 55, .18) 0%, rgba(212, 175, 55, 0) 60%);
  filter: blur(20px);
  animation: pulse 9s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.05); }
}

.cosmos__wheel {
  position: absolute;
  top: 50%; left: 50%;
  width: min(140vmin, 1100px);
  height: min(140vmin, 1100px);
  transform: translate(-50%, -50%);
  opacity: .55;
  animation: wheel-spin 240s linear infinite;
  transform-origin: 50% 50%;
}

.cosmos__wheel-signs text {
  font-family: var(--glyph);
}

@keyframes wheel-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.cosmos__drift {
  position: absolute;
  inset: 0;
}

.drift {
  position: absolute;
  font-family: var(--glyph);
  font-size: 28px;
  color: var(--gold-deep);
  opacity: 0;
  user-select: none;
  will-change: transform, opacity;
  animation: drift-up 28s linear infinite;
}

@keyframes drift-up {
  0%   { transform: translateY(110vh) translateX(0)   rotate(0deg);   opacity: 0; }
  10%  { opacity: .22; }
  50%  { opacity: .18; transform: translateY(40vh) translateX(20px) rotate(180deg); }
  90%  { opacity: .15; }
  100% { transform: translateY(-15vh) translateX(-10px) rotate(360deg); opacity: 0; }
}

.drift--1  { left: 6%;  font-size: 26px; animation-duration: 38s; animation-delay: 0s;   }
.drift--2  { left: 14%; font-size: 22px; animation-duration: 44s; animation-delay: 7s;   }
.drift--3  { left: 22%; font-size: 30px; animation-duration: 35s; animation-delay: 14s;  }
.drift--4  { left: 30%; font-size: 24px; animation-duration: 42s; animation-delay: 3s;   }
.drift--5  { left: 38%; font-size: 28px; animation-duration: 50s; animation-delay: 19s;  }
.drift--6  { left: 48%; font-size: 20px; animation-duration: 36s; animation-delay: 11s;  }
.drift--7  { left: 58%; font-size: 26px; animation-duration: 46s; animation-delay: 2s;   }
.drift--8  { left: 68%; font-size: 32px; animation-duration: 39s; animation-delay: 23s;  }
.drift--9  { left: 76%; font-size: 22px; animation-duration: 41s; animation-delay: 9s;   }
.drift--10 { left: 84%; font-size: 28px; animation-duration: 33s; animation-delay: 16s;  }
.drift--11 { left: 90%; font-size: 24px; animation-duration: 48s; animation-delay: 5s;   }
.drift--12 { left: 94%; font-size: 26px; animation-duration: 37s; animation-delay: 27s;  }

.cosmos__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =========================================================
   Page layout
   ========================================================= */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 22px 24px 18px;
  gap: 16px;
}

/* ===== Brand ===== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--plum-deep);
  text-transform: lowercase;
  font-weight: 700;
}
.brand__mark {
  font-family: var(--glyph);
  font-size: 22px;
  color: var(--gold-deep);
  animation: spin-slow 22s linear infinite;
  display: inline-block;
}
.brand__name em {
  font-style: normal;
  color: var(--gold-deep);
  letter-spacing: 1px;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* =========================================================
   Hero (centered card)
   ========================================================= */

.hero {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 26px 42px 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,250,240,.94) 100%);
  border: 2px solid var(--gold-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: hero-rise .9s cubic-bezier(.16,.84,.34,1) both;
}

/* Auksinis ramelis */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hero::before {
  inset: 7px;
  border: 1px solid rgba(122, 90, 13, .45);
  border-radius: calc(var(--r-lg) - 7px);
}
.hero::after {
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(212,175,55,.45) 0%, rgba(212,175,55,0) 30%, rgba(212,175,55,0) 70%, rgba(212,175,55,.45) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
}

@keyframes hero-rise {
  0%   { opacity: 0; transform: translateY(14px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ornaments */
.hero__ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 14px;
  width: 100%;
  max-width: 360px;
}
.hero__ornament--bottom { margin: 14px auto 8px; }
.hero__ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.hero__ornament-star {
  font-family: var(--glyph);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0;
}

/* Antraste */
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.08;
  letter-spacing: 2px;
  color: var(--plum-deep);
  margin: 4px 0 12px;
  text-transform: uppercase;
}
.hero__title > span { display: block; }
.hero__title-script {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: 1px;
  color: var(--gold-deep);
  text-transform: none;
  margin-top: 4px;
}

.hero__lede {
  font-family: var(--body);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 22px;
}

/* =========================================================
   Forma
   ========================================================= */

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  position: relative;
  display: block;
}

.field__label {
  display: block;
  font-family: var(--body);
  font-size: 15px;
  letter-spacing: .2px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.field__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  background: #fffdf6;
  border: 2px solid var(--gold-soft);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder {
  color: rgba(45, 24, 80, .42);
  font-weight: 400;
}
.field__input:hover { border-color: var(--gold); }
.field__input:focus {
  border-color: var(--plum);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .25);
}

/* Likimo akcento linija nebenaudojama prie input - palieku tik dropdown bazei */
.field__line { display: none; }

/* =========================================================
   Zodiako pasirinkimas
   ========================================================= */

.field--select { position: relative; }

.zodiac-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fffdf6;
  border: 2px solid var(--gold-soft);
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.zodiac-toggle:hover { border-color: var(--gold); }
.zodiac-toggle:focus {
  outline: none;
  border-color: var(--plum);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .25);
}

.zodiac-toggle__glyph {
  font-family: var(--glyph);
  font-size: 32px;
  color: var(--gold-deep);
  line-height: 1;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
  transition: transform .35s ease;
}

.zodiac-toggle__text {
  flex: 1;
  font-family: var(--body);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.zodiac-toggle.is-empty .zodiac-toggle__text {
  color: rgba(45, 24, 80, .55);
  font-weight: 400;
}

.zodiac-toggle__caret {
  font-size: 16px;
  color: var(--gold-deep);
  transition: transform .25s ease;
  font-weight: bold;
}

.zodiac-toggle[aria-expanded="true"] .zodiac-toggle__caret {
  transform: rotate(180deg);
}
.zodiac-toggle[aria-expanded="true"] .zodiac-toggle__glyph {
  transform: rotate(360deg);
}

/* Panel */
.zodiac-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: calc(100% + 80px);
  max-width: 580px;
  padding: 18px;
  background: #ffffff;
  border: 2px solid var(--gold-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.16,.84,.34,1);

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.zodiac-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.zodiac-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 12px 6px;
  background: var(--paper-soft);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
  font-family: var(--body);
}
.zodiac-card:hover,
.zodiac-card:focus {
  background: var(--gold-pale);
  border-color: var(--gold);
  outline: none;
  transform: translateY(-2px);
}
.zodiac-card.is-selected {
  background: var(--gold-pale);
  border-color: var(--plum);
  box-shadow: inset 0 0 0 1px var(--plum);
}

.zodiac-card__glyph {
  font-family: var(--glyph);
  font-size: 34px;
  color: var(--gold-deep);
  line-height: 1;
}
.zodiac-card__name {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .5px;
  margin-top: 7px;
  color: var(--plum-deep);
  font-weight: 700;
}
.zodiac-card__dates {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
  font-weight: 500;
}

/* =========================================================
   GDPR sutikimas
   ========================================================= */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease;
}
.consent:hover { background: var(--gold-pale); border-color: var(--gold); }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  background: #ffffff;
  border: 2px solid var(--gold-deep);
  border-radius: 6px;
  color: #ffffff;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.consent__box svg { width: 16px; height: 16px; opacity: 0; transition: opacity .15s ease; }
.consent input:checked + .consent__box {
  background: var(--plum);
  border-color: var(--plum);
  color: #ffffff;
}
.consent input:checked + .consent__box svg { opacity: 1; }
.consent input:focus-visible + .consent__box {
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .4);
}
.consent__text a {
  color: var(--plum);
  font-weight: 700;
  text-decoration: underline;
}

/* honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* =========================================================
   CTA mygtukas
   ========================================================= */

.cta {
  position: relative;
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(0); }

.cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 32px;
  background:
    linear-gradient(135deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: #ffffff;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: var(--r-md);
  box-shadow:
    inset 0 0 0 2px rgba(212, 175, 55, .85),
    inset 0 0 0 5px rgba(255, 250, 240, .12),
    0 18px 36px -14px rgba(74, 44, 122, .65),
    0 0 36px -8px rgba(212, 175, 55, .4);
}

.cta__icon {
  font-family: var(--glyph);
  font-size: 22px;
  color: var(--gold-pale);
  display: inline-block;
  animation: spin-slow 12s linear infinite;
}

.cta__shimmer {
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(212, 175, 55, .35) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: shimmer 4.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 60% { left: -120%; }
  100%    { left: 130%; }
}

.cta:disabled,
.cta[aria-busy="true"] {
  pointer-events: none;
  opacity: .75;
}
.cta[aria-busy="true"] .cta__icon {
  animation-duration: 1s;
}

/* Status */
.form__status {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  margin: 4px 0 0;
  min-height: 22px;
  color: var(--ink-soft);
}
.form__status.is-error { color: #8b1818; font-weight: 600; }
.form__status.is-success { color: var(--gold-deep); }

/* Hint */
.hero__hint {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: .3px;
  font-weight: 500;
}

/* =========================================================
   Footer
   ========================================================= */

.foot {
  text-align: center;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: .3px;
  padding: 0 12px;
  font-weight: 500;
}
.foot a {
  color: var(--plum);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.foot a:hover { color: var(--gold-deep); }
.foot__sep { margin: 0 10px; opacity: .5; }

/* =========================================================
   glyph-reveal animacija (naudoja aciu.html)
   ========================================================= */

@keyframes glyph-reveal {
  0%   { opacity: 0; transform: scale(.4) rotate(-180deg); }
  100% { opacity: 1; transform: scale(1)  rotate(0deg); }
}

/* =========================================================
   Responsive
   ========================================================= */

/* =========================================================
   MOBILE-FIRST: 95% lankytojų atvyksta is telefono
   Salinam decoracijas, kurios eats vietos formai
   ========================================================= */

@media (max-width: 720px) {
  .page { padding: 14px 12px 12px; gap: 10px; }

  /* Brand kompaktiska */
  .brand { font-size: 18px; gap: 8px; }
  .brand__mark { font-size: 18px; }

  /* Hero kortele - mazesni padding, daugiau vietos formai */
  .hero {
    padding: 18px 18px 22px;
    max-width: 100%;
    border-width: 2px;
    border-radius: 16px;
  }
  .hero::before {
    inset: 5px;
    border-radius: 11px;
  }

  /* Virsutinis ornamentas - kompaktiskas */
  .hero__ornament {
    margin: 0 auto 8px;
    max-width: 240px;
    gap: 10px;
  }
  .hero__ornament-star { font-size: 12px; }

  /* Apatinis ornamentas + hint - sleptam, kad daugiau vietos formai */
  .hero__ornament--bottom { display: none; }
  .hero__hint {
    font-size: 13px;
    margin-top: 10px;
    color: var(--ink-soft);
  }

  /* Antraste - kompaktiskesne */
  .hero__title {
    font-size: 30px;
    letter-spacing: 1px;
    margin: 0 0 6px;
    line-height: 1.05;
  }
  .hero__title-script {
    font-size: 21px;
    margin-top: 2px;
  }
  .hero__lede {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 16px;
  }

  /* FORMA - pagrindinis fokusas mobile */
  .form { gap: 14px; }
  .form__row { grid-template-columns: 1fr; gap: 14px; }

  .field__label {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .field__input {
    font-size: 17px;
    padding: 13px 14px;
    border-radius: 10px;
    /* Issijungia iOS zoom kai font >= 16px */
  }
  .zodiac-toggle {
    padding: 13px 14px;
    gap: 12px;
    border-radius: 10px;
  }
  .zodiac-toggle__glyph { font-size: 28px; width: 32px; }
  .zodiac-toggle__text { font-size: 17px; }
  .zodiac-toggle__caret { font-size: 14px; }

  /* Zodiako paneles - 3 stulpeliai mobile */
  .zodiac-panel {
    width: calc(100% + 20px);
    max-width: calc(100vw - 24px);
    grid-template-columns: repeat(3, 1fr);
    padding: 12px;
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .zodiac-card { min-height: 84px; padding: 10px 4px; }
  .zodiac-card__glyph { font-size: 28px; }
  .zodiac-card__name { font-size: 13px; }
  .zodiac-card__dates { font-size: 11px; }

  /* GDPR - aiskus tap target */
  .consent {
    font-size: 15px;
    padding: 12px 14px;
    gap: 12px;
    border-radius: 10px;
  }
  .consent__box { width: 26px; height: 26px; }

  /* CTA - DOMINUOJA mobile */
  .cta { margin-top: 4px; }
  .cta__inner {
    padding: 20px 20px;
    font-size: 16px;
    letter-spacing: 2px;
    gap: 12px;
  }
  .cta__icon { font-size: 19px; }

  /* Status */
  .form__status { font-size: 14px; }

  /* Fonas - sumazinam stipruma mobile (baterija/performance) */
  .drift {
    font-size: 22px !important;
    opacity: .12 !important;
  }
  .drift--3, .drift--5, .drift--7, .drift--9, .drift--11 { display: none; }
  .cosmos__wheel { opacity: .3; }
  .cosmos__glow { opacity: .5; }
}

/* Mazi telefonai - dar griezciau */
@media (max-width: 380px) {
  .hero { padding: 16px 14px 20px; }
  .hero__title { font-size: 26px; }
  .hero__title-script { font-size: 19px; }
  .hero__lede { font-size: 15px; margin-bottom: 14px; }
  .form { gap: 12px; }
  .zodiac-panel { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { padding: 18px 16px; font-size: 15px; letter-spacing: 1.5px; }
}

/* Trumpiems aukstiems ekranams - laptopai */
@media (min-height: 720px) and (min-width: 721px) {
  .page { padding: 32px 24px 24px; gap: 22px; }
  .hero { padding: 30px 42px 32px; }
}

/* Su sumazintu judesiu reziavimu */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .cosmos__wheel { display: none; }
  .drift { display: none; }
}
