:root {
  --primary: #130c4b;
  --error: #d92402;
  --gray: #959595;
  --yellow: #ff9902;
  --surface: #ffffff;
  --background: #f6f7fb;
  --border: #dfe2eb;
  --text: #23233a;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 18rem;
  background: var(--primary);
  z-index: -1;
}
.site-header {
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-content,
.page-shell,
.site-footer {
  width: min(100% - 2rem, 940px);
  margin: auto;
}
.header-content {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: var(--surface);
}
.header-logo {
  display: block;
  width: 8rem;
  height: 2.5rem;
  object-fit: contain;
}
.header-logo-link {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  border-radius: 0.25rem;
}
.header-logo-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}
.logo-softpymes {
  object-position: left center;
}
.logo-express {
  object-position: right center;
}
.page-shell {
  padding: 3.8rem 0 4rem;
}
.intro {
  max-width: 90%;
  margin-bottom: 2rem;
  color: white;
}
.eyebrow {
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin: 0.65rem 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.intro p {
  margin-bottom: 0;
  color: #d8d7e6;
  font-size: 1rem;
  line-height: 1.6;
}
.registration-form {
  background: var(--surface);
  border-radius: 0.55rem;
  box-shadow: 0 1.5rem 3.5rem rgba(19, 12, 75, 0.13);
}
.form-section {
  padding: 2rem;
}
.form-section + .form-section {
  border-top: 1px solid var(--border);
}
.section-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.section-number {
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
h2 {
  margin-bottom: 0.3rem;
  color: var(--primary);
  font-size: 1.25rem;
}
.section-heading p {
  margin-bottom: 0;
  color: var(--gray);
  font-size: 0.88rem;
}
fieldset {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}
legend,
label {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}
legend {
  margin-bottom: 0.7rem;
}
legend span,
label span,
.required-note span {
  color: var(--error);
}
.entity-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.choice-card {
  position: relative;
  display: block;
  height: 3rem;
  padding: 0.25rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.choice-card:hover {
  border-color: var(--yellow);
}
.choice-card:has(input:checked) {
  border-color: var(--primary);
  background: #f3f2fb;
  box-shadow: inset 0 0 0 1px var(--primary);
}
.choice-card input {
  position: absolute;
  opacity: 0;
}
.choice-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 0.3rem;
  padding-left: 1.7rem;
  position: relative;
}
.choice-content::before {
  content: "";
  position: absolute;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--gray);
  border-radius: 50%;
}
.choice-card:has(input:checked) .choice-content::before {
  border: 0.22rem solid var(--primary);
}
.choice-content small {
  color: var(--gray);
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  margin-bottom: 0.5rem;
}
.address-grid {
  margin-top: 1.25rem;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.field-group small {
  color: var(--gray);
  font-size: 0.7rem;
  font-style: italic;
  text-align: end;
}
.location-combobox {
  position: relative;
}
.location-options {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  left: 0;
  z-index: 5;
  display: none;
  max-height: 10rem;
  overflow-y: auto;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 0.35rem;
  box-shadow: 0 0.5rem 1rem rgba(19, 12, 75, 0.16);
}
.location-options.is-visible {
  display: flex;
  flex-direction: column;
}
.location-option {
  flex: 0 0 auto;
  padding: 0.55rem 0.7rem;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 0.2rem;
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}
.location-option:hover,
.location-option:focus-visible {
  color: var(--primary);
  background: #fff0d6;
  outline: none;
}
.location-options::-webkit-scrollbar {
  width: 0.4rem;
}
.location-options::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 1rem;
}
.field-span-2 {
  grid-column: span 2;
}
input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.9rem;
  color: var(--text);
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  outline: none;
  font: inherit;
  font-size: 0.85rem;
  text-align: right;
  text-transform: uppercase;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 12, 75, 0.1);
}
input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}
input:disabled {
  display: block;
}
.is-hidden {
  display: none;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem 2rem;
}
.required-note {
  margin: 0;
  color: var(--gray);
  font-size: 0.75rem;
}
button,
.payment-link {
  font: inherit;
  cursor: pointer;
}
.submit-button {
  position: relative;
  min-width: 220px;
  min-height: 2.5rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 0.35rem;
  color: white;
  background: var(--primary);
  font-weight: 800;
  transition:
    background 0.2s,
    transform 0.2s;
}
.submit-button:hover:not(:disabled),
.modal-action:hover {
  background: var(--yellow);
  color: var(--primary);
}
.submit-button:active:not(:disabled) {
  transform: translateY(1px);
}
.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.button-loader {
  display: none;
  width: 1rem;
  height: 1rem;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.is-loading .button-label {
  display: none;
}
.is-loading .button-loader {
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.site-footer {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  color: var(--gray);
  background: var(--surface);
  font-size: 0.75rem;
  text-align: center;
}
.site-footer a {
  color: var(--primary);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--yellow);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 8, 39, 0.6);
  z-index: 10;
}
.modal-backdrop[hidden] {
  display: none;
}
.status-modal {
  position: relative;
  width: min(100%, 450px);
  padding: 2.25rem 2rem 2rem;
  text-align: center;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.25);
}
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: 0;
  color: var(--gray);
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
}
.modal-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 800;
}
.modal-icon.success {
  color: #17653a;
  background: #e0f4e9;
}
.modal-icon.error {
  color: var(--error);
  background: #fde7e3;
}
.status-modal h2 {
  font-size: 1.45rem;
}
.status-modal p {
  color: var(--gray);
  line-height: 1.6;
}
.payment-link {
  display: inline-block;
  margin: 0.25rem 0 1.25rem;
  color: var(--primary);
  font-weight: 800;
}
.payment-link[hidden],
.payment-link.is-hidden {
  display: none !important;
}
.modal-action {
  min-width: 130px;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 0.3rem;
  color: white;
  background: var(--primary);
  font-weight: 800;
}

@media (max-width: 620px) {
  .site-header {
    padding: 0.75rem 0.625rem;
  }
  .header-content,
  .page-shell,
  .site-footer {
    width: min(100% - 1.25rem, 940px);
  }
  .header-logo {
    width: 8rem;
    height: 3rem;
  }
  .page-shell {
    padding-top: 3rem;
  }
  .form-section,
  .form-actions {
    padding: 1.35rem;
  }
  .entity-options,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-span-2 {
    grid-column: auto;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .submit-button {
    width: 100%;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
