/* The refer page, matching the team's Jotform (measured from
   form.jotform.com/How_Jew/referafriend_HJM): black page, logo, a #111 card
   752px wide, Francois One throughout. */
*, *::before, *::after { box-sizing: border-box; }
html { background: #000; }
body.jf-page {
  margin: 0;
  padding: 40px 0 72px;
  font-family: "Francois One", sans-serif;
  font-size: 16px;
  color: #fff;
  background: #000;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

.jf-logo { display: block; width: 272px; margin: 0 auto 16px; }
.jf-logo img { display: block; width: 272px; height: 140px; object-fit: contain; }

.jf-card {
  width: 752px;
  max-width: 100%;
  margin: 0 auto;
  background: #111;
  box-shadow: 0 4px 4px -1px rgba(0, 0, 0, 0.1);
}

.jf-header { padding: 40px 52px; text-align: center; }
.jf-title { margin: 0; font-size: 32px; line-height: 1.45; font-weight: 600; }
.jf-subtitle { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 500; }

/* Flex so the 12px margins don't collapse (Jotform's fields are 24px apart). */
.jf-lines { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0 42px; }
.jf-line { margin: 12px 0; padding: 12px 10px; border-radius: 3px; }
.jf-line:first-child { margin-top: 28px; }
.jf-label { display: block; margin: 0 0 8px 2px; font-size: 16px; font-weight: 500; }
.jf-required { margin-left: 4px; color: #dc2626; }

.jf-name { display: flex; gap: 24px; }
.jf-name .jf-sub { flex: 1; }
.jf-sub { display: flex; flex-direction: column; }
.jf-half { width: 310px; max-width: 100%; }
.jf-sublabel { margin: 11px 0 0 2px; font-size: 12px; }

.jf-input {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: #0b0b0b;
  border: 0.8px solid #444;
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.jf-input::placeholder { color: #8894ab; }
.jf-input:hover { border-color: #666; }
.jf-input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }
.jf-textarea { display: block; height: 163px; padding: 10px; resize: vertical; }

/* Errors, like Jotform's: red border and a red message under the field. */
.jf-line.has-error .jf-input { border-color: #f23a3c; }
.jf-error {
  display: inline-block;
  margin: 8px 0 0;
  padding: 4px 8px;
  font-size: 12px;
  color: #fff;
  background: #f23a3c;
  border-radius: 4px;
}
.jf-form-error { margin: 0 52px; padding: 10px 12px; color: #fff; background: #f23a3c; border-radius: 4px; }

.jf-buttons { padding: 30px 52px 40px; text-align: center; }
.jf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  margin-left: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  background: #fff;
  border: 0.8px solid #fff;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.jf-submit:hover { opacity: 0.85; }
.jf-submit:disabled { opacity: 0.6; cursor: default; }

/* Thank-you, as on the Jotform: the card turns plain black with Jotform's
   envelope, "Thank You!" (32px bold) and the line under it (16px), in the
   default sans-serif (the theme font the Jotform names never loads). */
.jf-card.is-done { background: #000; box-shadow: 0 4px 4px rgba(87, 100, 126, 0.21); border-radius: 4px; }
.jf-done { text-align: center; font-family: Arial, Helvetica, sans-serif; overflow: hidden; }
.jf-done__icon { margin: 16px 0; }
.jf-done__icon img { display: inline-block; width: 153px; height: 156px; }
.jf-done__title { margin: 21.44px 0; font-size: 32px; font-weight: 700; line-height: normal; }
.jf-done__text { margin: 16px 0; font-size: 16px; line-height: normal; }
.jf-done__buttons { padding: 8px 52px 32px; font-family: "Francois One", sans-serif; }

/* Phones: full width, fields stacked, like Jotform's mobile layout. */
@media (max-width: 768px) {
  body.jf-page { padding: 24px 0 40px; }
  .jf-logo, .jf-logo img { width: 200px; height: auto; }
  .jf-header { padding: 32px 20px 8px; }
  .jf-title { font-size: 26px; }
  .jf-lines { padding: 0 6px; }
  .jf-name { flex-direction: column; gap: 12px; }
  .jf-half { width: 100%; }
  .jf-buttons { padding: 24px 16px 32px; }
  .jf-form-error { margin: 0 16px; }
}
