:root {
  --portal-primary: #cd2c22;
  --portal-primary-dark: #a72119;
  --portal-ink: #17233c;
  --portal-muted: #65758b;
  --portal-surface: #ffffff;
  --portal-surface-soft: #f6f7fb;
  --portal-border: #e7eaf0;
  --portal-footer: #17233c;
  --portal-radius: 1rem;
  --portal-shadow: 0 1rem 2.75rem rgb(20 32 54 / 10%);
  --bs-primary: var(--portal-primary);
  --bs-primary-rgb: 205, 44, 34;
  --bs-link-color: var(--portal-primary);
  --bs-link-color-rgb: 205, 44, 34;
  --bs-link-hover-color: var(--portal-primary-dark);
  --bs-link-hover-color-rgb: 167, 33, 25;
  --bs-focus-ring-color: rgb(205 44 34 / 25%);
}

body.portal-body {
  background: var(--portal-surface);
  color: var(--portal-ink);
  font-family: "Inter", "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

.btn-primary {
  --bs-btn-bg: var(--portal-primary);
  --bs-btn-border-color: var(--portal-primary);
  --bs-btn-hover-bg: var(--portal-primary-dark);
  --bs-btn-hover-border-color: var(--portal-primary-dark);
  --bs-btn-active-bg: var(--portal-primary-dark);
  --bs-btn-active-border-color: var(--portal-primary-dark);
  --bs-btn-disabled-bg: var(--portal-primary);
  --bs-btn-disabled-border-color: var(--portal-primary);
}

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

.portal-header {
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--portal-border);
  position: relative;
  z-index: 20;
}

.portal-header .navbar {
  min-height: 5rem;
}

.portal-brand {
  align-items: center;
  color: var(--portal-ink);
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 800;
  gap: 0.65rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.portal-brand-mark {
  align-items: center;
  background: var(--portal-primary);
  border-radius: 0.75rem;
  color: #fff;
  display: inline-flex;
  height: 2.55rem;
  justify-content: center;
  width: 2.55rem;
}

.portal-header .nav-link {
  color: var(--portal-ink);
  font-weight: 600;
  padding-inline: 1rem !important;
}

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

.portal-account-actions {
  font-weight: 700;
}

.portal-account-actions,
.portal-customer-name {
  min-width: 0;
}

.portal-customer-name {
  box-sizing: border-box;
  max-width: min(18rem, 40vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-register-link {
  align-items: center;
  background: var(--portal-primary);
  border-color: var(--portal-primary);
  display: inline-flex;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.7rem 1.15rem;
}

.portal-register-link:hover,
.portal-register-link:focus {
  background: var(--portal-primary-dark);
  border-color: var(--portal-primary-dark);
}

.portal-main {
  min-height: calc(100vh - 22rem);
}

.home-two-hero {
  background:
    linear-gradient(100deg, rgb(15 26 50 / 88%), rgb(15 26 50 / 54%)),
    radial-gradient(circle at 80% 20%, #5c7898, #18243d 58%, #0d1729);
  color: #fff;
  overflow: hidden;
  padding: 6.5rem 0 7.5rem;
  position: relative;
}

.home-two-hero::after {
  background: rgb(255 255 255 / 8%);
  border-radius: 50%;
  content: "";
  height: 28rem;
  position: absolute;
  right: -9rem;
  top: -12rem;
  width: 28rem;
}

.home-two-hero-content {
  max-width: 53rem;
  position: relative;
  z-index: 1;
}

.home-two-eyebrow,
.portal-section-eyebrow {
  color: #ffd2cf;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-two-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.65rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.03;
  max-width: 47rem;
}

.home-two-hero .lead {
  color: rgb(255 255 255 / 78%);
  max-width: 42rem;
}

.portal-search-shell {
  background: var(--portal-surface);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 24%);
  color: var(--portal-ink);
  margin-top: 2.25rem;
  padding: 0.8rem;
}

.portal-search-shell .form-control {
  border: 0;
  min-height: 3.4rem;
}

.portal-search-shell .btn {
  min-height: 3.4rem;
}

.portal-section {
  padding: 5.5rem 0;
}

.portal-section-soft {
  background: var(--portal-surface-soft);
}

.portal-section-heading {
  margin-inline: auto;
  max-width: 43rem;
}

.portal-section-heading h2 {
  font-weight: 800;
  letter-spacing: -0.035em;
}

.portal-experience-card {
  background: var(--portal-surface);
  border: 1px dashed #d5dae4;
  border-radius: 1rem;
  height: 100%;
  padding: 1.75rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.portal-experience-card:hover {
  box-shadow: 0 1rem 2.75rem rgb(20 32 54 / 10%);
  transform: translateY(-3px);
}

.portal-experience-icon {
  align-items: center;
  background: #fff0ef;
  border-radius: 0.85rem;
  color: var(--portal-primary);
  display: inline-flex;
  font-size: 1.35rem;
  height: 3rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  width: 3rem;
}

.portal-steps {
  counter-reset: portal-step;
}

.portal-step {
  position: relative;
}

.portal-step::before {
  align-items: center;
  background: var(--portal-primary);
  border-radius: 50%;
  color: #fff;
  content: counter(portal-step);
  counter-increment: portal-step;
  display: flex;
  font-weight: 800;
  height: 2.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.5rem;
}

.skin-dark-footer {
  background: var(--portal-footer);
  color: rgb(255 255 255 / 70%);
  padding: 3.5rem 0 1.5rem;
}

.skin-dark-footer a {
  color: rgb(255 255 255 / 78%);
  text-decoration: none;
}

.skin-dark-footer a:hover,
.skin-dark-footer a:focus {
  color: #fff;
}

.skin-dark-footer .footer-heading,
.skin-dark-footer .portal-brand {
  color: #fff;
}

.portal-footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 14%);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

@media (max-width: 991.98px) {
  .portal-header .navbar-collapse,
  .portal-account-actions {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .portal-header .navbar {
    min-height: 4.5rem;
  }

  .portal-customer-name {
    max-width: 100%;
    width: 100%;
  }

  .home-two-hero {
    padding: 4.5rem 0 5rem;
  }

  .portal-search-shell {
    padding: 1rem;
  }

  .portal-section {
    padding: 4rem 0;
  }
}
