:root {
  color-scheme: light;
  --bg: #f5f7f7;
  --surface: #ffffff;
  --ink: #00293a;
  --muted: #61788a;
  --line: #d7e0e6;
  --field: #ffffff;
  --accent: #005870;
  --accent-dark: #00293a;
  --accent-soft: #e5f1f4;
  --secondary: #6b7f92;
  --warning: #d87927;
  --error: #ab1f26;
  --focus: #6b7f92;
  --cream: #efe6be;
  font-family:
    "Proxima Nova", "ProximaNova", "Proxima Nova Alt", "Helvetica Neue",
    Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 247, 0.98)),
    var(--bg);
  color: var(--ink);
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, auto) minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--line);
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-title {
  min-width: 0;
  text-align: center;
}

.basecamp-lockup {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 220px;
  max-width: 100%;
}

.brand-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}

.basecamp-logo {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
}

.integration-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 3rem;
  line-height: 1;
  font-weight: 850;
}

h2 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.request-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 24px;
  box-shadow: 0 18px 55px rgba(0, 41, 58, 0.09);
}

.form-section {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.section-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.94rem;
}

.step-marker {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #ffffff;
  font-weight: 800;
}

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

label {
  display: grid;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 750;
}

label.wide,
.single-field,
.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7d3dc;
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 12px 13px;
  min-height: 46px;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(79, 143, 189, 0.18);
}

::placeholder {
  color: #8b9caa;
}

.access-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.radio-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.radio-options.single-column {
  grid-template-columns: 1fr;
}

.grouped-control {
  display: grid;
  gap: 9px;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 750;
}

.option-tile {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 74px;
  border: 1px solid #c7d3dc;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  cursor: pointer;
}

.option-tile:has(input:checked) {
  border-color: #005870;
  background: var(--accent-soft);
}

.option-tile input,
.confirmation input,
.checkbox-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.option-tile strong,
.option-tile small {
  display: block;
}

.option-tile small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 600;
}

.branch-section {
  background: #f8fbfc;
}

.checkbox-line {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--muted);
  font-weight: 750;
}

.confirmation-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
}

.confirmation {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.policy-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 121, 39, 0.35);
  border-radius: 12px;
  background: rgba(239, 230, 190, 0.45);
  color: var(--ink);
}

.policy-note strong {
  color: var(--accent-dark);
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  padding: 0 22px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

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

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

.form-message {
  min-height: 0;
  padding: 0 28px 28px;
  color: var(--muted);
  font-weight: 700;
}

.form-message.error {
  color: var(--error);
}

.form-message.success {
  color: var(--accent-dark);
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 22px, 1040px);
    padding-top: 18px;
  }

  .page-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand basecamp"
      "title title";
    align-items: center;
    gap: 16px;
  }

  .confirmation-section {
    align-items: stretch;
    flex-direction: column;
  }

  .header-brand {
    grid-area: brand;
  }

  .header-title {
    grid-area: title;
    text-align: left;
  }

  .basecamp-lockup {
    grid-area: basecamp;
    width: 90px;
  }

  .basecamp-logo {
    width: 90px;
  }

  .brand-logo {
    width: min(250px, 58vw);
    max-width: none;
  }

  h1 {
    font-size: 2.25rem;
  }

  .form-section,
  .confirmation-section {
    padding: 22px 18px;
  }

  .field-grid,
  .access-options,
  .radio-options {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
