/* Full-page county rating form. Category rows follow the Rate My Professors
   school form: a required 1 to 5 scale, then a written review. */

.cf-page {
  background: #faf9f6;
  color: #111;
}

.cf-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.cf-crumbs {
  color: #626262;
  font-size: 13px;
  margin-bottom: 18px;
}

.cf-crumbs a {
  color: #111;
  font-weight: 650;
  text-decoration: none;
}

.cf-crumbs a:hover,
.cf-crumbs a:focus-visible {
  text-decoration: underline;
  text-decoration-color: #f2b8ab;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: none;
}

.cf-status a {
  color: #111;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #f2b8ab;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: none;
}

.cf-status a:hover {
  text-decoration-color: #e9a99a;
}

.cf-crumbs span {
  margin: 0 8px;
  color: #aaa;
}

.cf-card {
  background: transparent;
  border: 0;
  padding: 0;
}

.cf-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f3f1ec;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.cf-card h1,
.cf-write h2 {
  font-family: var(--fpa-app-font-sans, Inter, Arial, sans-serif);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  font-weight: 750;
  margin: 0 0 8px;
}

.cf-write h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
}

.cf-lead {
  color: #555;
  font-size: 15px;
  margin: 0 0 8px;
}

.cf-field {
  border: 0;
  padding: 0;
  margin: 16px 0 0;
  min-width: 0;
}

.cf-scale,
.cf-write {
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px #0000000f,
    0 1px 1px -0.5px #0000000f,
    0 3px 3px -1.5px #0000000f;
  padding: 18px 20px 16px;
  margin: 12px 0 0;
  min-width: 0;
}

.cf-write {
  padding: 22px 22px 24px;
}

.cf-scale__title,
.cf-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.cf-req {
  color: #d44328;
}

.cf-scale__title {
  margin: 0;
}

.cf-meter {
  width: min(100%, 280px);
  margin: 16px auto 2px;
}

.cf-pills {
  display: flex;
  gap: 3px;
  height: 28px;
}

.cf-pill {
  position: relative;
  flex: 1;
}

.cf-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.cf-pill span {
  display: block;
  height: 100%;
  background: #eceae6;
}

.cf-pill:first-child span {
  border-radius: 999px 3px 3px 999px;
}

.cf-pill:last-child span {
  border-radius: 3px 999px 999px 3px;
}

.cf-pill:not(:first-child):not(:last-child) span {
  border-radius: 3px;
}

.cf-scale:is(
  :has(.cf-pill:hover),
  :not(:has(.cf-pill:hover)):has(input:checked)
) .cf-pill:nth-child(1) span {
  background: #ffb5a4;
}

.cf-scale:is(
  :has(.cf-pill:nth-child(2):hover),
  :has(.cf-pill:nth-child(3):hover),
  :has(.cf-pill:nth-child(4):hover),
  :has(.cf-pill:nth-child(5):hover),
  :not(:has(.cf-pill:hover)):has(input[value="2"]:checked),
  :not(:has(.cf-pill:hover)):has(input[value="3"]:checked),
  :not(:has(.cf-pill:hover)):has(input[value="4"]:checked),
  :not(:has(.cf-pill:hover)):has(input[value="5"]:checked)
) .cf-pill:nth-child(2) span {
  background: #ffc98a;
}

.cf-scale:is(
  :has(.cf-pill:nth-child(3):hover),
  :has(.cf-pill:nth-child(4):hover),
  :has(.cf-pill:nth-child(5):hover),
  :not(:has(.cf-pill:hover)):has(input[value="3"]:checked),
  :not(:has(.cf-pill:hover)):has(input[value="4"]:checked),
  :not(:has(.cf-pill:hover)):has(input[value="5"]:checked)
) .cf-pill:nth-child(3) span {
  background: #ffe66e;
}

.cf-scale:is(
  :has(.cf-pill:nth-child(4):hover),
  :has(.cf-pill:nth-child(5):hover),
  :not(:has(.cf-pill:hover)):has(input[value="4"]:checked),
  :not(:has(.cf-pill:hover)):has(input[value="5"]:checked)
) .cf-pill:nth-child(4) span {
  background: #b7e7a0;
}

.cf-scale:is(
  :has(.cf-pill:nth-child(5):hover),
  :not(:has(.cf-pill:hover)):has(input[value="5"]:checked)
) .cf-pill:nth-child(5) span {
  background: #83edc0;
}

.cf-pill input:focus-visible + span {
  outline: 3px solid #111;
  outline-offset: 2px;
}

.cf-labels {
  position: relative;
  height: 1.4em;
  margin-top: 8px;
  font-size: 13px;
  color: #6b6b6b;
}

.cf-end {
  position: absolute;
  top: 0;
}

.cf-end--right {
  right: 0;
}

.cf-scale:is(:has(.cf-pill:hover), :has(input:checked)) .cf-end {
  visibility: hidden;
}

.cf-pick {
  display: none;
  position: absolute;
  top: 0;
  white-space: nowrap;
  font-weight: 650;
  color: #444;
}

.cf-pick[data-n="1"] { left: 0; }
.cf-pick[data-n="2"] { left: 30%; transform: translateX(-50%); }
.cf-pick[data-n="3"] { left: 50%; transform: translateX(-50%); }
.cf-pick[data-n="4"] { left: 70%; transform: translateX(-50%); }
.cf-pick[data-n="5"] { right: 0; }

.cf-scale:not(:has(.cf-pill:hover)):has(input[value="1"]:checked) .cf-pick[data-n="1"],
.cf-scale:has(.cf-pill:nth-child(1):hover) .cf-pick[data-n="1"],
.cf-scale:not(:has(.cf-pill:hover)):has(input[value="2"]:checked) .cf-pick[data-n="2"],
.cf-scale:has(.cf-pill:nth-child(2):hover) .cf-pick[data-n="2"],
.cf-scale:not(:has(.cf-pill:hover)):has(input[value="3"]:checked) .cf-pick[data-n="3"],
.cf-scale:has(.cf-pill:nth-child(3):hover) .cf-pick[data-n="3"],
.cf-scale:not(:has(.cf-pill:hover)):has(input[value="4"]:checked) .cf-pick[data-n="4"],
.cf-scale:has(.cf-pill:nth-child(4):hover) .cf-pick[data-n="4"],
.cf-scale:not(:has(.cf-pill:hover)):has(input[value="5"]:checked) .cf-pick[data-n="5"],
.cf-scale:has(.cf-pill:nth-child(5):hover) .cf-pick[data-n="5"] {
  display: block;
}

.cf-input,
.cf-select,
.cf-textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e5e5e5;
  padding: 11px 12px;
  font: inherit;
  color: #171717;
}

.cf-select {
  appearance: none;
  height: 36px;
  padding: 0 36px 0 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.2 8 10l4-3.8' fill='none' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px #6b97ff;
}

.cf-textarea {
  resize: vertical;
  min-height: 140px;
}

.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.cf-counter {
  text-align: right;
  font-size: 12px;
  color: #777;
  margin-top: 6px;
}

.cf-banner {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f4f4f5;
  box-shadow: 0 0 0 1px #e4e4e7;
  color: #171717;
}

.cf-banner__body {
  display: contents;
}

.cf-banner__icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
  color: #3b82f6;
}

.cf-banner__title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #171717;
}

.cf-banner__text {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #525252;
}

.cf-banner a {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e5e5e5;
  color: #171717;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.cf-banner a:hover {
  background: #fafafa;
  color: #171717;
  text-decoration: none;
}

.cf-banner a:focus-visible {
  outline: 2px solid #6b97ff;
  outline-offset: 2px;
}

.cf-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 450;
  margin-top: 22px;
  cursor: pointer;
}

.cf-check input {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 1.5px solid #171717;
  border-radius: 7px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.cf-check input:checked {
  background-color: #171717;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.3 6.4 11.4 12.8 4.6' fill='none' stroke='%23fafafa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cf-check input:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-top: 20px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #171717;
  color: #fafafa;
  box-shadow: 0 0 0 1px #171717;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.cf-submit:hover {
  background: #262626;
}

.cf-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.cf-status {
  font-size: 14px;
  margin: 14px 0 0;
}

.cf-done {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  margin: 12px 0 0;
  padding: 18px 20px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 0 0 1px #0000000f,
    0 1px 1px -0.5px #0000000f,
    0 3px 3px -1.5px #0000000f;
  color: #171717;
}

.cf-done__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f4f4f5;
  color: #171717;
}

.cf-done__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.cf-done__text {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #525252;
}

.cf-done__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin-top: 12px;
  padding: 0 12px;
  border-radius: 8px;
  background: #171717;
  color: #fafafa;
  box-shadow: 0 0 0 1px #171717;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.cf-done__btn:hover {
  background: #262626;
  color: #fafafa;
}

.cf-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.cf-page :focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .cf-scale,
  .cf-write {
    padding: 16px 14px 14px;
  }

  .cf-card h1 {
    font-size: 26px;
  }

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