/**
 * NursingRidge Professional Services application page.
 * Scoped to the route-specific body class added by nr_pro_services.
 */

.nrps-application-page {
  --nrps-app-navy: #153a5b;
  --nrps-app-navy-deep: #0e2d49;
  --nrps-app-blue: #1f4e79;
  --nrps-app-teal: #168c91;
  --nrps-app-teal-soft: #e8f6f6;
  --nrps-app-gold: #c79a3b;
  --nrps-app-ink: #172434;
  --nrps-app-muted: #617083;
  --nrps-app-line: #d8e2e8;
  --nrps-app-surface: #ffffff;
  --nrps-app-bg: #f4f8fa;
}

.nrps-application-page .block-system-breadcrumb-block,
.nrps-application-page nav[aria-label="breadcrumb"],
.nrps-application-page .page-title {
  display: none !important;
}

.nrps-application-page main,
.nrps-application-page .main-content,
.nrps-application-page .region-content {
  min-width: 0;
}

.nrps-application-form {
  margin: 0;
}

.nrps-apply {
  width: min(1180px, calc(100% - 40px));
  margin: 38px auto 76px;
  color: var(--nrps-app-ink);
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nrps-apply-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: center;
  padding: 44px 48px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 14%, rgba(199, 154, 59, .28), transparent 34%),
    linear-gradient(135deg, var(--nrps-app-navy-deep) 0%, var(--nrps-app-blue) 58%, #19777c 120%);
  box-shadow: 0 24px 60px rgba(21, 58, 91, .18);
  color: #fff;
}

.nrps-apply-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -190px;
  bottom: -250px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .035), 0 0 0 84px rgba(255, 255, 255, .025);
}

.nrps-apply-hero__copy,
.nrps-apply-trust {
  position: relative;
  z-index: 1;
}

.nrps-apply-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #9fe6e2;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nrps-apply-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.nrps-apply-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.05rem;
  line-height: 1.65;
}

.nrps-apply-trust {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}

.nrps-apply-trust__icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--nrps-app-teal);
  font-size: 1.1rem;
  font-weight: 900;
}

.nrps-apply-trust strong,
.nrps-apply-trust span {
  display: block;
}

.nrps-apply-trust strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: .98rem;
}

.nrps-apply-trust div > span {
  color: rgba(255, 255, 255, .76);
  font-size: .86rem;
  line-height: 1.45;
}

.nrps-apply-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.nrps-apply-aside,
.nrps-apply-card {
  border: 1px solid var(--nrps-app-line);
  border-radius: 24px;
  background: var(--nrps-app-surface);
  box-shadow: 0 16px 42px rgba(21, 58, 91, .08);
}

.nrps-apply-aside {
  position: sticky;
  top: 28px;
  padding: 28px;
}

.nrps-apply-aside__label,
.nrps-apply-card__head > span {
  color: var(--nrps-app-teal);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nrps-apply-aside h2,
.nrps-apply-card__head h2 {
  color: var(--nrps-app-navy);
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -.02em;
}

.nrps-apply-aside h2 {
  margin: 8px 0 22px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.nrps-apply-steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nrps-apply-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.nrps-apply-steps li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--nrps-app-teal-soft);
  color: var(--nrps-app-teal);
  font-size: .72rem;
  font-weight: 900;
}

.nrps-apply-steps strong {
  display: block;
  margin: 1px 0 4px;
  color: var(--nrps-app-navy);
  font-size: .94rem;
}

.nrps-apply-steps p {
  margin: 0;
  color: var(--nrps-app-muted);
  font-size: .84rem;
  line-height: 1.5;
}

.nrps-apply-note {
  margin-top: 26px;
  padding: 18px;
  border-left: 4px solid var(--nrps-app-gold);
  border-radius: 12px;
  background: #fbf7ee;
}

.nrps-apply-note strong {
  color: var(--nrps-app-navy);
  font-size: .9rem;
}

.nrps-apply-note p {
  margin: 6px 0 0;
  color: var(--nrps-app-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.nrps-apply-card {
  padding: 34px;
}

.nrps-apply-card__head {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--nrps-app-line);
}

.nrps-apply-card__head h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  line-height: 1.15;
}

.nrps-apply-card__head p {
  max-width: 720px;
  margin: 0;
  color: var(--nrps-app-muted);
  font-size: .93rem;
  line-height: 1.55;
}

.nrps-form-grid {
  display: grid;
  gap: 20px;
}

.nrps-form-grid + .nrps-form-grid,
.nrps-form-grid + .nrps-field,
.nrps-field + .nrps-form-grid {
  margin-top: 20px;
}

.nrps-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nrps-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.nrps-application-form .form-item {
  margin: 0;
}

.nrps-application-form label,
.nrps-application-form legend {
  display: block;
  margin-bottom: 8px;
  color: var(--nrps-app-navy);
  font-size: .87rem;
  font-weight: 750;
  letter-spacing: .005em;
}

.nrps-application-form .form-required::after {
  margin-left: 4px;
}

.nrps-application-form input[type="text"],
.nrps-application-form input[type="email"],
.nrps-application-form input[type="url"],
.nrps-application-form input[type="tel"],
.nrps-application-form select,
.nrps-application-form textarea {
  width: 100%;
  border: 1px solid #cbd7de;
  border-radius: 12px;
  background: #fbfdfe;
  color: var(--nrps-app-ink);
  box-shadow: 0 1px 2px rgba(21, 58, 91, .03);
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.nrps-application-form input[type="text"],
.nrps-application-form input[type="email"],
.nrps-application-form input[type="url"],
.nrps-application-form input[type="tel"],
.nrps-application-form select {
  min-height: 52px;
  padding: 0 14px;
}

.nrps-application-form textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

.nrps-application-form input::placeholder,
.nrps-application-form textarea::placeholder {
  color: #93a1ad;
}

.nrps-application-form input:focus,
.nrps-application-form select:focus,
.nrps-application-form textarea:focus {
  outline: none;
  border-color: var(--nrps-app-teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 140, 145, .12);
}

.nrps-application-form .description,
.nrps-application-form .form-item__description {
  margin-top: 7px;
  color: var(--nrps-app-muted);
  font-size: .76rem;
  line-height: 1.45;
}

.nrps-confirmation {
  margin-top: 24px !important;
  padding: 18px 20px;
  border: 1px solid #d8e6e8;
  border-radius: 14px;
  background: #f5fbfb;
}

.nrps-confirmation .form-check,
.nrps-confirmation .form-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.nrps-confirmation input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--nrps-app-teal);
}

.nrps-confirmation label {
  margin: 0;
  color: var(--nrps-app-ink);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.5;
}

.nrps-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--nrps-app-line);
}

.nrps-application-form .nrps-apply-submit,
.nrps-application-form .button--primary {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--nrps-app-navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 58, 91, .18);
  font-size: .9rem;
  font-weight: 800;
}

.nrps-application-form .nrps-apply-submit:hover,
.nrps-application-form .button--primary:hover {
  background: var(--nrps-app-blue);
  color: #fff;
  transform: translateY(-1px);
}

.nrps-apply-back {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--nrps-app-line);
  border-radius: 999px;
  color: var(--nrps-app-navy);
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
}

.nrps-apply-back:hover {
  border-color: var(--nrps-app-teal);
  color: var(--nrps-app-teal);
}

.nrps-apply-privacy {
  margin: 18px 0 0;
  color: var(--nrps-app-muted);
  font-size: .76rem;
  line-height: 1.45;
}

.nrps-application-page .messages-list,
.nrps-application-page .messages {
  width: min(1180px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 980px) {
  .nrps-apply-hero {
    grid-template-columns: 1fr;
  }

  .nrps-apply-trust {
    max-width: 440px;
  }

  .nrps-apply-layout {
    grid-template-columns: 1fr;
  }

  .nrps-apply-aside {
    position: static;
  }

  .nrps-apply-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nrps-apply-steps li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nrps-apply {
    width: min(100% - 24px, 1180px);
    margin-top: 18px;
  }

  .nrps-apply-hero {
    gap: 24px;
    padding: 30px 24px;
    border-radius: 20px;
  }

  .nrps-apply-layout {
    gap: 18px;
    margin-top: 18px;
  }

  .nrps-apply-aside,
  .nrps-apply-card {
    border-radius: 18px;
  }

  .nrps-apply-aside,
  .nrps-apply-card {
    padding: 24px;
  }

  .nrps-apply-steps,
  .nrps-form-grid--two,
  .nrps-form-grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nrps-apply {
    width: min(100% - 16px, 1180px);
  }

  .nrps-apply-hero,
  .nrps-apply-card,
  .nrps-apply-aside {
    padding: 20px;
  }

  .nrps-apply-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nrps-application-form .nrps-apply-submit,
  .nrps-apply-back {
    width: 100%;
    justify-content: center;
  }
}
