:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP",
    sans-serif;
  color: #263f39;
  background: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
[hidden],
html:is([data-intake-mode="live"], [data-intake-mode="paused"]) [data-preview-only],
html:not([data-intake-mode="paused"]) [data-paused-only],
html[data-intake-mode="paused"] :is(.inquiry-progress, #inquiry-form, #inquiry-review, #inquiry-result, #inquiry-feedback) {
  display: none !important;
}
.intake-paused-panel {
  padding: 24px;
  border: 1px solid #eadbbc;
  border-radius: 12px;
  background: #fff8eb;
  color: #5b4725;
  line-height: 1.9;
}
.intake-paused-panel p {
  margin: 0 0 16px;
  font-weight: 600;
}
.intake-paused-panel a {
  text-underline-offset: 4px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.intake-app {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
.preview-bar {
  padding: 10px 20px;
  background: #f1e7cc;
  color: #564321;
  text-align: center;
  font-size: 12px;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(8px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right)) 8px
    max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid #e1efe7;
}
.app-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #13866c;
}
.app-brand img {
  display: block;
  width: 28px;
  height: 28px;
}
.app-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  text-decoration: none;
  color: #586c65;
  font-size: 26px;
  font-weight: 300;
  border-radius: 8px;
}
.intake-panel {
  width: 100%;
  max-width: 568px;
  margin: 0 auto;
  padding: 28px 24px 16px;
  flex: 1;
  overflow-x: clip;
}
h1.app-title {
  font-size: 13px;
  font-weight: 500;
  color: #586c65;
  margin: 0 0 16px;
}
.inquiry-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.progress-track {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: #e1efe7;
  overflow: hidden;
}
#step-progress {
  width: calc(100% / 6);
  height: 100%;
  background: #263f39;
  border-radius: inherit;
  transition: width 0.26s;
}
#step-count {
  min-width: 32px;
  color: #586c65;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.intake-panel p {
  color: #586c65;
  font-size: 14px;
  line-height: 1.8;
  margin: 12px 0;
}
.intake-panel h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.5;
  margin: 0 0 24px;
}
.intake-panel h2:focus {
  outline: none;
}
.question-choices {
  display: grid;
  gap: 10px;
}
.choice-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  text-align: left;
  color: #263f39;
  background: #fff;
  border: 1px solid #b8d5c7;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.choice-button strong {
  font-weight: 500;
}
.choice-button > span[aria-hidden] {
  flex-shrink: 0;
  color: #13866c;
}
.choice-button[aria-pressed="true"] {
  border-color: #263f39;
  background: #eff9f5;
  box-shadow: inset 0 0 0 1px #263f39;
}
.symptom-choices [aria-pressed="false"] > span {
  visibility: hidden;
}
.choice-button:active,
.button:active {
  transform: scale(0.985);
}
@media (hover: hover) {
  .choice-button:hover {
    border-color: #263f39;
    background: #eff9f5;
  }
}
:is(button, input, textarea, summary, a):focus-visible {
  outline: 3px solid #13866c;
  outline-offset: 3px;
}
.intake-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.intake-field > span:not(.visually-hidden) {
  font-size: 13px;
  font-weight: 500;
}
.intake-field input,
.intake-field textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid #a7c8b9;
  border-radius: 8px;
  background: #fff;
  color: #263f39;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.6;
}
.intake-field textarea {
  min-height: 120px;
  resize: vertical;
}
.intake-field :is(input, textarea)::placeholder {
  color: #63776e;
  font-size: 14px;
}
.intake-field [aria-invalid="true"] {
  border-color: #b32929;
}
.intake-panel .field-error {
  color: #b32929;
  font-size: 13px;
}
.field-error:empty {
  display: none;
}
.company-details {
  margin: 12px 0 0;
}
.company-details summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 12px 0;
  color: #586c65;
  cursor: pointer;
  list-style: none;
}
.company-details summary::after {
  content: "+";
  font-size: 20px;
}
.company-details[open] summary::after {
  content: "−";
}
.company-details summary::-webkit-details-marker {
  display: none;
}
.company-details .intake-field {
  margin: 4px 0 12px;
}
.question-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: #263f39;
  color: #fff;
  border: 1px solid #263f39;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  transition: transform 0.15s;
}
.button:disabled {
  background: #edf0f4;
  color: #8a94a5;
  border-color: #edf0f4;
  cursor: not-allowed;
}
.back-button {
  display: block;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 0;
  color: #586c65;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.intake-panel .question-help {
  margin: 8px 0 16px;
  font-size: 11px;
}
#inquiry-summary {
  margin: 24px 0;
  border: 1px solid #d7e6df;
  border-radius: 8px;
  padding: 4px 16px;
}
#inquiry-summary dt {
  font-weight: 500;
  font-size: 12px;
  color: #586c65;
  padding-top: 12px;
}
#inquiry-summary dd {
  margin: 4px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1efe7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #263f39;
  font-size: 15px;
}
#inquiry-summary dd:last-child {
  border: 0;
}
.intake-bottom {
  margin-top: 24px;
}
.intake-bottom p {
  margin: 0;
  font-size: 11px;
}
.intake-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 4px 0;
  font-size: 12px;
  line-height: 1.85;
  cursor: pointer;
}
.intake-consent input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 1px 0 0;
  accent-color: #263f39;
}
.intake-consent a {
  text-underline-offset: 3px;
}
.intake-review-actions {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}
#inquiry-feedback {
  overflow-wrap: anywhere;
  padding: 12px 16px;
  background: #eff9f5;
  border-radius: 8px;
  font-size: 12px;
}
#inquiry-feedback:empty {
  display: none;
}
#inquiry-result {
  margin-top: 32px;
  overflow-wrap: anywhere;
}
#inquiry-result .button {
  margin-top: 24px;
}
#turnstile-container {
  margin: 16px 0;
  min-width: 0;
}
#turnstile-container:empty {
  display: none;
}
@media (min-width: 761px) {
  .app-header {
    padding-left: 32px;
    padding-right: 32px;
  }
  .intake-panel {
    padding-top: 40px;
  }
  .intake-panel h2 {
    font-size: 28px;
  }
}
@media (max-width: 359px) {
  .app-header {
    padding-left: 20px;
    padding-right: 20px;
  }
  .app-brand {
    font-size: 12px;
  }
  .intake-panel {
    padding-left: 20px;
    padding-right: 20px;
  }
  .intake-panel h2 {
    font-size: 22px;
  }
  .choice-button {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* The estimate uses the same colors as the landing page. */
#step-progress {
  background: #13866c;
}
.choice-button[aria-pressed="true"] {
  border-color: #13866c;
  box-shadow: inset 0 0 0 1px #13866c;
}
.intake-consent input {
  accent-color: #13866c;
}
.button {
  background: #cb4e13;
  border-color: #cb4e13;
  border-radius: 10px;
}
.button:not(:disabled):hover {
  background: #b5430f;
  border-color: #b5430f;
}

.manufacturer-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.manufacturer-choices .choice-button {
  overflow-wrap: anywhere;
}
.manufacturer-other {
  margin-top: 16px;
}

.contact-message {
  margin-top: 20px;
}

[data-step="applicant"] .intake-field + .intake-field {
  margin-top: 20px;
}

.postal-inputs {
  display: grid;
  grid-template-columns: auto minmax(0, 3fr) auto minmax(0, 4fr);
  align-items: center;
  gap: 12px;
}
.postal-inputs input {
  text-align: center;
}
.postal-field .field-error {
  color: #b42318;
  margin: 8px 0 0;
}
.postal-field .question-help:empty {
  display: none;
}
#return-address:disabled {
  background: #f1f5f4;
  color: #64748b;
  cursor: wait;
}
#postal-choice {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  font: inherit;
}

#unknown-mac-model {
  margin-top: 12px;
}

.intake-panel .input-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  padding: 10px 12px;
  border: 1px solid #f1dbab;
  border-radius: 8px;
  background: #fff9ec;
  color: #785218;
  font-size: 13px;
  line-height: 1.65;
}
.input-warning svg {
  flex: 0 0 18px;
  margin-top: 2px;
}
.input-warning + .question-actions {
  margin-top: 12px;
}
