:root {
  --brand-primary: #258DC8;
  --brand-primary-dark: #1A6FA3;
  --brand-accent: #FEA45A;
  --brand-accent-dark: #E89240;
  --brand-muted: #777777;
  --brand-ink: #343a40;
  --brand-ink-deep: #263238;
  --brand-font: "Open Sans", Arial, sans-serif;
  --brand-font-display: Ubuntu, "Open Sans", Arial, sans-serif;
  --brand-radius: 0.5rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--brand-ink);
  font-family: var(--brand-font);
  overflow-x: hidden;
  min-height: 100%;
  background-color: #f8f9fb;
  background-image: url("/Content/images/benefits_bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2, .brand-text, .hero-title, .section-title {
  font-family: var(--brand-font-display);
}

main {
  min-width: 0;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--brand-primary);
}

.brand-text {
  color: var(--brand-primary);
}

.brand-logo-link {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.brand-logo {
  display: block;
  height: 3rem;
  width: auto;
}

.brand-logo-footer {
  height: 4rem;
}

.btn-accent {
  color: #fff;
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  font-weight: 600;
  border-radius: var(--brand-radius);
}

.btn-accent:hover,
.btn-accent:focus {
  color: #fff;
  background-color: var(--brand-accent-dark);
  border-color: var(--brand-accent-dark);
}

.btn-patient {
  color: #fff;
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  font-weight: 600;
  border-radius: var(--brand-radius);
}

.btn-patient:hover,
.btn-patient:focus {
  color: #fff;
  background-color: var(--brand-accent-dark);
  border-color: var(--brand-accent-dark);
}

.btn-provider {
  color: #fff;
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  font-weight: 600;
  border-radius: var(--brand-radius);
}

.btn-provider:hover,
.btn-provider:focus {
  color: #fff;
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  border-radius: var(--brand-radius);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  border-radius: var(--brand-radius);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.portal-identity {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  max-width: 18rem;
  margin: 0.25rem 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 141, 200, 0.06);
  color: #1f2937;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
}

.portal-identity-greeting {
  flex-shrink: 0;
  color: #4b5563;
}

.portal-identity-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-identity-sep {
  color: #9ca3af;
  flex-shrink: 0;
}

.portal-identity-user {
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
  .portal-identity {
    max-width: min(42vw, 11rem);
    font-size: 0.75rem;
    padding-inline: 0.5rem;
  }
}

.navbar .nav-link {
  color: #374151;
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--brand-primary);
}

.navbar .dropdown-menu {
  border-color: #e5e7eb;
  box-shadow: 0 0.5rem 1rem rgba(37, 141, 200, 0.08);
}

.navbar .dropdown-item {
  font-weight: 500;
  color: #374151;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: rgba(37, 141, 200, 0.06);
  color: var(--brand-primary);
}

.navbar .nav-item-split .dropdown-toggle-split::after {
  margin-left: 0;
}

@media (max-width: 991.98px) {
  .navbar .nav-item-split {
    flex-wrap: wrap;
  }

  .navbar .nav-item-split .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    border: 0;
    box-shadow: none;
    padding-left: 0.75rem;
  }
}

.hero-section {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-eyebrow,
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

.hero-title {
  line-height: 1.15;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}

.hero-section .text-center .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
}

.home-path-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 0.5rem 1.25rem rgba(37, 141, 200, 0.06);
}

.home-path-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.home-path-list li + li {
  margin-top: 0.35rem;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--brand-muted);
  max-width: 40rem;
}

.step-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(37, 141, 200, 0.12);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(37, 141, 200, 0.1);
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-stat {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  height: 100%;
}

.about-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.25rem;
}

.about-stat-label {
  color: var(--brand-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.accordion-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.accordion-button {
  font-weight: 600;
  color: var(--brand-primary);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(37, 141, 200, 0.08);
  color: var(--brand-primary);
  box-shadow: none;
}

.blog-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 0.75rem 1.5rem rgba(37, 141, 200, 0.1);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin-bottom: 0.75rem;
}

.blog-link {
  color: var(--brand-primary);
  text-decoration: none;
}

.blog-link:hover {
  color: var(--brand-accent-dark);
}

.cta-section {
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
}

.cta-subtitle {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer {
  background: #f8fafc;
}

.footer-links a {
  color: var(--brand-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.floating-apply-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1030;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 0.5rem 1.25rem rgba(37, 141, 200, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(37, 141, 200, 0.35);
}

@media (max-width: 575.98px) {
  .floating-apply-btn {
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }
}

.application-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}

.application-hero-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
}

.application-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.application-section {
  padding: 1rem 0 2.5rem;
}

@media (min-width: 992px) {
  .application-section {
    padding: 3rem 0 5rem;
  }
}

.register-benefit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.navbar > .container:has(.register-benefit-badges-nav) {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
}

.register-benefit-badges-nav {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
  padding: 0.35rem 0;
  gap: clamp(0.25rem, 0.6vw, 0.5rem);
}

.register-benefit-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid #dbe3ea;
  border-radius: 0.5rem;
  background: #f4f7f9;
  color: var(--brand-primary, #258DC8);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.navbar > .container:has(.apply-nav-offer) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.4rem;
}

.navbar > .container:has(.apply-nav-offer) .apply-nav-logo {
  margin: 0;
}

.apply-nav-logo img {
  display: block;
  height: 2rem;
  width: auto;
}

.apply-nav-offer {
  margin: 0;
  text-align: center;
  color: var(--brand-primary, #258DC8);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.apply-nav-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--brand-primary, #258DC8);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-primary, #258DC8);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.apply-nav-help:hover,
.apply-nav-help:focus-visible {
  background: rgba(37, 141, 200, 0.08);
  color: var(--brand-primary, #258DC8);
}

@media (max-width: 1199.98px) {
  .register-benefit-badges-nav .register-benefit-badge {
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 767.98px) {
  .navbar > .container:has(.register-benefit-badges-nav) .navbar-brand {
    flex-shrink: 0;
    margin-right: 0.35rem;
  }

  .navbar > .container:has(.register-benefit-badges-nav) .navbar-brand img,
  .navbar > .container:has(.register-benefit-badges-nav) .pc-brand-logo {
    height: 2rem;
    width: auto;
  }

  .register-benefit-badges-nav {
    gap: 0.12rem;
  }

  .register-benefit-badges-nav .register-benefit-badge {
    padding: 0.1rem 0.16rem;
    font-size: 0.44rem;
  }
}

.application-trust-strip {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

.application-form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .application-form-card {
    padding: 2rem;
  }
}

.provider-register-lead {
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--brand-primary, #258DC8);
}

.provider-register-card {
  position: relative;
  overflow: hidden;
}

.provider-register-card.is-invite-invalid .provider-register-fieldset {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.35);
}

.provider-register-blocked-msg {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #9a3412;
}

.provider-register-stamp {
  position: absolute;
  top: 1.35rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  min-width: 7.5rem;
  padding: 0.55rem 0.85rem;
  border: 3px solid #c2410c;
  border-radius: 0.35rem;
  background: rgba(255, 247, 237, 0.92);
  color: #c2410c;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(12deg);
  box-shadow: 0 6px 18px rgba(154, 52, 18, 0.18);
  pointer-events: none;
}

.provider-register-stamp-title {
  font-family: Ubuntu, "Open Sans", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.provider-register-stamp-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

@media (max-width: 575.98px) {
  .provider-register-stamp {
    top: 0.85rem;
    right: 0.55rem;
    min-width: 6.5rem;
    padding: 0.45rem 0.65rem;
    transform: rotate(10deg);
  }
}

.form-control-mobile,
.form-select-mobile {
  min-height: 3rem;
  font-size: 16px; /* prevents iOS zoom on focus */
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 2.75rem;
}

.password-field-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #6b7280;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.password-field-toggle:hover,
.password-field-toggle:focus-visible {
  color: var(--brand-primary, #258DC8);
  outline: none;
}

.password-field-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(37, 141, 200, 0.35);
}

.password-field-icon {
  display: inline-flex;
}

.password-field-icon[hidden] {
  display: none !important;
}

.form-control::placeholder,
.form-control-mobile::placeholder,
.form-select::placeholder,
.us-date-input::placeholder {
  color: #9ca3af;
  opacity: 0.65;
  font-weight: 400;
}

.form-control::-webkit-input-placeholder,
.form-control-mobile::-webkit-input-placeholder {
  color: #9ca3af;
  opacity: 0.65;
  font-weight: 400;
}

.form-control::-moz-placeholder,
.form-control-mobile::-moz-placeholder {
  color: #9ca3af;
  opacity: 0.65;
  font-weight: 400;
}

.form-text-us {
  color: #6c757d;
  font-size: 0.85rem;
}

.application-form-card .form-label {
  margin-bottom: 0.35rem;
}

.field-validation-valid {
  display: none;
}

.field-validation-error {
  display: block;
  color: #b42318;
  margin-top: 0.35rem;
}

/* Material-style outlined floating fields (application forms) */
.app-outlined-field.form-floating {
  position: relative;
}

.app-outlined-field.form-floating > .form-control,
.app-outlined-field.form-floating > .form-select {
  min-height: 3.5rem;
  height: 3.5rem;
  padding: 1rem 0.9rem 0.55rem;
  border: 1px solid #9ca3af;
  border-radius: 0.35rem;
  background-color: #fff;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.35;
}

.app-outlined-field.form-floating > textarea.form-control {
  height: auto;
  min-height: 6rem;
  padding-top: 1.35rem;
}

.app-outlined-field.form-floating > label {
  inset: 0 auto auto 0.65rem;
  width: auto;
  max-width: calc(100% - 1.3rem);
  height: auto;
  padding: 0 0.35rem;
  margin: 0;
  overflow: hidden;
  color: #6b7280;
  background-color: #fff;
  border: 0;
  transform-origin: left center;
  transform: translateY(1.05rem) scale(1);
  transition:
    transform 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  pointer-events: none;
  z-index: 2;
}

.app-outlined-field.form-floating > .form-control:focus,
.app-outlined-field.form-floating > .form-select:focus {
  border-color: var(--brand-primary, #258DC8);
  border-width: 2px;
  box-shadow: none;
  outline: 0;
  padding-left: calc(0.9rem - 1px);
  padding-right: calc(0.9rem - 1px);
}

.app-outlined-field.app-outlined-field-affix.form-floating > .form-control:focus {
  padding-left: calc(0.95rem + var(--app-outlined-affix-width) + var(--app-outlined-affix-gap) - 1px);
}

.app-outlined-field.form-floating > .form-control:focus ~ label,
.app-outlined-field.form-floating > .form-control:not(:placeholder-shown) ~ label,
.app-outlined-field.form-floating > .form-control:-webkit-autofill ~ label,
.app-outlined-field.form-floating > .form-select:focus ~ label,
.app-outlined-field.form-floating > .form-select:not([value=""]):valid ~ label,
.app-outlined-field.form-floating > .form-select.has-value ~ label {
  transform: translateY(-0.55rem) scale(0.82);
  color: var(--brand-primary, #258DC8);
  opacity: 1;
}

.app-outlined-field.form-floating > .form-control:not(:focus):not(:placeholder-shown) ~ label,
.app-outlined-field.form-floating > .form-select:not(:focus).has-value ~ label,
.app-outlined-field.form-floating > .form-select:not(:focus):not([value=""]):valid ~ label {
  color: #6b7280;
}

.app-outlined-field.form-floating > .form-control.is-invalid,
.app-outlined-field.form-floating > .form-select.is-invalid,
.app-outlined-field.form-floating > .form-control.is-invalid:focus,
.app-outlined-field.form-floating > .form-select.is-invalid:focus {
  border-color: #dc3545;
}

.app-outlined-field.form-floating > .form-control.is-invalid ~ label,
.app-outlined-field.form-floating > .form-select.is-invalid ~ label,
.app-outlined-field.form-floating > .form-control.input-validation-error ~ label {
  color: #dc3545;
}

.app-outlined-field.form-floating > .form-control.input-validation-error,
.app-outlined-field.form-floating > .form-control.input-validation-error:focus {
  border-color: #dc3545;
}

.app-outlined-field.form-floating > .form-control::placeholder {
  color: transparent;
}

.app-outlined-field.form-floating > .form-control:focus::placeholder {
  color: #9ca3af;
  opacity: 0.75;
}

.app-outlined-field-affix {
  --app-outlined-affix-width: 0.75rem;
  --app-outlined-affix-gap: 0.55rem;
}

.app-outlined-field.app-outlined-field-affix > .app-outlined-affix {
  position: absolute;
  left: 0.95rem;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--app-outlined-affix-width);
  margin: 0;
  padding-top: 0.45rem;
  color: #4b5563;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  transform: none;
}

.app-outlined-field.app-outlined-field-affix.form-floating > .form-control {
  padding-left: calc(0.95rem + var(--app-outlined-affix-width) + var(--app-outlined-affix-gap));
}

/* Keep resting label to the right of $ so they don't overlap. */
.app-outlined-field.app-outlined-field-affix.form-floating > label {
  transform:
    translate(
      calc(var(--app-outlined-affix-width) + var(--app-outlined-affix-gap)),
      1.05rem
    )
    scale(1);
}

.app-outlined-field.app-outlined-field-affix.form-floating > .form-control:focus ~ label,
.app-outlined-field.app-outlined-field-affix.form-floating > .form-control:not(:placeholder-shown) ~ label,
.app-outlined-field.app-outlined-field-affix.form-floating > .form-control:-webkit-autofill ~ label {
  transform: translateY(-0.55rem) scale(0.82);
}

.app-outlined-field + .form-text,
.app-outlined-field + .form-text-us,
.app-outlined-field ~ .form-text-us {
  margin-top: 0.35rem;
}

.btn-app-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  color: #374151;
  line-height: 0;
}

.btn-app-back:hover,
.btn-app-back:focus-visible {
  background: #f9fafb;
  border-color: #9ca3af;
  color: var(--brand-primary, #258DC8);
  outline: none;
}

.btn-app-back:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(37, 141, 200, 0.25);
}

.application-submit-btn {
  min-height: 3.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.application-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.application-submit-wrap {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 1.25rem -1rem -1rem;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
  border-top: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .application-submit-wrap {
    position: static;
    margin: 1.5rem 0 0;
    padding: 0;
    background: transparent;
    border-top: 0;
  }
}

.page-application .site-footer .row > :not(:last-child),
.page-customer .site-footer .row > :not(:last-child) {
  display: none;
}

.page-application .site-footer .container,
.page-customer .site-footer .container {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.page-application .site-footer .border-top,
.page-customer .site-footer .border-top {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.page-application,
.page-customer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.apply-request-modal .modal-dialog {
  max-width: min(24rem, calc(100vw - 2rem));
}

.apply-request-modal .modal-content {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.apply-request-modal .modal-header {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 0.25rem;
  border-bottom: 0;
}

.apply-request-modal .modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--brand-ink-deep, #0f172a);
}

.apply-request-modal .apply-request-intro {
  margin: 0.3rem 0 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.45;
}

.apply-request-modal .btn-close {
  margin: 0.15rem 0 0 auto;
}

.apply-request-modal .modal-body {
  padding: 0.9rem 1.15rem 0.25rem;
}

.apply-request-modal .apply-request-fields {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.apply-request-modal .app-outlined-field > textarea.form-control {
  min-height: 8.5rem;
}

.apply-request-modal .modal-footer {
  gap: 0.6rem;
  padding: 0.9rem 1.15rem 1.15rem;
  border-top: 0;
}

.apply-request-modal .modal-footer .btn {
  flex: 1 1 0;
  min-height: 2.75rem;
}

.apply-request-sent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #1f2937;
}

.application-info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.application-resend-link {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-primary, #258DC8);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.application-resend-link:hover,
.application-resend-link:focus {
  color: var(--brand-primary-dark, #1b6f9c);
}

.application-info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.12rem;
  border-radius: 999px;
  background: var(--brand-primary, #258DC8);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.application-info-note-important {
  color: #1f2937;
}

.application-info-badge-important {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.05rem;
  background: var(--brand-accent, #FEA45A);
  font-size: 0.75rem;
}

.application-disclaimer {
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.application-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #374151;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(37, 141, 200, 0.1);
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.application-alert {
  border-radius: 0.75rem;
  border: none;
  background: #ecfdf5;
  color: #065f46;
  margin-bottom: 1rem;
}

.application-form-section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.application-form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.application-section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.otp-digits-row {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  max-width: 22rem;
}

.otp-digit-input {
  width: 2.75rem;
  min-height: 3.25rem;
  padding: 0.35rem 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 575.98px) {
  .otp-digits-row {
    max-width: none;
    gap: 0.35rem;
  }

  .otp-digit-input {
    width: 2.4rem;
    min-height: 3rem;
    font-size: 1.2rem;
  }
}

.application-progress {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.provider-register-progress {
  border-bottom: 0;
  padding-bottom: 0;
}

.application-progress-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0;
}

.application-progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  min-width: 0;
}

.application-progress-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.application-progress-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-progress-item.is-current .application-progress-marker {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.application-progress-item.is-current .application-progress-label {
  color: var(--brand-primary);
}

.application-progress-item.is-complete .application-progress-marker {
  border-color: var(--brand-primary);
  background: rgba(37, 141, 200, 0.12);
  color: var(--brand-primary);
}

.application-progress-item.is-complete .application-progress-label {
  color: #374151;
}

.application-progress-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.application-progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand-primary);
  transition: width 0.25s ease;
}

.application-progress-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
}

@media (max-width: 575.98px) {
  .application-progress-label {
    font-size: 0.65rem;
  }

  .application-progress-marker {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.75rem;
  }
}

.application-authorization-check .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
}

.application-authorization-check .form-check-label {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

.additional-income-group {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 2.5rem 0;
  }

  .min-vh-75 {
    min-height: auto;
  }

  .hero-section .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-section .btn-lg,
  .cta-section .btn-lg,
  .provider-hero .btn-lg {
    width: 100%;
  }

  .navbar .nav-link {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1rem;
  }

  .navbar .btn {
    min-height: 2.85rem;
    width: 100%;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }

  .navbar .dropdown-item {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-size: 1rem;
  }

  .navbar-collapse {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-path-card {
    padding: 1.25rem;
  }

  .application-hero .container {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .application-form-section {
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
  }

  .table-responsive {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .provider-qr-image {
    max-width: 180px;
    height: auto;
  }

  .floating-apply-btn {
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }

  .application-form-card .d-flex.flex-column .application-submit-btn,
  .application-form-card .d-flex.flex-column.flex-sm-row .btn {
    width: 100%;
  }
}

.analysis-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(37, 141, 200, 0.55);
  backdrop-filter: blur(2px);
}

.analysis-progress-overlay[hidden] {
  display: none !important;
}

.analysis-progress-card {
  width: min(28rem, 100%);
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  text-align: center;
}

.analysis-progress-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #258DC8;
}

.analysis-progress-message {
  margin: 0 0 1.25rem;
  color: #6c757d;
  font-size: 0.95rem;
}

.analysis-progress-track {
  position: relative;
  overflow: hidden;
  height: 0.55rem;
  border-radius: 999px;
  background: #e5e7eb;
}

.analysis-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  animation: analysis-progress-slide 1.2s ease-in-out infinite;
}

body.analysis-progress-open {
  overflow: hidden;
}

@keyframes analysis-progress-slide {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

.analysis-provider-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
}

.statement-select-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
}

.statement-select-row .form-check-input {
  margin-top: 0.35rem;
}

.provider-app-filters .form-label {
  font-size: 0.8125rem;
}

.provider-app-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.provider-app-filter-search,
.provider-app-filter-field,
.provider-app-filter-actions {
  min-width: 0;
}

.provider-app-filter-search {
  flex: 1 1 100%;
}

.provider-app-filter-field {
  flex: 1 1 calc(50% - 0.375rem);
}

.provider-app-filter-actions {
  display: flex;
  flex: 1 1 100%;
  gap: 0.5rem;
}

.provider-sent-links-scroll {
  max-height: 280px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.provider-sent-links-scroll .table {
  margin-bottom: 0;
}

.provider-sent-links-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  box-shadow: inset 0 -1px 0 #e5e7eb;
}

.provider-status-badge {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35em 0.7em;
  background: #e5e7eb;
  color: #374151;
}

.provider-status-badge.status-linksent,
.provider-status-badge.status-appinprogress,
.provider-status-badge.status-approved,
.provider-status-badge.status-checkedout,
.provider-status-badge.status-checkoutinprogress,
.provider-status-badge.status-pendingeffectivedate {
  background: rgba(37, 141, 200, 0.1);
  color: var(--brand-primary);
}

.provider-status-badge.status-fundinginprogress,
.provider-status-badge.status-refundinginprogress,
.provider-status-badge.status-chargeoffinprogress,
.provider-status-badge.status-debtsettlementinprogress {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.provider-status-badge.status-funded,
.provider-status-badge.status-refunded {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.provider-status-badge.status-notapproved,
.provider-status-badge.status-voided,
.provider-status-badge.status-cancelled,
.provider-status-badge.status-chargedoff,
.provider-status-badge.status-debtsettlementdone {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.provider-apps-table th {
  white-space: nowrap;
}

.provider-apps-table tbody tr.provider-app-row > * {
  background-color: transparent;
  box-shadow: none;
}

.provider-apps-table tbody tr.provider-app-row.status-linksent {
  background-color: #fff;
}

.provider-apps-table tbody tr.provider-app-row.status-appinprogress {
  background-color: rgba(37, 141, 200, 0.08);
}

.provider-apps-table tbody tr.provider-app-row.status-approved {
  background-color: rgba(22, 163, 74, 0.1);
}

.provider-apps-table tbody tr.provider-app-row.status-notapproved {
  background-color: rgba(220, 38, 38, 0.08);
}

.provider-apps-table tbody tr.provider-app-row.status-checkoutinprogress {
  background-color: rgba(14, 165, 233, 0.1);
}

.provider-apps-table tbody tr.provider-app-row.status-checkedout {
  background-color: rgba(37, 141, 200, 0.12);
}

.provider-apps-table tbody tr.provider-app-row.status-pendingeffectivedate {
  background-color: rgba(8, 145, 178, 0.1);
}

.provider-apps-table tbody tr.provider-app-row.status-fundinginprogress {
  background-color: rgba(217, 119, 6, 0.1);
}

.provider-apps-table tbody tr.provider-app-row.status-funded {
  background-color: rgba(22, 163, 74, 0.14);
}

.provider-apps-table tbody tr.provider-app-row.status-refundinginprogress {
  background-color: rgba(234, 88, 12, 0.1);
}

.provider-apps-table tbody tr.provider-app-row.status-refunded {
  background-color: rgba(101, 163, 13, 0.1);
}

.provider-apps-table tbody tr.provider-app-row.status-voided,
.provider-apps-table tbody tr.provider-app-row.status-cancelled,
.provider-apps-table tbody tr.provider-app-row.status-chargedoff,
.provider-apps-table tbody tr.provider-app-row.status-debtsettlementdone {
  background-color: rgba(220, 38, 38, 0.07);
}

.provider-apps-table tbody tr.provider-app-row.status-chargeoffinprogress,
.provider-apps-table tbody tr.provider-app-row.status-debtsettlementinprogress {
  background-color: rgba(217, 119, 6, 0.1);
}

.provider-apps-table tbody tr.provider-app-row:hover {
  filter: brightness(0.985);
}

.provider-checkout-modal .modal-header {
  align-items: flex-start;
  gap: 1rem;
}

.provider-checkout-modal .modal-title {
  font-family: var(--brand-font-display);
  color: var(--brand-ink-deep);
  font-weight: 600;
}

.provider-checkout-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--brand-radius);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.provider-checkout-summary-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.provider-checkout-summary-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.provider-checkout-summary-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brand-ink-deep);
  word-break: break-word;
}

.provider-checkout-amount-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid #d7e0ea;
  border-radius: 0.55rem;
  background: #fff;
}

.provider-checkout-amount-prefix {
  color: var(--brand-primary-dark);
  font-weight: 700;
}

.provider-checkout-amount-field .form-control {
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
  color: var(--brand-primary-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.provider-checkout-amount-field .form-control:focus {
  box-shadow: none;
}

.provider-checkout-amount-error {
  margin-top: 0.35rem;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.provider-checkout-section-title {
  float: none;
  width: auto;
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-ink-deep);
}

.provider-checkout-options {
  display: grid;
  gap: 0.6rem;
}

.provider-checkout-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--brand-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.provider-checkout-option:hover {
  border-color: rgba(37, 141, 200, 0.45);
}

.provider-checkout-option:has(input:checked) {
  border-color: var(--brand-primary);
  background: rgba(37, 141, 200, 0.06);
  box-shadow: inset 0 0 0 1px rgba(37, 141, 200, 0.2);
}

.provider-checkout-option .form-check-input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.provider-checkout-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.provider-checkout-option-title {
  font-weight: 600;
  color: var(--brand-ink-deep);
  line-height: 1.25;
}

.provider-checkout-option-desc {
  font-size: 0.85rem;
  color: var(--brand-muted);
  line-height: 1.35;
}

.provider-checkout-date-wrap {
  margin-top: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px dashed rgba(37, 141, 200, 0.35);
  border-radius: var(--brand-radius);
  background: rgba(37, 141, 200, 0.04);
}

@media (max-width: 575.98px) {
  .provider-checkout-summary {
    grid-template-columns: 1fr;
  }
}

#applications-table-host.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.page-provider .provider-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #163d4a 55%, #1f5a6b 100%);
}

.provider-hero-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
}

.provider-benefit-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.provider-benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand-accent);
}

.provider-step {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
}

.provider-step-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}

.provider-qr-wrap {
  padding: 1rem;
  border: 1px dashed #d1d5db;
  border-radius: 0.75rem;
  background: #fff;
}

.provider-qr-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.customer-offer-row {
  cursor: pointer;
}

.customer-offer-row:hover {
  background-color: rgba(37, 141, 200, 0.06);
}

.customer-offer-row.table-active {
  background-color: rgba(37, 141, 200, 0.12);
}

.customer-offer-panel,
.customer-offer-schedule-panel {
  border: 1px solid rgba(19, 38, 47, 0.1);
  border-radius: 0.75rem;
  background: rgba(244, 247, 246, 0.65);
  padding: 1rem 1.1rem;
  min-height: 12rem;
}

.customer-offer-schedule-header {
  flex: 0 0 auto;
}

.customer-offer-schedule-scroll {
  min-height: 0;
}

.customer-schedule-modal .modal-body {
  padding-top: 0.85rem;
}

.customer-schedule-modal .customer-offer-schedule {
  border: none;
  background: transparent;
  padding: 0;
  min-height: 0;
}

.customer-schedule-modal .customer-offer-schedule-scroll {
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  .customer-schedule-modal .modal-dialog {
    margin: 0;
  }

  .customer-schedule-modal .customer-offer-schedule-scroll {
    max-height: none;
  }
}

@media (min-width: 992px) {
  .customer-offers-layout {
    align-items: flex-start;
  }

  .customer-offers-list {
    overflow: visible;
  }

  .customer-offer-schedule-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .customer-offer-schedule-panel > .customer-offer-schedule:not(.d-none) {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .customer-offer-schedule-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
