:root {
  --red: #ed3b67;      /* sampled from the Rask Dev logo */
  --ink: #111111;
  --muted: #55504b;
  --paper: #f3efea;
  --line: #111111;
  --error: #b3123c;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 38fr) 62fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 5vw, 64px);
  padding-right: 0;
  max-width: 1500px;
  margin: 0 auto;
}

/* ---------- Brand panel ---------- */
.brand {
  position: relative;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.brand__mark {
  width: min(46%, 230px);
  height: auto;
}

.brand__name {
  position: absolute;
  left: 28px;
  bottom: 22px;
  margin: 0;
  color: #fff;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Content ---------- */
.content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.title {
  margin: 0 0 clamp(28px, 4vw, 52px);
  font-weight: 600;
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.card {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 4.5vw, 60px) clamp(28px, 4.5vw, 56px);
  border: 2px solid var(--line);
  border-right: 0;
  border-bottom: 0;
}

/* ---------- Form ---------- */
.form { max-width: 380px; }

.field {
  display: block;
  margin-bottom: 34px;
}

.field__label {
  display: block;
  font-weight: 400;
  font-size: 18px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.field textarea {
  resize: none;
  overflow: hidden;
  min-height: 42px;
  max-height: 240px;
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--red); }

.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: var(--error); }

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

.button {
  display: inline-block;
  width: 100%;
  max-width: 240px;
  margin-top: 14px;
  padding: 13px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover,
.button:focus-visible { background: var(--red); }

.button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.button[disabled] {
  background: var(--muted);
  cursor: default;
}

.status {
  min-height: 1.4em;
  margin: 18px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.status.is-error { color: var(--error); }
.status.is-success { color: var(--ink); font-weight: 400; }

/* ---------- Info column ---------- */
.info__block { margin-bottom: 44px; }

.info h2 {
  margin: 0 0 6px;
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.01em;
}

.info p {
  margin: 0;
  color: var(--muted);
}

.footer {
  padding: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 32px;
  }

  .brand { min-height: 240px; }
  .brand__mark { width: 110px; }

  .card {
    grid-template-columns: 1fr;
    border: 2px solid var(--line);
    padding: 28px 22px;
  }

  .form { max-width: none; }
  .button { max-width: none; }
  .info { display: flex; gap: 40px; flex-wrap: wrap; }
  .info__block { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
