:root {
  color-scheme: light;
  --ink: #202824;
  --muted: #6d756f;
  --paper: #f7f5ef;
  --card: #fffefa;
  --line: #e8e5dc;
  --green: #335e50;
  --green-dark: #25473c;
  --lime: #d9e5b6;
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 7% 8%, rgba(218, 229, 195, 0.45), transparent 30rem),
    var(--paper);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  width: min(1240px, 100%);
  min-height: 60px;
  margin: auto;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font: 800 20px "Be Vietnam Pro", "Segoe UI", sans-serif;
  letter-spacing: -0.7px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px 11px 11px 3px;
  object-fit: cover;
}

.home-link {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-link:hover {
  color: var(--green);
}

.parents-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.parents-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 138px);
  margin: 10px auto 12px;
}

.parents-heading {
  margin: 0 0 15px;
  padding: 12px 4px 4px;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.parents-heading h1 {
  margin: 5px 0 5px;
  font: 800 clamp(25px, 4vw, 25px) "Be Vietnam Pro", "Segoe UI", sans-serif;
  /* letter-spacing: -1px; */
}

.parents-heading h1 span {
  color: var(--green);
}

.parents-heading p {
  /* max-width: 720px; */
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.parents-card {
  margin-bottom: 15px;
  padding: clamp(19px, 4vw, 20px);
  border: 1px solid rgba(232, 229, 220, 0.9);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 38px rgba(44, 54, 46, 0.045);
}

.section-heading {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-index {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--green-dark);
  background: #e7edd9;
  font-size: 11px;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  font: 700 clamp(17px, 2.5vw, 19px) "Be Vietnam Pro", "Segoe UI", sans-serif;
  letter-spacing: -0.3px;
}

.general-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  color: #48534b;
  font-size: 12px;
  font-weight: 700;
}

.field b,
.submit-row > p b {
  color: #a34835;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 400;
}

.field input:focus,
.field select:focus {
  border-color: #9db5a7;
  box-shadow: 0 0 0 3px rgba(51, 94, 80, 0.08);
}

.scale-card {
  padding-bottom: 21px;
}

.scale-card .section-heading {
  margin-bottom: 8px;
}

.scale-intro,
.section-description {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.scale-key {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  color: #48534b;
  font-size: 11px;
  line-height: 1.5;
}

.scale-key span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.scale-key b {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: var(--green-dark);
  background: #e7edd9;
  font-size: 10px;
}

.question-section .section-heading {
  margin-bottom: 16px;
}

.question-card,
.choice-question {
  min-width: 0;
  margin: 0;
  padding: 5px 0px 12px;
  border: 0;
  border-top: 1px solid #eeece5;
}

.question-card legend,
.choice-question legend {
  width: 100%;
  padding: 0;
  color: #303a33;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.question-code {
  margin-right: 8px;
  color: var(--green);
  /* font-size: 11px; */
  font:700 15px "Be Vietnam Pro",
    sans-serif;
  /* font-weight: 800; */
  white-space: nowrap;
}

.rating-options {
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rating-option {
  min-width: 0;
  min-height: 57px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.rating-option:hover {
  border-color: #b6c8b7;
  background: #f8faf5;
}

.rating-option input,
.choice-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.rating-value {
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 800;
}

.rating-label {
  font-size: 9px;
  line-height: 1.3;
}

.rating-option:has(input:checked) {
  border-color: var(--green);
  color: var(--green-dark);
  background: #edf2e7;
  box-shadow: inset 0 0 0 1px var(--green);
}

.rating-option:has(input:focus-visible),
.choice-option:has(input:focus-visible) {
  outline: 3px solid rgba(51, 94, 80, 0.25);
  outline-offset: 2px;
}

.choice-question {
  padding-bottom: 0;
}

.choice-options {
  margin-top: 5px;
  display: grid;
  gap: 8px;
}

.choice-option {
  min-height: 42px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #48534b;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-option::before {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 1px solid #c9cfc5;
  border-radius: 50%;
  content: "";
}

.choice-option:has(input:checked) {
  border-color: var(--green);
  color: var(--green-dark);
  background: #f2f6ec;
}

.choice-option:has(input:checked)::before {
  border: 5px solid var(--green);
  background: white;
}

.submit-row {
  padding: 2px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.submit-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.primary-button {
  min-height: 45px;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--green);
}

.primary-button span {
  margin-left: 5px;
}

.thank-you-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: clamp(26px, 6vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: thank-you-enter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.thank-you-card::before,
.thank-you-card::after {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(51, 94, 80, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.thank-you-card::before {
  top: -165px;
  left: -110px;
  box-shadow: 0 0 0 25px rgba(51, 94, 80, 0.025), 0 0 0 54px rgba(51, 94, 80, 0.02);
}

.thank-you-card::after {
  right: -130px;
  bottom: -180px;
  box-shadow: 0 0 0 25px rgba(51, 94, 80, 0.025), 0 0 0 54px rgba(51, 94, 80, 0.02);
}

.celebration-art {
  width: 126px;
  height: 126px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.celebration-check {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid #dce7d5;
  border-radius: 28px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(37, 71, 60, 0.2);
  font-size: 40px;
  font-weight: 700;
  animation: celebration-pop 0.65s 0.12s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.celebration-sparkle {
  position: absolute;
  z-index: 1;
  color: #bd8740;
  animation: sparkle 1.8s ease-in-out infinite alternate;
}

.sparkle-one {
  top: 8px;
  left: 12px;
  font-size: 24px;
}

.sparkle-two {
  top: 20px;
  right: 7px;
  color: var(--green);
  font-size: 30px;
  animation-delay: 0.4s;
}

.sparkle-three {
  right: 14px;
  bottom: 3px;
  font-size: 18px;
  animation-delay: 0.8s;
}

.celebration-confetti {
  position: absolute;
  top: -12px;
  left: var(--confetti-x);
  width: 7px;
  height: 11px;
  border-radius: 2px;
  background: var(--confetti-color);
  opacity: 0;
  animation: confetti-fall 1.9s var(--confetti-delay) ease-out infinite;
}

.thank-you-card > .eyebrow {
  padding: 7px 11px;
  border-radius: 20px;
  background: #edf2e7;
  font-size: 10px;
}

.thank-you-card h2 {
  max-width: 640px;
  margin: 15px 0 10px;
  color: var(--green-dark);
  font: 800 clamp(23px, 4vw, 30px)/1.3 "Be Vietnam Pro", "Segoe UI", sans-serif;
  /* letter-spacing: -0.7px; */
}

.thank-you-card > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 500;
  font-style: italic;
}

.thank-you-saved-note {
  margin-top: 20px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce7d5;
  border-radius: 9px;
  color: var(--green-dark);
  background: #f3f7ef;
  font-size: 11px;
  font-weight: 600;
}

.thank-you-saved-note span {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 10px;
}

.thank-you-actions {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.secondary-button {
  min-height: 45px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--green-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.secondary-button:hover {
  border-color: #b6c8b7;
  background: #f6f8f2;
}

@keyframes thank-you-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes celebration-pop {
  from {
    opacity: 0;
    transform: scale(0.45) rotate(-14deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes sparkle {
  from {
    opacity: 0.55;
    transform: scale(0.8) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1.15) rotate(12deg);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0);
  }
  18% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(140px) rotate(250deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .thank-you-card,
  .celebration-check,
  .celebration-sparkle,
  .celebration-confetti {
    animation: none;
  }
}

.form-notice {
  margin: 14px 0 0;
  padding: 0;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.6;
}

.form-notice:not(:empty) {
  padding: 12px 15px;
  border: 1px solid #dce7d5;
  border-radius: 10px;
  background: #f3f7ef;
}

.loading-card,
.load-error {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.load-error h2 {
  margin-bottom: 8px;
  color: #a34835;
  font-size: 18px;
}

.load-error p {
  margin: 0;
}

.site-footer {
  width: min(1240px, 100%);
  min-height: 52px;
  margin: 0 auto;
  padding: 14px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(87, 98, 89, 0.12);
  color: var(--muted);
  font-size: 11px;
}

.thank-you-name{
  color:#12ad65;
}

@media (max-width: 620px) {
  .site-header {
    min-height: 60px;
    padding: 0 18px;
  }

  .brand {
    gap: 7px;
    font-size: 16px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .home-link {
    font-size: 12px;
  }

  .parents-nav {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .parents-shell {
    width: calc(100% - 28px);
    margin-top: 8px;
  }

  .parents-heading {
    padding-top: 8px;
  }

  .parents-heading p {
    font-size: 13px;
  }

  .parents-card {
    margin-bottom: 12px;
    padding: 17px;
    border-radius: 15px;
  }

  .general-fields {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .scale-key {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .rating-options {
    gap: 5px;
  }

  .rating-option {
    min-height: 55px;
    padding: 5px 2px;
    justify-content: start;
  }

  .rating-label {
    font-size: 8px;
  }

  .submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .thank-you-card {
    min-height: 400px;
    padding: 24px 18px;
  }

  .thank-you-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .thank-you-actions .primary-button,
  .thank-you-actions .secondary-button {
    width: 100%;
  }

  .primary-button {
    width: 100%;
  }

  .site-footer {
    padding: 13px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
