/* Onboarding form page styles. */

.sheet {
  max-width: 1000px;
}

.banner {
  position: relative;
  height: 300px;
  background-image: var(--banner-image, linear-gradient(
    100deg,
    #2c3e56 0%, #4a6785 16%, #8fa4bd 30%, #dfe6ee 46%,
    #f2f1ee 60%, #cbd5df 76%, #4c5765 92%, #2a3340 100%
  ));
  background-size: cover;
  background-position: center;
}

.banner-panel {
  position: absolute;
  left: 8%;
  right: 20%;
  top: 38px;
  bottom: -60px;
  background: rgba(38, 48, 63, 0.94);
  color: #fff;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-panel h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.banner-panel .lead {
  font-size: 15px;
  font-weight: 600;
  margin-top: 56px;
}

.banner-panel .blurb {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
}

.section-bar {
  margin-top: 76px;
  background: #f3f2f1;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  padding: 14px 40px;
}

.body {
  padding: 60px 72px 72px;
}

ol.questions {
  list-style: decimal;
  padding-left: 26px;
}

ol.questions > li {
  margin-bottom: 56px;
}

ol.questions > li::marker {
  font-size: 17px;
  color: var(--ink);
}

.q-title {
  font-size: 17px;
  font-weight: 400;
}

.q-title .req {
  color: var(--required);
  margin-left: 2px;
}

.q-desc {
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 6px;
}

.q-body {
  margin-top: 26px;
}

input[type="text"],
input[type="email"],
textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  padding: 12px 14px;
  background: var(--fill);
  border: 1px solid transparent;
  border-radius: 2px;
  outline: none;
  resize: vertical;
  transition: background 0.15s ease, border-color 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  background: #fff;
  border-color: #c8c6c4;
  border-bottom: 2px solid var(--accent);
}

input[type="text"]:invalid:not(:placeholder-shown),
input[type="email"]:invalid:not(:placeholder-shown) {
  border-bottom: 2px solid var(--required);
}

textarea {
  min-height: 78px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  margin-bottom: 16px;
  cursor: pointer;
}

.choice input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--muted);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.choice input[type="checkbox"] {
  border-radius: 2px;
}

.choice input[type="radio"] {
  border-radius: 50%;
}

.choice input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.choice input[type="checkbox"]:checked {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="none" stroke="white" stroke-width="2" d="M3 8.5 L6.5 12 L13 4.5"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.choice input[type="radio"]:checked {
  box-shadow: inset 0 0 0 4px #fff;
}

.choice input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#prod-note {
  font-size: 14px;
  line-height: 1.45;
  padding: 14px 16px;
  margin-bottom: 28px;
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-accent);
  color: var(--warn-ink);
  border-radius: 6px;
}

#result {
  margin-top: 32px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
}

#result.success {
  background: var(--success-bg);
  border-left: 3px solid #107c10;
  color: var(--success-ink);
}

#result.error {
  background: var(--error-bg);
  border-left: 3px solid var(--required);
  color: var(--error-ink);
}

#result .details {
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
  margin-top: 12px;
  color: var(--ink);
}

@media (max-width: 700px) {
  .banner {
    height: 240px;
  }

  .banner-panel {
    left: 4%;
    right: 4%;
    padding: 28px 22px;
  }

  .banner-panel h1 {
    font-size: 24px;
  }

  .banner-panel .lead {
    margin-top: 24px;
  }

  .section-bar {
    padding: 14px 20px;
  }

  .body {
    padding: 48px 24px 56px;
  }
}
