:root {
  --bg: #e6bfc1;
  --card: #ffffff;
  --ink: #1e1e1e;
  --muted: #676767;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.fit-content {
  width: fit-content;
  margin: auto;
}

#t {
  margin: 0 0 0px;
  /* viršus 0, apačia 8px */
}


.card {
  margin: 0 auto;
  /* jei tema nenurodo – centruojam */
  overflow: hidden;
  max-width: 420px;
  /* desktop ribojimas */
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
  padding: 56px 64px;
}

h1 {
  font-size: 46px;
  /* margin: 0 0 4px; */
  font-weight: 600;
  /* text-align: center; */
}


.subtitle {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 18px
}

.sig {
  font-family: "Great Vibes", cursive;
  font-size: 30px;
  margin-top: 10;
  margin-bottom: 10px;
  color: #666;
}

form {
  margin: 0
}

.rows {
  display: grid;
  gap: 20px
}

.opt-title,
.row label {
  font-size: 18px;
}

.row label {
  display: block;
  margin-bottom: 6px
}


.row input,
.row select {
  width: 100%;
  max-width: 100%;
  padding: 9px 9px;
  font: inherit;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-sizing: border-box;
  min-width: 0;
  background-color: #fff;
  /* baltas fonas */
  color: #1e1e1e;
}

.field-group {
  position: relative;
  box-sizing: border-box;
  border: 0;
  /* rėmelis */
  padding: 18px;
  /* vidiniai atstumai */
  padding-top: 3px;
  padding-bottom: 3px;
  background: #eee;
  /* kortelės fonas */
  margin: 16px auto;
  /* tarpai nuo kitų elementų */
  max-width: 420px;
  /* desktop ribojimas */
  width: 100%;
  /* užtikrina prisitaikymą mažame ekrane */
  box-shadow: inset 0 0 0 1px #e4e4e4;
  /* vietoje border – „vidinis“ 1px, kuris nesibugina iOS */
}

.field-group legend {
  font-weight: 600;
  font-size: 16px;
  padding: 8px 8px;
  /* tarpeliai aplink tekstą */
  margin-left: 0px;
  background: #cecece;
  /* uždažo rėmelį po legenda */
  line-height: 1;
  /* kad gražiai priglustų */
  color: #333;
}

.field-group .row {
  margin-bottom: 16px;
}

.group-help {
  margin: 8px 2px 0;
}

.opt-desc, 
.row small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.2;
}

.actions {
  margin-top: 20px
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
  background: #111;
  color: #fff;
  cursor: pointer;
}

/* konteineris: kairė (forma) + dešinė (iliustracija) */
.hand-wrap {
  max-width: 420px;
  /* sutapk su .field-group */
  width: 100%;
  display: grid;
  grid-template-columns: 50% 50%;
  /* dešinės kolonos plotis */
  gap: 20px;
  align-items: stretch;
  /* kad img kolona užimtų visą aukštį */
  margin: 0px 0 10px;
}

/* kairė kolona */
.hand-left {
  grid-column: 1;
  min-width: 0;
}

.hand-left label {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

/* dešinė kolona: img per visą kairės aukštį, gražiai centruojamas */
.hand-right {
  grid-column: 2;
  grid-row: 1 / -1;
  /* nebekris žemyn */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hand-right img {
  max-height: 100%;
  /* užpildo visą bloko aukštį */
  max-width: 100%;
  height: auto;
  padding-right: 10px;
}


/* Konteineris dviem stulpeliams: forma + paveikslėlis */
.hand-row {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 130px;
  /* kairė plečiasi, dešinė fiksuota */
  gap: 20px;
  align-items: end;
  max-width: 420px;
  margin-top: 8px;
}

/* Grupės label (nes dabar be "for") */
.group-label {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

/* Radio sąrašas – stulpeliu, tvarkingai su tarpeliais */
.radio-list {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

/* Vieno punkto išdėstymas: burbulas + tekstas vienoje eilėje */
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Native "bullet", bet su akcento spalva */
.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: #111;
  /* modernus būdas pakeisti spalvą */
}

/* Neleidžiami (disabled) – nublukinti */
.radio-item.is-disabled label {
  color: var(--muted);
  opacity: 0.7;
  cursor: not-allowed;
}

/* Telefonams – kad iOS nepriartintų */
.radio-item label {
  font-size: 16px;
  flex: 1 1 auto;           /* can grow + shrink */
  min-width: 0;  
}

/* Baltas blokas radio pasirinkimams */
.radio-panel {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 12px 14px;
  /* kad „kvėpuotų“ pilkame field-group’e */
  margin: 6px 0 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

/* Radio sąrašas ir elementai – gali likti kaip turi,
   bet šiek tiek padidinam paspaudimo zoną */
.radio-list {
  display: grid;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

/* Burbulo spalva */
.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #111;
}

/* Fokusas klaviatūrai – aiškus, bet subtilus */
.radio-item input[type="radio"]:focus-visible+label {
  outline: 2px solid #111;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Disabled – švelniai nublukinti */
.radio-item.is-disabled label {
  color: var(--muted);
  opacity: .6;
  cursor: not-allowed;
}

/* Help eilutė – „oro“ apačioje, tipografiškai ramu */
.radio-panel .group-help {
  display: block;
  margin-top: 10px;
  padding-top: 4px;
  line-height: 1.35;
  color: var(--muted);
  border-top: 1px solid #f0f0f0;
  /* subtili skiriamoji linija */
}

/* Kad help tekstas gražiai lygiuotųsi po burbulu */
.radio-list+.group-help {
  margin-left: 28px;
}

.group-help {
  margin-bottom: 20px;
}

label.opt {
  display: flex;
  flex-direction: column;
}

.opt-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 6px;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1;
  color: #555;
  background: #f1f1f1;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
}

.radio-item.is-disabled .opt-title,
.radio-item.is-disabled .opt-desc {
  opacity: .65;
}


/* Telefone nieko papildomai nereikia – panelė prisitaiko automatiškai */

.hand-input input,
.input-unit select {
  width: 100%;
  max-width: 100%;
  padding: 9px 9px;
  font: inherit;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-sizing: border-box;
  min-width: 0;
  background-color: #fff;
  /* baltas fonas */
  color: #1e1e1e;
  margin-bottom: 8px;
}

.error {
  color: #c22;
  margin-top: 14px
}

.result {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: 22px;
}

.result .lbl {
  font-size: 20px
}

.result .val {
  font-size: 28px;
  font-weight: 600
}

.img-wide {
  display: block;
  width: 100%;
  height: auto;
}

/* mobiliam*/
@media (max-width: 560px) {
  .card {
    padding: 28px 18px;
    /* mažiau „baltų“ kraštų */
  }

  h1 {
    font-size: 38px
  }

  .sig {
    font-size: 24px
  }

  .result .lbl {
    font-size: 18px
  }

  .result .val {
    font-size: 24px
  }
}