/* Guided journal form styles, matched to About Us / style.css
   Navy #002953, green #405D27, Open Sans, rounded navy panels. */

:root {
  --ink: #333;
  --navy: #002953;
  --green: #405D27;
  --green-dark: #3F5A26;
  --muted: #c8d4e0;
  --line: rgba(255, 255, 255, 0.28);
  --panel: #002953;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 2000;
  background: #002953;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 10px;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #ffffff;
  color: #333;
}

header {
  position: relative;
  background: #fff;
  z-index: 20;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
  position: relative;
}

.djg-logo {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 0 18px;
}

.djg-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #9CC473;
}

.section_full .u-text-1,
.djg-form h2 {
  font-family: "Open Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  color: #ffffff;
  margin: 0 0 8px;
}

.section_full .u-text-2,
.djg-form p {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
}

.djg-form {
  display: block;
}

.djg-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 22px;
}

.djg-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #405D27;
  color: #ffffff;
  font-weight: 800;
}

.djg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.djg-wide {
  grid-column: 1 / -1;
}

.djg-form label,
.djg-form legend {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.djg-form input[type="text"],
.djg-form input[type="date"],
.djg-form select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #1A2A4C;
  border-radius: 7px;
  background: #ffffff;
  color: #333;
  font: inherit;
}

.djg-form input:focus,
.djg-form select:focus,
.djg-form button:focus,
.section_contact a:focus {
  outline: 3px solid rgba(156, 196, 115, 0.7);
  outline-offset: 2px;
}

.djg-privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  max-width: 760px;
}

.djg-privacy > span {
  display: grid;
  place-items: center;
  background: #405D27;
  color: #ffffff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  font-weight: 900;
}

.djg-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.djg-choice {
  position: relative;
  display: block !important;
  padding: 16px 16px 16px 47px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.djg-choice:has(input:checked) {
  border-color: #9CC473;
  background: rgba(64, 93, 39, 0.45);
}

.djg-choice input {
  position: absolute;
  left: 17px;
  top: 19px;
  accent-color: #405D27;
}

.djg-choice strong {
  display: block;
  font-size: 0.96rem;
  color: #ffffff;
}

.djg-choice small {
  display: block;
  margin-top: 3px;
  color: #c8d4e0;
  font-weight: 400;
}

.djg-form fieldset {
  border: 0;
  padding: 0;
  margin: 4px 0;
}

.djg-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 9px;
}

.djg-check-grid label {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.djg-check-grid label:has(input:checked) {
  background: rgba(64, 93, 39, 0.45);
  border-color: #9CC473;
}

.djg-check-grid input {
  accent-color: #405D27;
  margin-right: 6px;
}

.djg-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #ffffff;
}

.djg-switch input {
  width: 18px;
  height: 18px;
  accent-color: #405D27;
}

.djg-create {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.djg-create .u-btn-1,
#djg-generate {
  justify-self: end;
  border-radius: 50px;
  border: 2px solid #1A2A4C;
  padding: 12px 22px;
  background: #405D27;
  color: #ffffff;
  font: 700 0.875rem "Open Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: none;
}

.djg-create .u-btn-1:hover,
#djg-generate:hover {
  background: #3F5A26;
}

.djg-create .u-btn-1:disabled,
#djg-generate:disabled {
  opacity: 0.65;
  cursor: wait;
}

.djg-progress {
  min-height: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  position: relative;
  padding-bottom: 22px;
}

.djg-progress div {
  height: 7px;
  width: 35%;
  background: #9CC473;
  animation: djg-progress 1.1s ease-in-out infinite alternate;
}

.djg-progress span {
  position: absolute;
  left: 0;
  top: 12px;
  color: #c8d4e0;
  font-size: 0.8rem;
}

.djg-error {
  color: #ffb4ae !important;
  font-weight: 700;
}

.djg-error:empty {
  display: none;
}

.u-footer {
  text-align: center;
}

.u-footer .u-layout-wrap-1 {
  padding: 10px 20px 24px;
}

@keyframes djg-progress {
  to {
    transform: translateX(185%);
  }
}

@media (max-width: 767px) {
  .djg-grid,
  .djg-options,
  .djg-create {
    grid-template-columns: 1fr;
  }

  .djg-create .u-btn-1,
  #djg-generate {
    justify-self: stretch;
    width: 100%;
  }

  .djg-logo {
    width: min(200px, 70vw);
    margin: 0 auto 18px;
  }

  .section_full .u-text-1,
  .djg-form h2 {
    font-size: 1.25rem;
  }
}
