.h2o-portal-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 0 56px;
  color: #193447 !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

body.h2o-portal-page #main {
  background:
    radial-gradient(circle at top left, rgba(84, 194, 216, 0.08), transparent 35%),
    linear-gradient(180deg, #f6fbfd 0%, #ffffff 100%) !important;
}

.h2o-portal-template-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.h2o-portal-template-hero {
  padding: 52px 0 24px;
}

.h2o-portal-template-heading {
  max-width: 760px;
}

.h2o-portal-template-kicker {
  margin: 0 0 12px;
  color: #11648a !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.h2o-portal-template-title {
  margin: 0;
  color: #09243a !important;
  font-size: clamp(40px, 5vw, 62px) !important;
  line-height: 0.98 !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
}

.h2o-portal-template-intro {
  max-width: 640px;
  margin: 18px 0 0 !important;
  color: rgba(25, 52, 71, 0.82) !important;
  font-size: 19px !important;
  line-height: 1.6 !important;
}

.h2o-portal-template-content {
  padding: 0 0 56px;
}

body.h2o-portal-page .sidebar,
body.h2o-portal-page .wpb_widgetised_column,
body.h2o-portal-page .sidebar-right,
body.h2o-portal-page .sidebar-left,
body.page-id-2994 .sidebar,
body.page-id-2994 .wpb_widgetised_column,
body.page-id-2994 .sidebar-right,
body.page-id-2994 .sidebar-left,
body.page-id-2995 .sidebar,
body.page-id-2995 .wpb_widgetised_column,
body.page-id-2995 .sidebar-right,
body.page-id-2995 .sidebar-left {
  display: none !important;
}

body.h2o-portal-page .content,
body.h2o-portal-page .content-area,
body.h2o-portal-page .wf-container-main,
body.h2o-portal-page .wf-wrap,
body.page-id-2994 .content,
body.page-id-2994 .content-area,
body.page-id-2994 .wf-container-main,
body.page-id-2994 .wf-wrap,
body.page-id-2995 .content,
body.page-id-2995 .content-area,
body.page-id-2995 .wf-container-main,
body.page-id-2995 .wf-wrap {
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.h2o-portal-page .wf-container-main {
  padding-top: 0 !important;
  padding-bottom: 40px !important;
}

body.page-id-2994 .wf-container-main,
body.page-id-2995 .wf-container-main {
  padding-top: 0 !important;
  padding-bottom: 40px !important;
}

body.h2o-portal-page .page-title {
  display: none !important;
}

body.page-id-2994 .page-title,
body.page-id-2995 .page-title {
  display: none !important;
}

body.h2o-portal-page .page-title .breadcrumbs,
body.h2o-portal-page .page-title .breadcrumbs a,
body.h2o-portal-page .page-title .assistive-text {
  color: rgba(25, 52, 71, 0.68) !important;
}

body.h2o-portal-page .page-title h1 {
  color: #09243a !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

body.page-id-2994 .page-title h1,
body.page-id-2995 .page-title h1 {
  color: #09243a !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

body.h2o-portal-page #content > .h2o-portal-shell,
body.page-id-2994 #content > .h2o-portal-shell,
body.page-id-2995 #content > .h2o-portal-shell {
  display: block !important;
  position: relative !important;
  clear: both !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 320px !important;
  margin-bottom: 36px !important;
  z-index: 3 !important;
}

body.h2o-portal-page .h2o-portal-auth-grid,
body.h2o-portal-page .h2o-portal-card,
body.h2o-portal-page .h2o-portal-header,
body.page-id-2994 .h2o-portal-auth-grid,
body.page-id-2994 .h2o-portal-card,
body.page-id-2994 .h2o-portal-header,
body.page-id-2995 .h2o-portal-auth-grid,
body.page-id-2995 .h2o-portal-card,
body.page-id-2995 .h2o-portal-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.h2o-portal-page .h2o-portal-auth-grid,
body.page-id-2994 .h2o-portal-auth-grid,
body.page-id-2995 .h2o-portal-auth-grid {
  display: grid !important;
}

.h2o-portal-shell,
.h2o-portal-shell p,
.h2o-portal-shell li,
.h2o-portal-shell label,
.h2o-portal-shell span,
.h2o-portal-shell strong,
.h2o-portal-shell div {
  color: #193447 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-family: inherit !important;
}

.h2o-portal-shell h2,
.h2o-portal-shell h3,
.h2o-portal-shell h4 {
  color: #09243a !important;
  opacity: 1 !important;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

.h2o-portal-shell h2 {
  font-size: 42px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
}

.h2o-portal-shell h3 {
  font-size: 32px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}

.h2o-portal-shell h4 {
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.h2o-portal-shell p,
.h2o-portal-shell li,
.h2o-portal-shell a,
.h2o-portal-shell strong,
.h2o-portal-shell span {
  font-size: 18px !important;
  line-height: 1.5 !important;
}

.h2o-portal-shell a {
  color: #11648a !important;
  opacity: 1 !important;
}

body .main-nav > li.h2o-portal-menu-link > a,
body .mobile-main-nav > li.h2o-portal-menu-link > a {
  font-weight: 800 !important;
}

.h2o-portal-topbar-actions {
  position: absolute;
  top: 8px;
  right: max(170px, calc((100vw - 1280px) / 2 + 34px));
  z-index: 10002;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.h2o-portal-topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 100, 138, 0.22);
  background: rgba(84, 194, 216, 0.14);
  color: #0a2a3f !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 18px rgba(9, 36, 58, 0.08);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  transition:
    background 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.h2o-portal-topbar-link:hover,
.h2o-portal-topbar-link:focus {
  background: rgba(84, 194, 216, 0.24);
  border-color: rgba(17, 100, 138, 0.36);
  color: #09243a !important;
  transform: translateY(-1px);
}

.h2o-portal-topbar-link-logout {
  background: rgba(255, 183, 77, 0.16);
  border-color: rgba(255, 183, 77, 0.28);
}

.h2o-portal-inline-contact-link,
.h2o-portal-inline-contact-link:visited {
  color: inherit !important;
  text-decoration: none !important;
}

.h2o-portal-inline-contact-link:hover,
.h2o-portal-inline-contact-link:focus {
  color: #0f8fe8 !important;
  text-decoration: underline !important;
}

.h2o-portal-header,
.h2o-portal-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 253, 0.96));
  border: 1px solid rgba(9, 36, 58, 0.08);
  border-radius: 28px;
  box-shadow: 0 22px 54px rgba(9, 36, 58, 0.08);
}

.h2o-portal-header {
  padding: 28px 30px;
  margin-bottom: 22px;
}

.h2o-portal-kicker {
  margin: 0 0 8px;
  color: #11648a !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px !important;
  font-weight: 700;
}

.h2o-portal-auth-grid,
.h2o-portal-list,
.h2o-portal-subgrid,
.h2o-portal-grid,
.h2o-portal-form {
  display: grid;
  gap: 18px;
}

.h2o-portal-auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h2o-portal-auth-grid .h2o-portal-form {
  grid-template-columns: 1fr;
}

.h2o-portal-card {
  padding: 24px;
}

.h2o-portal-auth-grid .h2o-portal-card {
  padding: 28px;
}

.h2o-portal-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.h2o-portal-card-header p {
  margin: 6px 0 0 !important;
}

.h2o-portal-child-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.h2o-portal-child-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  overflow: hidden;
  flex: 0 0 72px;
  background: linear-gradient(135deg, #0f5f84, #54c2d8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(9, 36, 58, 0.12);
}

.h2o-portal-child-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h2o-portal-child-avatar span {
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  color: #fff !important;
}

.h2o-portal-child-copy {
  min-width: 0;
}

.h2o-portal-child-copy h3 {
  margin: 0 !important;
}

.h2o-portal-child-copy p {
  margin: 6px 0 0 !important;
}

.h2o-portal-badge {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.h2o-portal-badge.status-paid {
  background: rgba(26, 170, 114, 0.14);
  color: #127b50;
}

.h2o-portal-badge.status-partial {
  background: rgba(255, 183, 77, 0.18);
  color: #8c5a00;
}

.h2o-portal-badge.status-unpaid {
  background: rgba(212, 76, 61, 0.14);
  color: #a52d22;
}

.h2o-portal-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.h2o-portal-subgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.h2o-portal-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(9, 36, 58, 0.04);
}

.h2o-portal-stat strong {
  display: block;
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.h2o-portal-stat-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(25, 52, 71, 0.66) !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.h2o-portal-note,
.h2o-portal-divider {
  margin: 18px 0;
}

.h2o-portal-agreement-card {
  margin: 18px 0 24px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(17, 100, 138, 0.06);
  border: 1px solid rgba(17, 100, 138, 0.12);
}

.h2o-portal-agreement-card h4,
.h2o-portal-agreement-card p {
  margin-bottom: 10px !important;
}

.h2o-portal-agreement-form {
  margin-top: 16px;
}

.h2o-portal-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
}

.h2o-portal-checkbox input[type="checkbox"] {
  width: auto !important;
  margin-top: 4px;
}

.h2o-portal-checkbox span {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.h2o-portal-agreement-status {
  margin-top: 16px;
}

.h2o-portal-note {
  padding: 18px;
  border-radius: 18px;
  background: rgba(84, 194, 216, 0.1);
}

.h2o-portal-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.h2o-portal-divider {
  height: 1px;
  background: rgba(9, 36, 58, 0.08);
}

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

.h2o-portal-form label {
  display: grid;
  gap: 8px;
  color: #193447 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  opacity: 1 !important;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

.h2o-portal-form input,
.h2o-portal-form select,
.h2o-portal-form textarea,
.h2o-portal-auth-grid input,
.h2o-portal-auth-grid select,
.h2o-portal-auth-grid textarea {
  color: #193447 !important;
  -webkit-text-fill-color: #193447 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(9, 36, 58, 0.12) !important;
  opacity: 1 !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  padding: 14px 18px !important;
  min-height: 58px !important;
  letter-spacing: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

.h2o-portal-form input::placeholder,
.h2o-portal-form textarea::placeholder,
.h2o-portal-auth-grid input::placeholder,
.h2o-portal-auth-grid textarea::placeholder {
  color: rgba(25, 52, 71, 0.48) !important;
  -webkit-text-fill-color: rgba(25, 52, 71, 0.48) !important;
  opacity: 1 !important;
}

.h2o-portal-form input,
.h2o-portal-form select,
.h2o-portal-form textarea,
.h2o-portal-form button,
.h2o-portal-auth-grid input,
.h2o-portal-auth-grid select,
.h2o-portal-auth-grid textarea,
.h2o-portal-auth-grid button {
  width: 100%;
}

.h2o-portal-full {
  grid-column: 1 / -1;
}

.h2o-portal-form button,
.h2o-portal-auth-grid button,
.h2o-portal-card .button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #09243a, #11648a);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 58px;
  width: 100%;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

.h2o-portal-form button,
.h2o-portal-auth-grid button,
.h2o-portal-card .button,
.h2o-portal-form button:hover,
.h2o-portal-auth-grid button:hover,
.h2o-portal-card .button:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.h2o-portal-form button span,
.h2o-portal-auth-grid button span,
.h2o-portal-card .button span {
  display: none !important;
}

.h2o-portal-form button::after,
.h2o-portal-auth-grid button::after,
.h2o-portal-card .button::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
  z-index: 2;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

.h2o-portal-files li {
  margin-bottom: 10px;
}

.h2o-portal-files a {
  font-size: 17px !important;
  font-weight: 700 !important;
}

.h2o-portal-auth-grid #loginform label,
.h2o-portal-auth-grid #loginform p,
.h2o-portal-auth-grid #loginform a {
  color: #193447 !important;
  opacity: 1 !important;
}

.h2o-portal-shell .h2o-portal-header *,
.h2o-portal-shell .h2o-portal-card *,
.h2o-portal-shell .h2o-portal-auth-grid *,
.h2o-portal-shell .h2o-portal-list * {
  opacity: 1 !important;
}

.h2o-portal-shell input[type="text"],
.h2o-portal-shell input[type="email"],
.h2o-portal-shell input[type="password"],
.h2o-portal-shell input[type="file"],
.h2o-portal-shell input[type="date"],
.h2o-portal-shell select,
.h2o-portal-shell textarea {
  color: #193447 !important;
  -webkit-text-fill-color: #193447 !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

.h2o-portal-shell .button,
.h2o-portal-shell button,
.h2o-portal-shell input[type="submit"] {
  opacity: 1 !important;
}

.h2o-portal-shell .user-login,
.h2o-portal-shell .user-pass,
.h2o-portal-shell .login-remember,
.h2o-portal-shell .login-submit {
  color: #193447 !important;
}

.h2o-portal-files {
  list-style: none;
  margin: 0;
  padding: 0;
}

.h2o-portal-files li + li {
  margin-top: 10px;
}

.h2o-portal-files a {
  color: #11648a;
  text-decoration: none;
  font-weight: 600;
}

.h2o-portal-files a:hover {
  text-decoration: underline;
}

.h2o-portal-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.h2o-portal-media-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(9, 36, 58, 0.04);
  border: 1px solid rgba(9, 36, 58, 0.08);
}

.h2o-portal-media-preview {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(9, 36, 58, 0.08);
  min-height: 180px;
}

.h2o-portal-media-preview img,
.h2o-portal-media-preview video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  background: #091722;
}

.h2o-portal-media-preview video {
  object-fit: contain;
}

.h2o-portal-media-link {
  display: block;
  text-decoration: none !important;
}

.h2o-portal-media-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.h2o-portal-media-meta strong {
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.h2o-portal-media-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(84, 194, 216, 0.12);
  color: #11648a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.h2o-portal-file-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 18px;
  text-align: center;
}

.h2o-portal-notice {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
}

.h2o-portal-notice.is-success {
  background: rgba(26, 170, 114, 0.12);
  color: #127b50;
}

.h2o-portal-notice.is-error {
  background: rgba(212, 76, 61, 0.12);
  color: #9a3025;
}

@media (max-width: 991px) {
  body.h2o-portal-page .content,
  body.h2o-portal-page .content-area,
  body.h2o-portal-page .wf-container-main,
  body.h2o-portal-page .wf-wrap {
    max-width: calc(100% - 32px) !important;
  }

  .h2o-portal-template-hero {
    padding-top: 38px;
  }

  .h2o-portal-topbar-actions {
    right: 126px;
  }

  .h2o-portal-auth-grid,
  .h2o-portal-subgrid,
  .h2o-portal-grid,
  .h2o-portal-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 767px) {
  body.h2o-portal-page .wf-container-main {
    padding-top: 8px !important;
    padding-bottom: 24px !important;
  }

  .h2o-portal-template-wrap {
    width: min(100% - 24px, 1180px);
  }

  .h2o-portal-template-hero {
    padding: 24px 0 10px;
  }

  .h2o-portal-template-title {
    font-size: 34px !important;
    line-height: 1.02 !important;
  }

  .h2o-portal-template-intro {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .h2o-portal-topbar-actions {
    position: static;
    justify-content: center;
    width: 100%;
    margin: 8px auto 0;
    gap: 8px;
  }

  .h2o-portal-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .h2o-portal-child-avatar {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    border-radius: 18px;
  }

  .h2o-portal-topbar-link {
    min-height: 26px;
    padding: 0 11px;
    font-size: 12px !important;
  }

  .h2o-portal-shell {
    font-size: 16px !important;
    padding-bottom: 28px;
  }

  .h2o-portal-shell p,
  .h2o-portal-shell li,
  .h2o-portal-shell a,
  .h2o-portal-shell strong,
  .h2o-portal-shell span {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .h2o-portal-auth-grid,
  .h2o-portal-subgrid,
  .h2o-portal-grid,
  .h2o-portal-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .h2o-portal-card,
  .h2o-portal-header {
    padding: 18px;
    border-radius: 22px;
  }

  .h2o-portal-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .h2o-portal-badge {
    align-self: flex-start;
  }

  .h2o-portal-grid {
    margin-bottom: 14px;
  }

  .h2o-portal-stat {
    padding: 14px;
  }

  .h2o-portal-stat strong,
  .h2o-portal-stat span {
    word-break: break-word;
  }

  .h2o-portal-auth-grid input,
  .h2o-portal-auth-grid select,
  .h2o-portal-auth-grid textarea,
  .h2o-portal-shell input[type="text"],
  .h2o-portal-shell input[type="email"],
  .h2o-portal-shell input[type="password"],
  .h2o-portal-shell input[type="file"],
  .h2o-portal-shell input[type="date"],
  .h2o-portal-shell select,
  .h2o-portal-shell textarea {
    min-height: 52px !important;
    font-size: 16px !important;
    padding: 14px 16px !important;
  }

  .h2o-portal-shell textarea,
  .h2o-portal-auth-grid textarea {
    min-height: 140px !important;
  }

  .h2o-portal-auth-grid button,
  .h2o-portal-shell .button,
  .h2o-portal-shell button,
  .h2o-portal-shell input[type="submit"] {
    width: 100%;
    min-height: 52px !important;
    font-size: 18px !important;
    padding: 0 18px !important;
  }

  .h2o-portal-media-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .h2o-portal-media-action {
    width: 100%;
    min-height: 44px;
  }

  .h2o-portal-media-preview {
    border-radius: 18px;
  }

  .h2o-portal-notice {
    padding: 12px 14px;
    border-radius: 14px;
  }
}
