/* BMC feedback page, styled to match bellmunro.com */

@font-face {
  font-family: "DM Serif Display";
  src: url("/fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PT Serif";
  src: url("/fonts/pt-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PT Serif";
  src: url("/fonts/pt-serif-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --charcoal: #2b2c32;
  --charcoal-hover: #44454d;
  --ink: #1d1e20;
  --muted: #5e5f66;
  --grey: #f1f1f1;
  --line: #d6d6d9;
  --white: #ffffff;
  --display: "DM Serif Display", Georgia, serif;
  --serif: "PT Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grey);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a[href^="tel:"],
a[href^="mailto:"] {
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--ink);
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header: same bar as the website */

.site-header {
  background: var(--charcoal);
  color: var(--white);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
}

.site-header .logo img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  text-align: center;
}

/* Main section */

main {
  flex: 1;
}

.section {
  padding: 48px 0 64px;
}

.column {
  max-width: 600px;
  margin: 0 auto;
}


p {
  margin: 0 0 16px;
}

.muted {
  color: var(--muted);
}

.rest > .small {
  margin: 4px 0 24px;
}

.small {
  font-size: 0.9375rem;
}

/* Form */

form {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  width: 100%;
  padding: 0;
}

.option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0 14px;
  margin: 0 0 10px;
  padding: 16px 18px;
  background: var(--white);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s;
}

.option:hover {
  border-color: var(--line);
}

.option:has(input:checked) {
  border-color: var(--charcoal);
}

.option input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--charcoal);
}

.option-label {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
}

.option-hint {
  grid-column: 2;
  font-size: 0.9375rem;
  color: var(--muted);
}

.rest {
  margin-top: 36px;
}

.intro-line {
  margin: 0 0 16px;
  font-size: 1.0625rem;
}

.field {
  margin: 0 0 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
}

.optional {
  color: var(--muted);
}

.hint {
  display: block;
  margin: -4px 0 8px;
  font-size: 0.9375rem;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zooming in on focus */
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: 2px solid var(--charcoal);
  outline-offset: 0;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0 12px;
  margin: 0 0 20px;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--charcoal);
}

.check label {
  margin: 0;
}

.check .hint {
  grid-column: 2;
  margin: 2px 0 0;
}

/* Hidden from people, visible to bots that fill in every field */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions {
  margin-top: 8px;
  text-align: center;
}

.button {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.2;
  color: #f1f1f1;
  background: var(--charcoal);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s;
}

.button:hover {
  background: var(--charcoal-hover);
  color: #f1f1f1;
}

.after-form {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

.after-form p {
  margin-bottom: 8px;
}

/* Result pages */

.result {
  text-align: center;
}

.spaced {
  margin-top: 28px;
}

.result .promise {
  font-size: 1.125rem;
  font-weight: 700;
}

.their-message {
  margin: 0 0 28px;
  padding: 16px 18px;
  background: var(--white);
  white-space: pre-wrap;
  text-align: left;
  color: var(--muted);
}

/* Footer: same layout as the website */

.site-footer {
  background: var(--grey);
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 36px;
}

.footer-name {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.footer-links a {
  white-space: nowrap;
}

.footer-links {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}


/*
  Show only what fits the visitor's choice. Browsers without :has
  (or with the stylesheet blocked) see every field with neutral wording.
*/
@supports selector(:has(*)) {
  .rest,
  .for-well,
  .for-sorting,
  .for-other,
  .for-waiting {
    display: none;
  }

  form:has(#type-sorting:checked):has(#waiting:checked) .for-waiting {
    display: block;
  }

  form:has(#type-sorting:checked):has(#waiting:checked) span.for-waiting {
    display: inline;
  }

  form:has(#type-sorting:checked) .check.for-sorting {
    display: grid;
  }

  form:has([name="type"]:checked) .rest,
  form:has(#type-well:checked) .for-well,
  form:has(#type-sorting:checked) .for-sorting,
  form:has(#type-other:checked) .for-other {
    display: block;
  }

  form:has(#type-well:checked) .check.for-well,
  form:has(#type-other:checked) .check.for-other {
    display: grid;
  }

  form:has(#type-well:checked) span.for-well,
  form:has(#type-sorting:checked) span.for-sorting {
    display: inline;
  }

  form:has(#type-well:checked) .for-neutral,
  form:has(#type-sorting:checked) .for-neutral {
    display: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header .wrap {
    min-height: 72px;
  }

  .site-header .logo img {
    width: 180px;
  }

  .section {
    padding: 32px 0 48px;
  }

  h1 {
    margin-bottom: 20px;
  }

  .option {
    padding: 14px 16px;
  }

  .rest {
    margin-top: 28px;
  }

  .button {
    width: 100%;
  }

  .after-form {
    margin-top: 32px;
  }
}
