/* Join the Team & Mortgage Options Lead Form
   Rates theme: navy + cool blue (#7cd2fb / #a5d3eb). Cobalt #2456e6 only on buttons and active controls. No teal, no purple. */
.jt-card {
  position: relative;
  border-radius: 20px;
  padding: 1.65rem 1.6rem 1.45rem;
  color: #e8f1fb;
  background: linear-gradient(180deg, rgba(11, 26, 56, 0.94), rgba(2, 7, 27, 0.97));
  border: 1px solid rgba(165, 211, 235, 0.36);
  box-shadow: inset 0 0 0 1px rgba(176, 235, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.5);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
.jt-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7cd2fb;
}
.jt-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
}
.jt-sub {
  margin: 0.45rem 0 1.25rem;
  color: #c9d6e8;
  font-size: 0.95rem;
  line-height: 1.5;
}
.jt-form {
  display: grid;
  gap: 0.95rem;
}
.jt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.jt-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.jt-field-full {
  grid-column: 1 / -1;
}
.jt-field > label,
.jt-legend {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a5d3eb;
  margin: 0;
  padding: 0;
}
.jt-opt {
  font-weight: 600;
  color: #9db0c8;
}
.jt-field input,
.jt-field select,
.jt-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.74rem 0.85rem;
  border-radius: 11px;
  border: 1px solid rgba(165, 211, 235, 0.34);
  background: rgba(1, 3, 25, 0.88);
  color: #ffffff;
  font: 500 0.98rem/1.4 "Segoe UI", system-ui, Arial, sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.jt-field select {
  appearance: auto;
  cursor: pointer;
}
.jt-field textarea {
  min-height: 5rem;
  resize: vertical;
}
.jt-field input::placeholder,
.jt-field textarea::placeholder {
  color: #7c8ea8;
}
.jt-field input:focus,
.jt-field select:focus,
.jt-field textarea:focus {
  outline: none;
  border-color: #7cd2fb;
  box-shadow: 0 0 0 3px rgba(124, 210, 251, 0.2);
}
.jt-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.jt-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(1, 3, 25, 0.82);
  border: 1px solid rgba(165, 211, 235, 0.28);
}
.jt-seg-3 {
  grid-template-columns: repeat(3, 1fr);
}
.jt-seg label {
  position: relative;
  cursor: pointer;
  margin: 0;
}
.jt-seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.jt-seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 9px;
  color: #c9d6e8;
  font: 700 0.84rem/1.25 "Segoe UI", system-ui, Arial, sans-serif;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.jt-seg label:hover span {
  color: #ffffff;
  background: rgba(124, 210, 251, 0.08);
}
.jt-seg input:checked + span {
  background: #2456e6;
  color: #ffffff;
  border-color: #2456e6;
  box-shadow: 0 4px 14px rgba(36, 86, 230, 0.42);
}
.jt-seg input:focus-visible + span {
  outline: 2px solid #7cd2fb;
  outline-offset: 2px;
}
.jt-subbox {
  border-radius: 14px;
  padding: 1rem 1.05rem;
  background: rgba(2, 9, 32, 0.72);
  border: 1px solid rgba(165, 211, 235, 0.28);
  display: grid;
  gap: 0.85rem;
}
.jt-subbox[hidden],
.jt-field[hidden] {
  display: none !important;
}
.jt-subhead {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}
.jt-subnote {
  margin: -0.45rem 0 0;
  font-size: 0.84rem;
  color: #9db0c8;
}
.jt-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.jt-err {
  min-height: 1.2em;
  margin: 0;
  color: #ff9482;
  font-size: 0.88rem;
  font-weight: 600;
}
.jt-err:empty {
  display: none;
}
.jt-submit {
  appearance: none;
  width: 100%;
  padding: 0.92rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #2456e6;
  background: #2456e6;
  color: #ffffff;
  font: 800 0.88rem/1.1 "Segoe UI", system-ui, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(36, 86, 230, 0.38);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.jt-submit:hover,
.jt-submit:focus-visible {
  background: #2f62f0;
  box-shadow: 0 10px 26px rgba(36, 86, 230, 0.52);
  outline: none;
}
.jt-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}
.jt-consent {
  margin: -0.25rem 0 0;
  color: #9db0c8;
  font-size: 0.78rem;
  line-height: 1.5;
}
.jt-consent a {
  color: #7cd2fb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jt-thanks {
  padding: 0.6rem 0 0.2rem;
}
.jt-thanks[hidden] {
  display: none !important;
}
.jt-thanks h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #ffffff;
}
.jt-thanks p {
  margin: 0 0 1rem;
  color: #c9d6e8;
  font-size: 0.96rem;
  line-height: 1.55;
}
.jt-thanks-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.jt-btn-sec {
  appearance: none;
  padding: 0.74rem 1.1rem;
  border-radius: 11px;
  border: 1px solid rgba(165, 211, 235, 0.5);
  background: rgba(8, 16, 36, 0.72);
  color: #7cd2fb;
  font: 700 0.82rem/1 "Segoe UI", system-ui, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.jt-btn-sec:hover,
.jt-btn-sec:focus-visible {
  color: #b0ebff;
  border-color: rgba(176, 235, 255, 0.9);
  outline: none;
}
.jt-btn-pri {
  appearance: none;
  padding: 0.74rem 1.15rem;
  border-radius: 11px;
  border: 1px solid #2456e6;
  background: #2456e6;
  color: #ffffff;
  font: 800 0.82rem/1 "Segoe UI", system-ui, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Modal shell */
.jt-modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 2, 12, 0.76);
  backdrop-filter: blur(7px);
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.jt-modal-back[hidden] {
  display: none !important;
}
.jt-modal {
  width: min(640px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  position: relative;
}
.jt-modal .jt-card {
  padding-top: 1.55rem;
}
.jt-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(165, 211, 235, 0.38);
  background: rgba(8, 16, 36, 0.85);
  color: #7cd2fb;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.jt-x:hover,
.jt-x:focus-visible {
  color: #b0ebff;
  border-color: #7cd2fb;
  outline: none;
}

/* Standalone page wrapper */
.jt-page {
  padding: 2.3rem 0 3.6rem;
}
.jt-page-wrap {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .jt-card {
    padding: 1.25rem 1rem 1.15rem;
    border-radius: 16px;
  }
  .jt-grid,
  .jt-seg,
  .jt-seg-3 {
    grid-template-columns: 1fr;
  }
  .jt-modal-back {
    padding: 0.6rem;
  }
  .jt-modal {
    max-height: calc(100dvh - 1.2rem);
  }
  .jt-page {
    padding: 1.5rem 0 2.6rem;
  }
  .jt-page-wrap {
    width: min(100% - 1.25rem, 720px);
  }
}
