:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #172238;
  background: #f4f6f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f4f6f8;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  background: #ffffff;
  border-bottom: 1px solid #dfe4ea;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  display: block;
}

.brand span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  color: #677386;
  font-size: 13px;
}

.service-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3a4658;
  font-size: 13px;
}

.service-state span {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #14855f;
  box-shadow: 0 0 0 3px #dcefe8;
}

main {
  min-height: calc(100vh - 128px);
}

.intro {
  color: #ffffff;
  background: #172238;
  border-bottom: 4px solid #f0a31b;
}

.intro-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 46px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #f0a31b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.intro p:last-child {
  max-width: 600px;
  margin: 14px 0 0;
  color: #c9d0da;
  font-size: 16px;
  line-height: 1.55;
}

.workspace {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  background: #ffffff;
  border-left: 1px solid #dfe4ea;
  border-right: 1px solid #dfe4ea;
  border-bottom: 1px solid #dfe4ea;
}

form {
  min-width: 0;
  padding: 34px 38px 40px;
}

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

label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: #354154;
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bdc6d2;
  border-radius: 6px;
  background: #ffffff;
  color: #172238;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input,
select {
  min-height: 44px;
  padding: 9px 11px;
}

textarea {
  min-height: 144px;
  resize: vertical;
  padding: 11px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2767b1;
  box-shadow: 0 0 0 3px #dce9f7;
}

[aria-invalid="true"] {
  border-color: #b42318;
}

.message-field {
  margin-top: 22px;
}

.message-meta {
  display: flex;
  min-height: 18px;
  justify-content: space-between;
  gap: 16px;
  color: #7a8492;
  font-weight: 400;
}

.field-error {
  min-height: 16px;
  color: #b42318;
  font-size: 12px;
  font-weight: 400;
}

.website-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.form-error {
  margin-top: 18px;
  padding: 11px 13px;
  border-left: 3px solid #b42318;
  background: #fff1f0;
  color: #9b2118;
  font-size: 13px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.form-actions button,
.success button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  background: #2767b1;
  color: #ffffff;
  font-weight: 700;
}

.form-actions button:hover,
.success button:hover {
  background: #1f5798;
}

.form-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-actions p {
  margin: 0;
  color: #737e8e;
  font-size: 12px;
  line-height: 1.4;
}

aside {
  padding: 34px 28px;
  background: #eef1f4;
  border-left: 1px solid #dfe4ea;
}

.aside-section + .aside-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #d5dbe3;
}

.aside-number {
  color: #2767b1;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

aside h2 {
  margin: 8px 0 6px;
  font-size: 15px;
}

aside p {
  margin: 0;
  color: #667284;
  font-size: 13px;
  line-height: 1.55;
}

.availability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding: 14px 0 0;
  border-top: 1px solid #d5dbe3;
  color: #647083;
  font-size: 12px;
}

.availability strong {
  color: #147252;
}

.success {
  width: min(720px, calc(100% - 48px));
  margin: 56px auto;
  padding: 44px 0;
  text-align: center;
}

.success-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #dcefe8;
  color: #147252;
  font-size: 13px;
  font-weight: 800;
}

.success h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.success > p:not(.eyebrow) {
  color: #667284;
}

.success button {
  margin-top: 12px;
}

footer {
  width: min(1180px, calc(100% - 48px));
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  color: #737e8e;
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 780px) {
  .site-header {
    padding-inline: 20px;
  }

  .service-state {
    max-width: 150px;
    justify-content: flex-end;
    text-align: right;
  }

  .intro-inner,
  .workspace,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .intro-inner {
    padding: 34px 0 38px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  form {
    padding: 28px 22px 32px;
  }

  aside {
    border-top: 1px solid #dfe4ea;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
