/* Assessments on beliefstraining.ignitinghope.com, shown inside iframes on ignitinghope.com.
   The look follows the old WordPress pages (Avada theme + Gravity Forms) so the embeds
   look unchanged: Dancing Script heading, Source Sans body, gold buttons, grey step bar. */

@font-face { font-family: "Dancing Script"; src: url(fonts/dancing-script-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --ink: #041f36;
  --heading: #333333;
  --gold: #f7b736;
  --gold-text: #f6b746;
  --gold-hover: #f7a922;
  --shade: #f7f7f7;
  --band: #f6f6f6;
  --steps: #e2e2e2;
  --rule: #cccccc;
  --input: #d2d2d2;
  --error: #790000;
  --error-bg: rgba(255, 223, 224, .25);
  --error-rule: #c89797;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.5 "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Heading */
.head { padding: 24px 20px 30px; text-align: center; }
.head.band { background: var(--band); margin-bottom: 47px; }
.title {
  margin: 0;
  font: 400 56px/1.5 "Dancing Script", cursive;
  color: var(--ink);
}

/* Intro text from the forms (raw HTML copied from Gravity Forms) */
.field-html h3 { font-size: 20px; font-weight: 400; line-height: 1.65; margin: 0 0 .5em; }
.field-html h4 { font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--heading); margin: 1.33em 0 .5em; }
.formCounter { font-size: 30px; font-weight: 600; color: var(--gold-text); text-align: center; }

/* Step bar */
.steps {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 0 15px;
  background: var(--steps);
  border-bottom: 3px solid var(--rule);
  font-weight: 700;
  font-size: 14px;
  flex-wrap: wrap;
}
.js .steps { display: flex; }
.steps li { padding: 14px 17px 13px 3px; margin-right: 15px; }
.steps li.active { color: var(--gold-text); }

/* Fields */
.assessment { margin: 0; }
.page { display: flex; flex-wrap: wrap; align-content: flex-start; }
.js .page:not(.current) { display: none; }
.field { flex: 1 1 100%; margin: 5px 0; padding: 10px 20px 40px; border: 0; min-width: 0; }
.field.shade { background: var(--shade); }
.field.half { flex-basis: 40%; }
.field.half-left { padding-right: 20px; }
.field.half-right { padding-left: 20px; }
.field-html { padding-bottom: 20px; }
.field-html p { margin: 0 0 1em; }

legend, .field > label {
  display: block;
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 8px;
  font-weight: 700;
}
legend + * { clear: both; }
.req { color: var(--error); margin-left: 2px; }

input[type=text], input[type=email], input[type=password] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--input);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.25;
  min-height: 30px;
}
.desc { margin: 10px 0 0; }

/* Radio answers: in columns with the button above the word (Beliefs, Spirit) or in a row (Empowerment) */
.choices { display: flex; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 15px; }
.choice input { margin: 0; width: 15px; height: 15px; accent-color: var(--ink); cursor: pointer; }
.radios-inline .choices { gap: 4px 12px; padding-top: 2px; }
.radios-stacked .choices { padding-top: 2px; }
.radios-stacked .choice { flex-direction: column; gap: 3px; width: 101px; text-align: center; }

/* Validation */
.notice {
  flex: 1 1 100%;
  margin: 20px;
  padding: 16px;
  border-top: 2px solid var(--error);
  border-bottom: 2px solid var(--error);
  color: var(--error);
  font-weight: 700;
  text-align: center;
}
.field.has-error { background: var(--error-bg); border-top: 1px solid var(--error-rule); border-bottom: 1px solid var(--error-rule); }
.has-error input[type=text], .has-error input[type=email] { border-color: var(--error); }
.error { margin: 8px 0 0; color: var(--error); font-weight: 700; font-size: 15px; }
.error[hidden] { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.page-foot {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 5px 0;
  padding: 10px 20px 40px;
  border-top: 1px dotted var(--rule);
}
/* Without JavaScript all pages show at once with one submit button at the end. */
.page-foot .btn[data-go] { display: none; }
.js .page-foot .btn[data-go] { display: inline-block; }
html:not(.js) .page:not(:last-of-type) .page-foot { display: none; }
.btn {
  display: inline-block;
  padding: 20px 35px;
  border: 0;
  border-radius: 0;
  background: var(--gold);
  color: #fff;
  font: 700 18px/18px "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--gold-hover); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Thank-you page, gone page */
.confirmation { padding: 20px; }
.confirmation h4 { font-size: 24px; line-height: 1.25; color: var(--heading); margin: 1em 0; }
.plain { padding: 0 20px 40px; max-width: 760px; margin: 0 auto; }

.foot { background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 17px 30px; margin-top: 110px; }

@media (max-width: 640px) {
  .title { font-size: 40px; line-height: 1.3; }
  .head { padding: 18px 16px 22px; }
  .head.band { margin-bottom: 24px; }
  .field, .page-foot { padding-left: 16px; padding-right: 16px; }
  .field.half { flex-basis: 100%; }
  .field.half-left, .field.half-right { padding-left: 16px; padding-right: 16px; }
  .steps { padding-left: 8px; font-size: 13px; }
  .steps li { padding: 10px 6px; margin-right: 6px; }
  .radios-stacked .choice { width: 20%; min-width: 58px; font-size: 14px; }
  .btn { padding: 16px 26px; }
  .notice { margin: 16px; }
}
