:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --ink: #17202a;
  --muted: #5a6675;
  --line: #dbe2ea;
  --panel: #ffffff;
  --accent: #0b6bcb;
  --accent-strong: #084f97;
  --success: #0c7a43;
  --error: #b42318;
  --shadow: 0 22px 70px rgba(22, 36, 58, 0.12);
}

* {
  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:
    linear-gradient(120deg, rgba(11, 107, 203, 0.08), transparent 42%),
    var(--bg);
  color: var(--ink);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}

.intro {
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.notice {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 32px rgba(22, 36, 58, 0.06);
}

.notice span {
  color: var(--muted);
  line-height: 1.65;
}

.notice .notice-warning {
  color: var(--accent);
  font-weight: 800;
}

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.45;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.14);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.checkbox-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  min-height: 46px;
  padding: 0 22px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

button:hover {
  background: var(--accent-strong);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--error);
}

.hidden-field,
.submission-frame {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 840px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    padding: 32px 0;
  }

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

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .actions,
  button {
    width: 100%;
  }

  .status {
    width: 100%;
  }
}
