:root {
  --orange: #f26a21;
  --orange-dark: #dd5712;
  --orange-soft: #fff0e7;
  --page: #fff8f3;
  --text: #35271f;
  --muted: #75665d;
  --border: #e9ded7;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
label,
input[type="radio"],
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  padding: 24px 16px;
}

.registration-card {
  display: grid;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 32px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(116, 54, 17, 0.13);
}

.visual-panel {
  position: relative;
  aspect-ratio: 16 / 27;
  overflow: hidden;
  color: var(--white);
}

.visual-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.04) 45%, rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.visual-copy {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.visual-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.visual-copy h1 {
  max-width: 360px;
  margin: 20px 0 0;
  font-size: clamp(36px, 8vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.form-panel {
  display: flex;
  align-items: center;
  padding: 24px;
}

#registration-form {
  width: 100%;
}

.form-heading {
  margin-bottom: 32px;
}

.form-heading p {
  margin: 0;
  color: #e95f18;
  font-size: 14px;
  font-weight: 600;
}

.form-heading h2,
.success-state h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.fields-grid {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.choice-group legend {
  font-size: 14px;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--white);
  color: var(--text);
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input::placeholder {
  color: #a7968c;
}

.field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.14);
}

.choice-group {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 48px;
  cursor: pointer;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.choice-card:hover {
  border-color: #f6a474;
}

.choice-card:has(input:checked) {
  border-color: var(--orange);
  background: var(--page);
}

.choice-card input {
  width: 16px;
  height: 16px;
  margin: 0 10px 0 0;
  accent-color: var(--orange);
}

.choice-card span {
  font-size: 14px;
  font-weight: 400;
}

.company-field {
  margin-top: 20px;
  animation: reveal 180ms ease-out;
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  border: 1px solid #eadfd8;
  border-radius: 12px;
  background: #fffaf7;
  padding: 16px;
}

.consent-box input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

.consent-box label {
  cursor: pointer;
  color: #5f5149;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.form-error {
  margin: 20px 0 0;
  border-radius: 12px;
  background: var(--orange-soft);
  color: #a83a08;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.45;
}

.submit-button,
.secondary-button {
  min-height: 48px;
  border-radius: 12px;
  padding: 0 24px;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.submit-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  border: 0;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(242, 106, 33, 0.22);
  cursor: pointer;
}

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

.submit-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(242, 106, 33, 0.28);
  outline-offset: 2px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.success-state {
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  padding: 48px 0;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: #e95f18;
  font-size: 34px;
  font-weight: 700;
}

.success-state h2 {
  margin-top: 24px;
  font-size: 30px;
}

.success-state p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.secondary-button {
  margin-top: 32px;
  border: 1px solid #f3c7ae;
  background: var(--white);
  color: #d95613;
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .page-shell {
    padding: 40px 24px;
  }

  .visual-copy {
    padding: 40px;
  }

  .form-panel {
    padding: 40px;
  }

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

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

@media (min-width: 1024px) {
  .page-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
  }

  .registration-card {
    min-height: 690px;
    grid-template-columns: 0.78fr 1.22fr;
  }

  .visual-panel {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .visual-copy {
    padding: 48px;
  }

  .form-panel {
    padding: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
