:root {
  --blue-deep: #05345f;
  --blue: #365e94;
  --blue-light: #5bc5f2;
  --orange: #ec6608;
  --green: #53a786;
  --green-deep: #006a4e;
  --grey: #748995;
  --ink: #172231;
  --muted: #5d6b7a;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --line: #dbe5ed;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --success: #0f6b49;
  --success-bg: #eaf7f1;
  --shadow: 0 18px 45px rgba(5, 52, 95, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(91, 197, 242, 0.22), transparent 34rem),
    linear-gradient(180deg, #eef6fb 0%, #ffffff 42%, #f7fafc 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  padding: 0.75rem 1rem;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 24px 0 20px;
}

.brand-bar,
.brand,
.header-tools,
.actions,
.action-card,
.manual-kit-row {
  display: flex;
  align-items: center;
}

.brand-bar {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 34px;
}

.brand {
  gap: 0.7rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(220px, 46vw);
  height: auto;
}

.header-tools {
  justify-content: flex-end;
  gap: 1rem;
}

.project-label,
.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue-deep);
  font-size: 0.86rem;
  font-weight: 760;
}

.language-picker select {
  min-height: 38px;
  width: auto;
  padding: 0.4rem 2rem 0.4rem 0.7rem;
  border-radius: 999px;
}

.hero {
  min-height: 340px;
  border-radius: 36px;
  padding: clamp(2rem, 5vw, 4.5rem);
  background:
    linear-gradient(130deg, rgba(5, 52, 95, 0.94), rgba(54, 94, 148, 0.88)),
    radial-gradient(circle at 78% 24%, rgba(236, 102, 8, 0.35), transparent 20rem);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -4rem -8rem auto;
  width: 22rem;
  height: 22rem;
  border: 42px solid rgba(91, 197, 242, 0.24);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 740px;
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero .eyebrow {
  color: var(--blue-light);
}

main {
  display: grid;
  gap: 1.25rem;
  padding: 10px 0 44px;
}

.kit-card,
.form-shell,
.success-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.kit-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.kit-card h2,
.section-intro h2,
.success-card h2 {
  margin: 0.2rem 0 0.55rem;
  color: var(--blue-deep);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.kit-help,
.section-intro p,
.field-help,
.status-message {
  color: var(--muted);
}

.kit-details {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.kit-details div {
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 1rem;
}

.kit-details dt {
  color: var(--grey);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kit-details dd {
  margin: 0.35rem 0 0;
  color: var(--blue-deep);
  font-size: clamp(1.18rem, 4vw, 1.55rem);
  font-weight: 820;
  overflow-wrap: anywhere;
}

.manual-kit {
  grid-column: 1 / -1;
  border-radius: var(--radius-md);
  background: var(--danger-bg);
  padding: 1rem;
}

.manual-kit-row {
  gap: 0.75rem;
  margin-top: 0.45rem;
}

.actions {
  align-items: stretch;
  gap: 1rem;
}

.action-card {
  flex: 1;
  gap: 0.9rem;
  min-height: 92px;
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  box-shadow: 0 12px 28px rgba(5, 52, 95, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.action-card:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(5, 52, 95, 0.14);
}

.resource-action:disabled {
  border-radius: var(--radius-md);
  cursor: default;
  font-weight: inherit;
  opacity: 1;
}

.primary-action {
  background: var(--blue-deep);
  color: #fff;
}

.action-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(91, 197, 242, 0.18);
  color: var(--blue-deep);
  font-size: 1.2rem;
  font-weight: 900;
}

.primary-action .action-icon {
  background: var(--orange);
  color: #fff;
}

.action-card strong,
.action-card small {
  display: block;
}

.action-card small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.primary-action small {
  color: rgba(255, 255, 255, 0.78);
}

.form-shell {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.status-message {
  min-height: 0;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 650;
}

.status-message:not(:empty) {
  padding: 0.85rem 1rem;
  background: var(--surface-soft);
}

.status-message.is-error {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-message.is-success {
  background: var(--success-bg);
  color: var(--success);
}

form {
  display: grid;
  gap: 1.25rem;
}

fieldset {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 0;
}

legend {
  padding: 0 0.8rem 0 0;
  color: var(--blue-deep);
  font-size: 1.05rem;
  font-weight: 820;
}

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

.component-field {
  grid-column: 1 / -1;
}

.component-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.75rem;
}

.component-option {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 148px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem;
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.component-option img,
.component-option-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #edf7fa;
  object-fit: contain;
}

.component-option-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 850;
  background: linear-gradient(160deg, var(--blue), var(--blue-deep));
}

.component-option-placeholder.is-other {
  background: linear-gradient(160deg, var(--orange), #c24d06);
}

.component-option-label {
  font-size: 0.84rem;
  line-height: 1.25;
}

.component-option:hover {
  transform: translateY(-2px);
  border-color: var(--blue-light);
}

.component-option.is-selected,
.component-option[aria-selected="true"] {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(236, 102, 8, 0.18);
  background: #fff;
}

.component-picker.is-invalid {
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.component-picker.is-invalid .component-option {
  border-color: rgba(180, 35, 24, 0.35);
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field[hidden] {
  display: none;
}

.field span,
.consent span {
  color: var(--muted);
  font-weight: 500;
}

label {
  color: var(--ink);
  font-weight: 740;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 0.95rem;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
.component-option:focus-visible {
  outline: 3px solid rgba(91, 197, 242, 0.78);
  outline-offset: 3px;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

input[readonly] {
  background: var(--surface-soft);
  color: var(--blue-deep);
  cursor: default;
}

.field-help {
  margin: 0;
  font-size: 0.92rem;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 1rem;
}

.consent input {
  width: 20px;
  min-height: 20px;
  margin-top: 0.18rem;
}

button,
.submit-button,
.secondary-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 820;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.submit-button {
  justify-self: start;
  background: var(--orange);
  color: #fff;
  padding: 0.95rem 1.45rem;
}

.secondary-button {
  background: var(--blue-deep);
  color: #fff;
  padding: 0.85rem 1.1rem;
  white-space: nowrap;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success-card {
  display: grid;
  gap: 0.65rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--success-bg);
}

.success-card p {
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 24px 0 38px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue-deep);
  font-weight: 760;
}

@media (max-width: 820px) {
  .brand-bar,
  .header-tools,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    border-radius: 28px;
  }

  .kit-card,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 20px, 1120px);
  }

  .hero {
    padding: 1.3rem;
  }

  .manual-kit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .component-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-button,
  .secondary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
