:root {
  --primary: #1e2a38;
  --accent: #27ae60;
  --cta-blue-text: #1e3a8a;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > * {
  flex-shrink: 0;
}

#site-footer {
  margin-top: auto;
}

/* Let main shrink below descendant min-content (avoids horizontal growth in flex column layout). */
main {
  min-width: 0;
  width: 100%;
}

/* NAVBAR */
.navbar {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Left padding clears the absolute logo; keep the right side free for menu+CTA */
  padding: 10px 24px 10px max(24px, 11rem);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 140px;
}

.nav-logo img.nav-logo__mobile {
  display: none;
}

.menu-toggle {
  display: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu > li > a.is-active {
  background: rgba(255,255,255,0.2);
}

.nav-menu > li:hover {
  background: rgba(255,255,255,0.1);
}

/* DROPDOWN */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  min-width: 180px;
  display: none;
  flex-direction: column;
}

.dropdown a {
  padding: 10px 12px;
  color: white;
  text-decoration: none;
  display: block;
}

.dropdown a:hover {
  background: var(--accent);
}

/* SHOW ON HOVER */
.nav-menu li:hover .dropdown {
  display: flex;
}

/* HERO */
.hero {
  height: 100vh;
  background: url('/images/hero-background.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 8px;
  background: rgba(0,0,0,0.5);
  border-radius: 16px;
  padding: 20px;
  min-height: 1.2em;
}

.hero h2 {
  font-size: 24px;
  margin-bottom: 24px;
  background: rgba(0,0,0,0.5);
  border-radius: 16px;
  padding: 20px;
  min-height: 1.2em;
}

@media (max-width: 574px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 18px;
  }
}

.hero-typewriter-caret {
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 0.12em;
  background: currentColor;
  vertical-align: -0.12em;
  opacity: 0;
}

.hero-title--typing .hero-typewriter-caret {
  animation: hero-caret-blink 0.8s steps(1) infinite;
}

.hero-title--done .hero-typewriter-caret {
  animation: hero-caret-blink 0.8s steps(1) 3;
}

@keyframes hero-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 50px;
}

.footer div {
  display: flex;
  flex-grow: 1;
  flex-basis: 0;
  flex-direction: column;
  align-items: center;
}

.copyright {
  text-align: center;
  padding: 12px 0;
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
    padding: 2.75rem 1.5rem;
  }

  .footer div {
    flex-grow: 0;
    flex-basis: auto;
    gap: 0.85rem;
  }

  .footer h2 {
    margin-bottom: 0.25rem;
  }

  .footer div > span {
    display: block;
    line-height: 1.65;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .footer {
    gap: 3.25rem;
    padding-block: 2.5rem 3rem;
  }
}

/* BUTTON */
.button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.button:hover {
  background: var(--accent);
}

.button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

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

.button.disabled {
  background-color: #8b8b8b;
  border-color: transparent;
  cursor: not-allowed;
}

.hero-button {
  margin-top: 24px;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.9);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hero-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.hero-button:focus {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-button:active {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

/* Signup CTA — same pill as .hero-button, blue (navbar + hero) */
.hero-button.hero-button--blue {
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.button.hero-button.hero-button--blue:hover {
  background: rgba(59, 130, 246, 0.96);
}

.hero-button.hero-button--blue:hover {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}

.hero-button.hero-button--blue:active {
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35);
}

/* Navbar “Zapisz się” — same button classes, next to menu items */
.nav-cta.hero-button {
  margin-top: 0;
  margin-left: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta {
  position: static;
}

.nav-cta.hero-button:hover {
  transform: translateY(-1px);
}

.nav-cta.hero-button:active {
  transform: translateY(0);
}

.nav-cta.hero-button.is-active {
  background: #fff;
  color: var(--cta-blue-text);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.button.hero-button.hero-button--blue.nav-cta.is-active:hover {
  background: #f8fafc;
  color: #2563eb;
}

@media (max-width: 1100px) {
  .navbar {
    justify-content: flex-start;
    gap: 10px 12px;
    padding: 10px 20px;
  }

  .nav-logo {
    position: static;
    transform: none;
    flex-shrink: 0;
  }

  .nav-menu {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }

  .nav-menu > li > a {
    padding: 15px 10px;
  }

  .nav-cta.hero-button {
    margin-left: 8px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* MOBILE */
@media(max-width: 900px) {
  .navbar {
    padding: 8px 16px;
    min-height: 54px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-logo {
    position: static;
    transform: none;
    z-index: 3;
    flex-shrink: 0;
  }

  .nav-logo img.nav-logo__desktop {
    display: none;
  }

  .nav-logo img.nav-logo__mobile {
    display: block;
    width: auto;
    height: 40px;
    max-width: none;
  }

  .nav-cta.hero-button {
    order: 1;
    align-self: center;
    margin-left: auto;
    margin-right: 0;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 8px 14px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-menu {
    flex-direction: column;
    background: var(--primary);
    width: 100%;
    display: none;
    margin: 8px 0 0 0;
    order: 3;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: static;
    order: 2;
    padding: 6px;
    margin-left: 8px;
    z-index: 2;
    line-height: 0;
    background-color: #ffffff;
    border: 1px solid #111;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .menu-toggle svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #111;
    stroke-width: 2.5;
    stroke-linecap: round;
  }

  .dropdown {
    position: static;
  }

  .dropdown a {
    padding: 10px 24px;
    color: white;
    text-decoration: none;
    display: block;
  }

  .nav-menu li:hover .dropdown {
    display: none;
  }

  .nav-menu li.active .dropdown {
    display: flex;
  }
}

@media (max-width: 380px) {
  .nav-cta.hero-button {
    padding: 7px 10px;
    font-size: 12px;
  }
}

@media (max-width: 320px) {
  .navbar {
    padding: 8px 10px;
  }

  .nav-logo img.nav-logo__mobile {
    height: 34px;
  }

  .nav-cta.hero-button {
    padding: 6px 8px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .menu-toggle {
    margin-left: 6px;
    padding: 5px;
  }

  .menu-toggle svg {
    width: 22px;
    height: 22px;
  }
}

/* Team page */
.team-main h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.team-intro {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.45;
}

.team-main {
  width: 100%;
  min-width: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.team-card--lead {
  grid-column: 1 / -1;
}

.team-card--lead .team-card-photo {
  width: min(400px, 100%);
  height: auto;
  max-width: 100%;
}

.team-card--lead .team-card-name {
  font-size: 1.2rem;
}

.team-card {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
  border: 1px solid rgba(30, 42, 56, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 42, 56, 0.06);
}

.team-card-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem 1.25rem 1.1rem;
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.team-card-photo {
  width: 280px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: rgba(30, 42, 56, 0.08);
  display: block;
  flex-shrink: 0;
}

.team-card-summary-bottom {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.team-card-role {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: #4a5568;
  text-align: center;
  padding: 0 0.25rem;
}

.team-card-name-row {
  display: grid;
  grid-template-columns: 1.25rem 1fr 1.25rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.team-card-name {
  grid-column: 2;
  min-width: 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--primary);
  text-align: center;
}

.team-card-chevron {
  grid-column: 3;
  justify-self: end;
  align-self: center;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.2s ease;
}

.team-card.is-expanded .team-card-chevron {
  transform: rotate(225deg);
  opacity: 0.85;
}

.team-card-summary:hover .team-card-chevron {
  opacity: 0.9;
}

.team-card-summary:focus {
  outline: none;
}

.team-card-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.team-card-bio {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  overflow-x: clip;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1.25rem 0;
  border-top: none;
  transition: grid-template-rows 0.32s cubic-bezier(0.33, 1, 0.68, 1);
}

.team-card.is-expanded .team-card-bio {
  grid-template-rows: 1fr;
  padding-bottom: 1.15rem;
  border-top: 1px solid rgba(30, 42, 56, 0.08);
}

.team-card-bio > p {
  margin: 0.85rem 0 0;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  line-height: 1.55;
  color: #2c3540;
  text-align: justify;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.26s ease 0.06s, transform 0.28s cubic-bezier(0.33, 1, 0.68, 1) 0.06s;
}

.team-card.is-expanded .team-card-bio > p {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .team-card-bio {
    transition: none;
  }

  .team-card-bio > p {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .team-card-chevron {
    transition: none;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card-summary {
    padding: 1rem 1rem 0.95rem;
    gap: 0.85rem;
  }

  .team-card-photo,
  .team-card--lead .team-card-photo {
    width: min(280px, 88vw);
    height: auto;
  }

  .team-card-bio {
    padding-inline: 1rem;
  }
}

/* Offer / therapy page */
.offer-page {
  flex-grow: 1;
  padding: 6rem 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  line-height: 1.7;
  color: #1e2a38;
}

.offer-section + .offer-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(30, 42, 56, 0.1);
}

.offer-section.offer-section--cta {
  margin-top: 3rem;
  padding: 1.75rem 1.5rem;
  border-top: none;
  border-left: 4px solid var(--accent);
  background:
    linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(30, 42, 56, 0.04) 100%);
}

.offer-section.offer-section--cta h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.offer-section.offer-section--cta p:last-child {
  margin-bottom: 0;
}

.offer-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.offer-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.75rem 0 0.65rem;
}

.offer-page h1 + h2 {
  margin-top: 0.5rem;
}

.offer-page p {
  margin: 0 0 0.85rem;
  color: #2c3540;
}

.offer-page a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.offer-page a:hover {
  color: #1e8449;
}

.offer-page a.offer-link-highlight {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.55rem 1rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  border-bottom: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.offer-page a.offer-link-highlight:hover {
  color: #fff;
  background: #1e8449;
}

.offer-page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #2c3540;
}

.offer-page li {
  margin-bottom: 0.55rem;
}

.offer-page li::marker {
  color: var(--accent);
}

.offer-feature {
  margin: 0 0 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: 6px;
}

.offer-feature:nth-of-type(odd) {
  background: rgba(30, 42, 56, 0.045);
}

.offer-feature:nth-of-type(even) {
  background: rgba(39, 174, 96, 0.07);
}

.offer-feature h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.offer-feature > p:last-child {
  margin-bottom: 0;
}

.offer-feature__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 1.35rem 1.75rem;
  align-items: start;
}

/* Single image on the left: narrow media column first so image hugs left and text follows. */
.offer-feature--img-left .offer-feature__body:has(> .offer-feature__media:not(.offer-feature__media--pair)) {
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1fr);
}

/* Single image on the right: narrow media column second so image hugs right. */
.offer-feature--img-right .offer-feature__body:has(> .offer-feature__media:not(.offer-feature__media--pair)) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.68fr);
}

.offer-feature--img-left .offer-feature__media {
  order: -1;
}

.offer-feature__text p:last-child {
  margin-bottom: 0;
}

.offer-feature__media {
  margin: 0;
  min-width: 0;
}

.offer-feature__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.offer-feature__body:has(> .offer-feature__media:not(.offer-feature__media--pair)) img {
  max-height: 21rem;
}

.offer-feature__media--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  align-items: stretch;
}

.offer-feature__media--pair img {
  max-height: 22rem;
  height: 100%;
  aspect-ratio: 3 / 4;
}

.nutrition-resources {
  margin-top: 0.35rem;
}

.faq-section h2 {
  margin-top: 0;
}

.faq-intro {
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  color: #4a5568;
  line-height: 1.55;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid rgba(30, 42, 56, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 42, 56, 0.06);
  overflow: clip;
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 1rem 2.75rem 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--primary);
  user-select: none;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.55;
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.2s ease;
}

.faq-item summary:hover {
  background: rgba(30, 42, 56, 0.03);
}

.faq-item summary:hover::after {
  opacity: 0.9;
}

.faq-item summary:focus {
  outline: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-item[open] summary {
  border-bottom: 1px solid rgba(30, 42, 56, 0.08);
}

.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
  opacity: 0.85;
}

.faq-answer {
  padding: 0.9rem 1.15rem 1.15rem;
}

.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2c3540;
}

.faq-answer p + p {
  margin-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after {
    transition: none;
  }
}

@media (max-width: 768px) {
  .offer-page {
    padding: 5.5rem 1.25rem 2.5rem;
  }

  .offer-page h1 {
    font-size: 1.65rem;
  }

  .offer-page h2 {
    font-size: 1.1rem;
  }

  .offer-feature {
    margin-bottom: 0.85rem;
    padding: 1.15rem 1rem;
  }

  .offer-feature__body,
  .offer-feature--img-left .offer-feature__body:has(> .offer-feature__media:not(.offer-feature__media--pair)),
  .offer-feature--img-right .offer-feature__body:has(> .offer-feature__media:not(.offer-feature__media--pair)) {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .offer-feature--img-left .offer-feature__media {
    order: 0;
  }

  .offer-feature__media img {
    max-height: 20rem;
  }

  .offer-feature__body:has(> .offer-feature__media:not(.offer-feature__media--pair)) img {
    max-height: 15rem;
  }

  .offer-feature__media--pair img {
    max-height: 16rem;
  }

  .faq-item summary {
    padding: 0.9rem 2.5rem 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0.8rem 1rem 1rem;
  }
}

/* Signup / clinic intake form */
.signup-page {
  flex-grow: 1;
  padding: 6rem 1.5rem 3rem;
  width: 100%;
  min-width: 0;
  background: linear-gradient(180deg, #f4f6f8 0%, #eef1f4 100%);
}

.signup-page-inner {
  max-width: 640px;
  margin: 0 auto;
}

.signup-page-header {
  margin-bottom: 1.75rem;
}

.signup-page-header h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.signup-page-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #4a5568;
  font-weight: 400;
}

.signup-form {
  border: 1px solid rgba(30, 42, 56, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(30, 42, 56, 0.07);
  padding: 1.75rem 1.5rem 1.5rem;
}

.signup-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.signup-field {
  margin-bottom: 1rem;
}

.signup-form-grid .signup-field {
  margin-bottom: 0;
}

.signup-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.signup-field input:not([type="radio"]),
.signup-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(30, 42, 56, 0.22);
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.4;
  color: #2c3540;
  background: #fafbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.signup-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  min-width: 0;
}

.signup-field-legend {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  padding: 0;
  letter-spacing: 0.01em;
}

.signup-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.signup-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 400;
  color: #2c3540;
  cursor: pointer;
}

.signup-radio input {
  width: auto;
  min-width: 0;
  margin: 0;
  accent-color: var(--accent);
}

.signup-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.signup-field textarea.signup-textarea-compact {
  min-height: 4.75rem;
}

.signup-field input:not([type="radio"])::placeholder,
.signup-field textarea::placeholder {
  color: #8b95a3;
  font-weight: 400;
}

.signup-field input:not([type="radio"]):hover,
.signup-field textarea:hover {
  border-color: rgba(30, 42, 56, 0.32);
}

.signup-field input:not([type="radio"]):focus,
.signup-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.signup-radio input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

.signup-field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b7280;
  font-weight: 400;
}

.signup-form-actions {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(30, 42, 56, 0.1);
}

.signup-submit {
  padding: 0.7rem 1.35rem;
  font-size: 15px;
  border-radius: 8px;
}

.form-snackbar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  z-index: 2000;
  max-width: min(92vw, 480px);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 24px rgba(30, 42, 56, 0.22);
  transform: translate(-50%, -0.75rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  pointer-events: none;
}

.form-snackbar.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  .signup-form-grid {
    grid-template-columns: 1fr;
  }

  .signup-form-grid .signup-field {
    margin-bottom: 1rem;
  }

  .signup-form-grid .signup-field:last-child {
    margin-bottom: 0;
  }

  .signup-page-header h1 {
    font-size: 1.65rem;
  }

  .signup-form {
    padding: 1.35rem 1.1rem 1.2rem;
  }
}