:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --ink: #172026;
  --muted: #5e6b73;
  --primary: #0f766e;
  --primary-dark: #0b5f59;
  --accent: #f2c94c;
  --panel: #ffffff;
  --line: #dfe5e8;
  --shadow: 0 24px 80px rgba(18, 31, 38, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 201, 76, 0.30), transparent 26rem),
    linear-gradient(135deg, #f6f7f9 0%, #e7f4f1 52%, #fff8dd 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

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

.registration-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.registration-layout .page {
  min-height: 0;
  flex: 1;
}

.registration-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(246, 247, 249, 0.9);
  backdrop-filter: blur(16px);
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-link {
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.top-link:hover {
  color: var(--primary);
}

.shell-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.top-note {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  justify-self: center;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switcher::before {
  content: '';
  position: absolute;
  left: 12px;
  width: 28px;
  height: 18px;
  border-radius: 4px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  pointer-events: none;
}

.language-switcher select {
  min-width: 140px;
  padding: 10px 12px 10px 46px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  font-family: "Segoe UI Emoji", "Segoe UI Symbol", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  outline: none;
  position: relative;
  z-index: 1;
}

.language-switcher.lang-es::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200'%3E%3Crect width='300' height='200' fill='%23C60B1E'/%3E%3Crect y='50' width='300' height='100' fill='%23FFC400'/%3E%3C/svg%3E");
}

.language-switcher.lang-va::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23FFDA44'/%3E%3Crect width='60' height='6' y='0' fill='%23D00'/%3E%3Crect width='60' height='6' y='12' fill='%23D00'/%3E%3Crect width='60' height='6' y='24' fill='%23D00'/%3E%3Crect width='12' height='30' fill='%23007'/%3E%3C/svg%3E");
}

.language-switcher.lang-en::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23003'/%3E%3Cpath d='M0 0L60 30M60 0L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0L60 30M60 0L0 30' stroke='%23c00' stroke-width='4'/%3E%3Cpath d='M30 0V30M0 15H60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0V30M0 15H60' stroke='%23c00' stroke-width='6'/%3E%3C/svg%3E");
}

.language-switcher select:focus {
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
  padding: 32px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  padding: 8px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 22px 0 16px;
  max-width: 820px;
  font-size: clamp(2.45rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: #33424a;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.26);
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e0f2ef;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.shell {
  width: min(920px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 42px);
}

.form-note {
  padding: 14px;
  border-radius: 8px;
  background: #fff7d6;
  color: #604c0c;
  line-height: 1.45;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 850;
}

.panel-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f2ef;
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff2b8;
  color: #66510b;
  font-weight: 900;
}

.step strong {
  display: block;
  margin-bottom: 3px;
}

.step span {
  color: var(--muted);
  line-height: 1.45;
}

.trust {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trust-item {
  min-height: 76px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  color: #244047;
  font-size: 0.92rem;
  line-height: 1.35;
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.registration-footer {
  width: 100%;
  margin-top: auto;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #173b37;
  font-size: 0.9rem;
}

.registration-footer__inner {
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.registration-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.registration-footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.registration-footer a:hover {
  color: #ffffff;
}

.payment-info {
  margin-top: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.payment-info h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--ink);
}

.payment-info ol {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.payment-info li + li {
  margin-top: 8px;
}

.payment-info-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7d6;
  color: #604c0c;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .top-note {
    text-align: left;
    justify-self: start;
  }

  .top-actions {
    justify-self: start;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .trust {
    grid-template-columns: 1fr;
  }

  .registration-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .shell-header {
    grid-template-columns: 1fr;
  }

  .actions,
  .button {
    width: 100%;
  }

  .hero-panel {
    padding: 16px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
