/* Trial registration page. Builds on the contact form styles in editorial.css. */

.ct-card input[type="date"],
.ct-card input[type="number"] {
  width: 100%;
  min-height: 54px;
  padding: 15px 16px;
  border: 1px solid var(--ed-ink-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ed-ink);
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.ct-card input[type="number"] { -moz-appearance: textfield; }
.ct-card input[type="number"]::-webkit-inner-spin-button,
.ct-card input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.ct-card input[type="date"]:focus, .ct-card input[type="number"]:focus { outline: none; border-color: var(--ed-ink); box-shadow: 0 0 0 3px rgba(236, 32, 41, .18); }
.ct-card .field.is-invalid input[type="date"], .ct-card .field.is-invalid input[type="number"] { border-color: var(--ed-red); }

/* Section headings inside the application form */
.pp-page main .ct-card .tr-group {
  margin: 0;
  font-family: var(--ed-head);
  font-size: 22px;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ed-ink);
}
.pp-page main .ct-card .tr-group ~ .tr-group { margin-top: 18px; padding-top: 30px; border-top: 1px solid var(--ed-ink-line); }

.ct-card .tr-hint { margin-left: 6px; color: rgba(12, 12, 13, .45); font-size: 12px; letter-spacing: 0; }

.ct-card .tr-choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-card .tr-choice legend { margin-bottom: 10px; padding: 0; font-size: 13px; letter-spacing: .04em; color: var(--ed-ink-muted); }
.ct-card .tr-options { display: flex; flex-wrap: wrap; gap: 10px; }

.ct-card .tr-option {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ed-ink);
}

.ct-card .tr-option input { position: absolute; opacity: 0; pointer-events: none; }

.ct-card .tr-option span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid rgba(12, 12, 13, .22);
  border-radius: 100px;
  background: #fff;
  transition: background .25s, border-color .25s, color .25s;
}

.ct-card .tr-option:hover span { border-color: var(--ed-ink); }
.ct-card .tr-option input:checked + span { background: var(--ed-ink); border-color: var(--ed-ink); color: var(--ed-paper); }
.ct-card .tr-option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(236, 32, 41, .3); }
.ct-card .tr-choice.is-invalid .tr-option span { border-color: var(--ed-red); }
.ct-card .tr-choice.is-invalid .field-error { display: block; margin-top: 8px; }

.ct-card .field[hidden] { display: none; }

.ct-card .tr-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ct-card .submit-button:disabled { opacity: .6; cursor: progress; }

.ct-card .tr-error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(236, 32, 41, .1);
  color: var(--ed-ink);
  font-size: 14px;
  line-height: 1.5;
}

.ct-card .tr-error[hidden], .ct-card .tr-success[hidden] { display: none; }

.ct-card .tr-success { display: grid; justify-items: start; gap: 14px; outline: none; }
.pp-page main .ct-card .tr-success p { margin: 0; color: var(--ed-ink-muted); line-height: 1.6; }

.ct-card .tr-success-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ed-red);
}

.ct-card .tr-success-mark svg { width: 28px; fill: #fff; }
.ct-card .tr-again { margin-top: 10px; text-decoration: none; }

.tr-details { margin: 6px 0 34px; padding: 0; list-style: none; border-top: 1px solid rgba(231, 230, 226, .18); }
.tr-details[hidden] { display: none; }

.tr-details li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(231, 230, 226, .18);
  font-size: 17px;
  line-height: 1.4;
}

.tr-details span { padding-top: 3px; color: rgba(231, 230, 226, .55); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
