.tgbw-pf,
.tgbw-pf * {
  box-sizing: border-box;
}

.tgbw-pf {
  --tgbw-pf-orange: #e36c09;
  --tgbw-pf-black: #080808;
  --tgbw-pf-charcoal: #1a1a1a;
  --tgbw-pf-border: #c9c9c9;
  width: 100%;
  color: #111111;
  font-family: Barlow, Arial, sans-serif;
}

.tgbw-pf__expectations {
  margin: 0 0 52px;
  padding: 34px 38px 36px;
  border-left: 6px solid var(--tgbw-pf-orange);
  background: var(--tgbw-pf-black);
  color: #ffffff;
}

.tgbw-pf__expectations h2 {
  margin: 0 0 20px;
  color: #ffffff;
  font-family: Cormorant, "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tgbw-pf__expectations p,
.tgbw-pf__expectations ul {
  margin: 0;
  color: #e5e5e5;
  font-size: 18px;
  line-height: 1.6;
}

.tgbw-pf__expectations ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.tgbw-pf__expectations strong {
  color: var(--tgbw-pf-orange);
}

.tgbw-pf-form {
  position: relative;
  margin: 0;
  padding: 54px 56px 58px;
  border: 1px solid #d4d4d4;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.08);
}

.tgbw-pf-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tgbw-pf-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.tgbw-pf-group + .tgbw-pf-group {
  margin-top: 58px;
  padding-top: 50px;
  border-top: 2px solid #111111;
}

.tgbw-pf-group__heading {
  margin: 0 0 30px;
}

.tgbw-pf-group__heading > p {
  margin: 0 0 7px;
  color: var(--tgbw-pf-orange);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tgbw-pf-group__heading h2 {
  margin: 0;
  color: #111111;
  font-family: Cormorant, "Cormorant Garamond", Georgia, serif;
  font-size: clamp(31px, 3.2vw, 45px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.tgbw-pf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 28px;
}

.tgbw-pf-field,
.tgbw-pf-fieldset {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.tgbw-pf-field--wide {
  grid-column: 1 / -1;
}

.tgbw-pf-field label,
.tgbw-pf-fieldset legend {
  margin: 0;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.tgbw-pf-field label em {
  text-transform: none;
}

.tgbw-pf-field__required {
  margin-left: 0.35em;
  color: var(--tgbw-pf-orange);
  font-size: 0.82em;
}

.tgbw-pf-field__optional {
  margin-left: 0.35em;
  color: #6b6b6b;
  font-size: 0.82em;
  font-weight: 500;
}

.tgbw-pf-field__help,
.tgbw-pf-word-count {
  margin: -3px 0 2px;
  color: #666666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.tgbw-pf-word-count {
  margin: 2px 0 0;
  text-align: right;
}

.tgbw-pf-word-count.is-outside-range {
  color: #a13f00;
  font-weight: 700;
}

.tgbw-pf-form input:not([type="checkbox"]):not([type="file"]),
.tgbw-pf-form textarea,
.tgbw-pf-form select {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #b7b7b7;
  border-radius: 0;
  background: #f1f1f1;
  color: #111111;
  font-family: Barlow, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.tgbw-pf-form textarea {
  min-height: 112px;
  resize: vertical;
}

.tgbw-pf-form input:not([type="checkbox"]):not([type="file"]):hover,
.tgbw-pf-form textarea:hover,
.tgbw-pf-form select:hover {
  border-color: #777777;
}

.tgbw-pf-form input:not([type="checkbox"]):not([type="file"]):focus,
.tgbw-pf-form textarea:focus,
.tgbw-pf-form select:focus {
  border-color: var(--tgbw-pf-orange);
  background: #ffffff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(227, 108, 9, 0.18);
}

.tgbw-pf-repeaters {
  display: grid;
  gap: 14px;
}

.tgbw-pf-repeaters label {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  text-transform: none;
}

.tgbw-pf-repeaters label > span {
  color: #424242;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.tgbw-pf-repeaters small {
  color: #777777;
  font-size: 12px;
  font-weight: 500;
}

.tgbw-pf-fieldset + .tgbw-pf-field {
  margin-top: 30px;
}

.tgbw-pf-upload {
  position: relative;
  min-height: 164px;
  border: 2px dashed #a9a9a9;
  background: #f3f3f3;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.tgbw-pf-upload:hover,
.tgbw-pf-upload.is-dragging,
.tgbw-pf-upload:focus-within {
  border-color: var(--tgbw-pf-orange);
  background: #fff7f0;
}

.tgbw-pf-upload.has-error {
  border-color: #a13f00;
}

.tgbw-pf-upload input[type="file"] {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tgbw-pf-upload__prompt {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 26px;
  color: #4c4c4c;
  text-align: center;
}

.tgbw-pf-upload__prompt strong {
  color: #111111;
  font-size: 18px;
  text-transform: uppercase;
}

.tgbw-pf-upload__selection {
  display: grid;
  min-height: 160px;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 20px;
}

.tgbw-pf-upload__selection[hidden] {
  display: none;
}

.tgbw-pf-upload__selection img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #bdbdbd;
}

.tgbw-pf-upload__selection span {
  min-width: 0;
  color: #333333;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.tgbw-pf-upload.has-file .tgbw-pf-upload__prompt {
  display: none;
}

.tgbw-pf-book-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: 52px 0 0;
  padding: 28px 30px;
  border-left: 6px solid var(--tgbw-pf-orange);
  background: var(--tgbw-pf-black);
  color: #ffffff;
}

.tgbw-pf--application .tgbw-pf-book-note {
  grid-template-columns: minmax(0, 1fr);
}

.tgbw-pf-book-note p,
.tgbw-pf-book-note address {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.tgbw-pf-book-note address {
  font-style: normal;
  text-align: right;
}

.tgbw-pf-book-note strong {
  color: var(--tgbw-pf-orange);
}

.tgbw-pf-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  margin: 34px 0 0;
  padding: 24px;
  border: 1px solid #c9c9c9;
  background: #f3f3f3;
}

.tgbw-pf-consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--tgbw-pf-orange);
}

.tgbw-pf-consent label {
  color: #222222;
  font-size: 15px;
  line-height: 1.5;
}

.tgbw-pf-consent label span {
  color: var(--tgbw-pf-orange);
  font-weight: 700;
}

.tgbw-pf-actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  margin-top: 42px;
}

.tgbw-pf .tgbw-pf-form button[type="submit"].tgbw-pf-submit {
  min-width: 270px;
  min-height: 56px;
  padding: 15px 30px;
  border: 1px solid var(--tgbw-pf-orange) !important;
  border-radius: 0;
  background: var(--tgbw-pf-orange) !important;
  color: #ffffff !important;
  font-family: Barlow, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.tgbw-pf .tgbw-pf-form button[type="submit"].tgbw-pf-submit:hover,
.tgbw-pf .tgbw-pf-form button[type="submit"].tgbw-pf-submit:focus,
.tgbw-pf .tgbw-pf-form button[type="submit"].tgbw-pf-submit:focus-visible {
  border-color: var(--tgbw-pf-black) !important;
  background: var(--tgbw-pf-black) !important;
  color: #ffffff !important;
}

.tgbw-pf .tgbw-pf-form button[type="submit"].tgbw-pf-submit:focus-visible,
.tgbw-pf-form input:focus-visible,
.tgbw-pf-form textarea:focus-visible,
.tgbw-pf-form select:focus-visible {
  outline: 2px solid var(--tgbw-pf-orange);
  outline-offset: 3px;
}

.tgbw-pf .tgbw-pf-form button[type="submit"].tgbw-pf-submit:disabled {
  border-color: #777777 !important;
  background: #777777 !important;
  color: #eeeeee !important;
  cursor: wait;
}

.tgbw-pf-status {
  min-height: 24px;
  margin: 0;
  color: #444444;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.tgbw-pf-status.is-success {
  color: #1f612e;
}

.tgbw-pf-status.is-error {
  color: #a13f00;
}

@media (max-width: 767px) {
  .tgbw-pf__expectations {
    margin-bottom: 34px;
    padding: 27px 23px 29px;
    border-left-width: 4px;
  }

  .tgbw-pf__expectations h2 {
    font-size: 30px;
  }

  .tgbw-pf__expectations p,
  .tgbw-pf__expectations ul {
    font-size: 16px;
  }

  .tgbw-pf-form {
    padding: 36px 20px 40px;
  }

  .tgbw-pf-group + .tgbw-pf-group {
    margin-top: 42px;
    padding-top: 38px;
  }

  .tgbw-pf-group__heading {
    margin-bottom: 24px;
  }

  .tgbw-pf-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .tgbw-pf-field--wide {
    grid-column: auto;
  }

  .tgbw-pf-repeaters label {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .tgbw-pf-upload__selection {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 15px;
    padding: 16px;
  }

  .tgbw-pf-upload__selection img {
    width: 86px;
    height: 86px;
  }

  .tgbw-pf-book-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px 22px;
    border-left-width: 4px;
  }

  .tgbw-pf-book-note address {
    text-align: left;
  }

  .tgbw-pf-consent {
    padding: 20px;
  }

  .tgbw-pf .tgbw-pf-form button[type="submit"].tgbw-pf-submit {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tgbw-pf *,
  .tgbw-pf *::before,
  .tgbw-pf *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
