/* Interactive forms and account tools. Layout variables come from globals.css. */

.request-form,
.receipt {
  min-width: 0;
  background: var(--mist, #f0efed);
  border-radius: var(--radius, 30px);
}

.request-form .form-heading {
  padding: 30px 32px 24px;
  border-bottom: 1px solid #d6d7d8;
}

.request-form .form-heading h2,
.receipt h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
}

.request-form .form-heading p,
.request-form .form-body > p {
  margin: 0;
}

.request-form .form-body {
  display: grid;
  gap: 22px;
  padding: 28px 32px 32px;
}

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

.request-form label:not(.checkbox) {
  display: block;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.request-form label > span:not(:last-child) {
  font-weight: 400;
}

.request-form input:not([type="checkbox"]),
.request-form select,
.request-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid #7b838a;
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #151a20);
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
}

.request-form select {
  padding-right: 30px;
}

.request-form textarea {
  min-height: 136px;
  resize: vertical;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
  color: #60676d;
  opacity: 1;
}

.request-form input:focus-visible,
.request-form select:focus-visible,
.request-form textarea:focus-visible,
.assessment-card input:focus-visible {
  outline: 3px solid var(--slate, #252e36);
  outline-offset: 3px;
}

.request-form .checkbox {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.request-form .checkbox input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--slate, #252e36);
}

.request-form .checkbox a,
.request-form .form-note a,
.support-layout p a,
.policy-layout article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.request-form .form-note,
.assessment-card .form-note {
  color: #4b5056;
  font-size: 14px;
  line-height: 1.5;
}

.request-form .form-error {
  padding: 12px 14px;
  border-left: 4px solid #a1231e;
  background: #fff;
  color: #7f1c17;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.request-form .form-body > .button {
  justify-self: start;
}

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

.request-form .honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  visibility: hidden;
  pointer-events: none;
}

.receipt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 36px 32px;
}

.receipt > p {
  margin: 0;
  overflow-wrap: anywhere;
}

.receipt-check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--slate, #252e36);
  color: #fff;
  font-size: 25px;
}

/* Support content and the signed-in customer's own request history. */

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  margin-top: 56px;
  margin-bottom: 56px;
}

.support-layout > *,
.assessment-layout > *,
.policy-layout > * {
  min-width: 0;
}

.support-call {
  display: grid;
  gap: 12px;
  padding: 28px 30px;
  margin-bottom: 36px;
  border-radius: var(--radius, 30px);
  background: var(--mist, #f0efed);
}

.support-call small {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.support-call > a {
  width: fit-content;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.support-call p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.support-layout > div > h2,
.request-history h2 {
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.2;
}

.support-layout .faq-list details {
  border-bottom: 1px solid #cdd0d3;
}

.support-layout .faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  min-height: 48px;
  padding: 17px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.support-layout .faq-list summary::-webkit-details-marker {
  display: none;
}

.support-layout .faq-list summary > span {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.support-layout .faq-list details[open] summary > span {
  transform: rotate(45deg);
}

.support-layout .faq-list details > p {
  margin: 0;
  padding: 0 30px 20px 0;
  font-size: 16px;
  line-height: 1.6;
}

.request-history {
  margin-top: 42px;
  scroll-margin-top: 140px;
}

.request-history > p {
  margin: 0 0 20px;
}

.request-history > ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.request-history > ul > li {
  padding: 20px 0;
  border-bottom: 1px solid #cdd0d3;
}

.request-history li > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.request-history li > div > span {
  flex-shrink: 0;
  color: var(--slate, #252e36);
  font-size: 14px;
  font-weight: 600;
}

.request-history li > small {
  display: block;
  margin: 8px 0;
  color: #4b5056;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.history-details summary {
  width: fit-content;
  min-height: 44px;
  padding: 10px 0;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.history-details p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Answer-based assessments; no visual simulation of a website scan. */

.assessment-workspace {
  margin-top: 32px;
  margin-bottom: 64px;
}

.assessment-workspace .breadcrumb {
  margin-bottom: 32px;
  font-size: 14px;
}

.assessment-layout {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 610px);
  justify-content: space-between;
  align-items: start;
  gap: 64px;
}

.assessment-layout aside > .eyebrow {
  margin: 0 0 16px;
  color: var(--slate, #252e36);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.assessment-layout aside h2 {
  margin: 0 0 24px;
  font-size: 44px;
  line-height: 1.1;
}

.assessment-layout aside > p:not(.eyebrow) {
  margin: 0 0 24px;
}

.assessment-steps {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.assessment-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #535b63;
  font-size: 16px;
}

.assessment-steps li > span {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #9ca4ab;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
}

.assessment-steps li.current {
  color: var(--ink, #151a20);
  font-weight: 600;
}

.assessment-steps li.current > span {
  border-color: var(--slate, #252e36);
  background: var(--slate, #252e36);
  color: #fff;
}

.assessment-card {
  min-width: 0;
  padding: 36px 36px 30px;
  border-radius: var(--radius, 30px);
  background: var(--mist, #f0efed);
}

.assessment-card h2 {
  margin: 24px 0;
  font-size: 32px;
  line-height: 1.2;
}

.assessment-card > .eyebrow {
  margin: 0 0 16px;
  color: var(--slate, #252e36);
  font-size: 13px;
  font-weight: 600;
}

.assessment-progress {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.assessment-card progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  appearance: none;
  background: #d2d5d8;
  color: var(--slate, #252e36);
}

.assessment-card progress::-webkit-progress-bar {
  border-radius: 4px;
  background: #d2d5d8;
}

.assessment-card progress::-webkit-progress-value {
  border-radius: 4px;
  background: var(--slate, #252e36);
}

.assessment-card progress::-moz-progress-bar {
  border-radius: 4px;
  background: var(--slate, #252e36);
}

.assessment-card fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.assessment-card .radio-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 16px 18px;
  border: 1px solid #7b838a;
  border-radius: 12px;
  background: #fff;
  font-size: 17px;
  line-height: 1.4;
  cursor: pointer;
}

.assessment-card .radio-option.selected {
  border-color: var(--slate, #252e36);
  background: #f7f5f3;
}

.assessment-card .radio-option input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--slate, #252e36);
}

.assessment-card .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.assessment-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.assessment-card button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.assessment-card > .form-note {
  margin: 24px 0 0;
}

.assessment-result {
  padding: 24px 0;
  border-bottom: 1px solid #cdd0d3;
}

.assessment-result h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.assessment-result p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.55;
}

.assessment-card > .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 28px;
}

.assessment-card .reset-link {
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--ink, #151a20);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Policies use a reading column with a separate section index. */

.policy-page {
  margin-top: 56px;
  margin-bottom: 64px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  justify-content: space-between;
  align-items: start;
  gap: 64px;
}

.policy-layout > nav {
  display: grid;
  gap: 3px;
}

.policy-layout > nav a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-layout article {
  max-width: 820px;
}

.policy-layout article > section {
  margin: 0 0 36px;
  scroll-margin-top: 140px;
}

.policy-layout article > section:last-child {
  margin-bottom: 0;
}

.policy-layout article h2 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.2;
}

.policy-layout article p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .support-layout {
    gap: 36px;
  }

  .assessment-layout {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 40px;
  }

  .policy-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
  }

  .request-form .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .support-layout,
  .assessment-layout,
  .policy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .assessment-card {
    width: 100%;
    box-sizing: border-box;
  }

  .assessment-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .policy-layout > nav {
    padding-bottom: 24px;
    border-bottom: 1px solid #cdd0d3;
  }

  .request-form .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .request-form .form-heading {
    padding: 26px 22px 22px;
  }

  .request-form .form-body {
    gap: 20px;
    padding: 24px 22px 28px;
  }

  .request-form .field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .request-form .form-heading h2,
  .receipt h2,
  .support-layout > div > h2,
  .request-history h2,
  .assessment-card h2,
  .policy-layout article h2 {
    font-size: 28px;
  }

  .receipt {
    padding: 28px 22px;
  }

  .support-layout,
  .policy-page {
    margin-top: 36px;
    margin-bottom: 40px;
  }

  .support-call {
    padding: 24px 22px;
    margin-bottom: 30px;
  }

  .support-call > a {
    font-size: 26px;
  }

  .request-history li > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .assessment-workspace {
    margin-top: 24px;
    margin-bottom: 40px;
  }

  .assessment-workspace .breadcrumb {
    margin-bottom: 24px;
  }

  .assessment-layout aside h2 {
    font-size: 38px;
  }

  .assessment-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .assessment-card {
    padding: 26px 22px;
  }

  .assessment-card .radio-option {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    padding: 15px 13px;
    font-size: 16px;
  }

  .assessment-bottom {
    flex-wrap: wrap;
    gap: 16px;
  }

  .assessment-result h3 {
    font-size: 24px;
  }

  .assessment-card > .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .policy-layout {
    gap: 30px;
  }

  .policy-layout article p {
    font-size: 17px;
    line-height: 1.6;
  }
}
