:root {
  --tfs-navy: #062f57;
  --tfs-navy-deep: #021f3d;
  --tfs-navy-soft: #0a4776;
  --tfs-orange: #ff681d;
  --tfs-orange-dark: #d84b00;
  --tfs-ink: #092944;
  --tfs-muted: #5f6f7d;
  --tfs-line: #c9d7e2;
  --tfs-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--tfs-ink);
  background: var(--tfs-navy-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 1px 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(20, 96, 150, .72), transparent 34%),
    radial-gradient(circle at 92% 94%, rgba(255, 104, 29, .13), transparent 30%),
    linear-gradient(145deg, var(--tfs-navy) 0%, var(--tfs-navy-deep) 100%);
}

main {
  width: min(calc(100% - 32px), 640px) !important;
  max-width: 640px !important;
  margin: clamp(24px, 6vh, 64px) auto !important;
  padding: clamp(28px, 5vw, 48px) !important;
  overflow: hidden;
  font-family: inherit !important;
  line-height: 1.5 !important;
  background: var(--tfs-white);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  box-shadow:
    0 30px 80px rgba(0, 12, 28, .45),
    0 8px 24px rgba(0, 20, 44, .22),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

main::before {
  content: "TimeForStars™";
  display: flex;
  align-items: center;
  min-height: 62px;
  margin-bottom: 30px;
  padding-left: 76px;
  background: url("/static/timeforstars-logo-mark.png?v=20260919-logo-final1")
    no-repeat left center / 60px 60px;
  color: var(--tfs-navy);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
}

h1 {
  margin: 0 0 14px;
  color: var(--tfs-navy);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

h2 {
  color: var(--tfs-navy);
}

p {
  color: var(--tfs-muted);
  line-height: 1.65;
}

form {
  margin-top: 30px;
}

label {
  display: block;
  margin-top: 18px;
  color: var(--tfs-navy-deep);
  font-weight: 800;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 9px;
  padding: 14px 15px;
  border: 1.5px solid var(--tfs-line);
  border-radius: 12px;
  background: var(--tfs-white);
  color: var(--tfs-ink);
  box-shadow: inset 0 1px 3px rgba(0, 32, 65, .06);
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--tfs-orange);
  box-shadow: 0 0 0 4px rgba(255, 104, 29, .18);
}

input[type="checkbox"] {
  display: inline-block;
  width: 20px;
  min-height: 20px;
  margin: 0 9px 0 0;
  padding: 0;
  vertical-align: -4px;
  accent-color: var(--tfs-orange);
}

button {
  width: 100%;
  min-height: 54px;
  margin-top: 26px;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7a25 0%, var(--tfs-orange) 55%, #f2520a 100%);
  color: var(--tfs-white);
  box-shadow: 0 12px 24px rgba(216, 75, 0, .26);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

button:hover {
  filter: brightness(.96);
  box-shadow: 0 15px 28px rgba(216, 75, 0, .32);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

a {
  color: var(--tfs-orange-dark);
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

small {
  color: var(--tfs-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--tfs-line);
  text-align: left;
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 10% 0%, rgba(20, 96, 150, .66), transparent 38%),
      linear-gradient(160deg, var(--tfs-navy) 0%, var(--tfs-navy-deep) 100%);
  }

  main {
    width: min(calc(100% - 20px), 640px) !important;
    margin: 18px auto !important;
    padding: 28px 22px !important;
    border-radius: 20px;
  }

  main::before {
    min-height: 54px;
    margin-bottom: 26px;
    padding-left: 65px;
    background-size: 52px 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  input,
  select,
  textarea,
  button {
    transition: none;
  }
}
