:root {
  --brand-orange: #ff5100;
  --brand-yellow: #feab34;
  --brand-pink: #d10070;
  --brand-teal: #00778a;
  --brand-lightblue: #2173a6;
  --brand-darkblue: #004873;
  --brand-lime: #a7c200;
  --brand-olive: #5e7703;
  --brand-seagreen: #00a28c;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #5a697c;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 80px;
  background: white;
  color: var(--slate-800);
  font-family: "Nunito", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font-family: inherit;
}

a {
  color: inherit;
}
a:hover,
a:focus {
  text-decoration: none;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navbar-inverse {
  border-color: #fff !important;
}

.portal-container {
  max-width: 1280px;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-darkblue);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08);
}

.header-bar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate-800);
}

.brand-lockup:hover,
.brand-lockup:focus {
  color: var(--slate-800);
}

.brand-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--brand-seagreen),
    var(--brand-darkblue)
  );
  box-shadow: 0 6px 16px rgba(0, 72, 115, 0.18);
}

.brand-icon svg {
  width: 28px;
  height: 28px;
}
.brand-title {
  display: block;
  color: white;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}
.brand-subtitle {
  display: block;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(40, 139, 199, 0.1);
  border: 1px solid rgba(40, 139, 199, 0.2);
  color: var(--brand-lightblue);
  font-weight: 800;
}

.main-content {
  margin-top: 32px;
}

.notice-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 32px;
  border: 2px solid rgba(254, 171, 52, 0.5);
  border-radius: 18px;
  background: rgba(254, 171, 52, 0.1);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.notice-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: #fff;
}
.notice-icon svg {
  width: 24px;
  height: 24px;
}
.notice-banner h2 {
  margin: 0 0 2px;
  color: #78350f;
  font-size: 16px;
  font-weight: 800;
}
.notice-banner p {
  margin: 0;
  color: #92400e;
  font-size: 14px;
}
.notice-banner a {
  color: #92400e;
  font-weight: 800;
  text-decoration: underline;
}
.notice-banner a:hover {
  color: var(--brand-orange);
}

.welcome-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(
    90deg,
    var(--brand-darkblue),
    var(--brand-teal),
    var(--brand-seagreen)
  );
  box-shadow: 0 12px 24px rgba(0, 72, 115, 0.18);
}

.welcome-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(26px);
}
.welcome-blob-top {
  width: 260px;
  height: 260px;
  top: -96px;
  right: -96px;
  background: rgba(255, 255, 255, 0.14);
}
.welcome-blob-bottom {
  width: 190px;
  height: 190px;
  bottom: -96px;
  left: -48px;
  background: rgba(167, 194, 0, 0.25);
}

.row-flex {
  display: flex;
  flex-wrap: wrap;
}
.row-flex-middle {
  align-items: center;
}

.welcome-copy {
  position: relative;
  z-index: 1;
  color: #fff;
}
.welcome-copy h1 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.welcome-copy p {
  max-width: 580px;
  margin: 0 0 24px;
  color: rgba(198, 231, 250, 0.92);
  font-size: 18px;
  font-weight: 700;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border-radius: 999px;
  font-weight: 800;
  border-width: 0;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-orange {
  padding: 9px 21px;
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 5px 12px rgba(255, 81, 0, 0.25);
}
.btn-orange:hover,
.btn-orange:focus {
  color: #fff;
  background: #e84900;
}
.btn-white {
  padding: 10px 20px;
  background: #fff;
  color: var(--brand-darkblue);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.15);
}
.btn-white:hover,
.btn-white:focus {
  color: var(--brand-darkblue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.btn-glass {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-glass:hover,
.btn-glass:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.3);
}
.btn-pink {
  padding: 12px 18px;
  background: var(--brand-pink);
  color: #fff;
  box-shadow: 0 5px 14px rgba(226, 0, 122, 0.18);
}
.btn-pink:hover,
.btn-pink:focus {
  color: #fff;
  background: #c9006d;
}
.btn-darkblue {
  padding: 12px 24px;
  background: var(--brand-darkblue);
  color: #fff;
  box-shadow: 0 5px 14px rgba(0, 72, 115, 0.18);
}
.btn-darkblue:hover,
.btn-darkblue:focus {
  color: #fff;
  background: #003b5e;
}
.btn-outline-green {
  padding: 10px 24px;
  background: #fff;
  color: var(--brand-seagreen);
  border: 2px solid var(--brand-seagreen);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.btn-outline-green:hover,
.btn-outline-green:focus {
  color: #fff;
  background: var(--brand-seagreen);
}

.account-card {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  color: var(--slate-800);
  box-shadow: var(--shadow-soft);
}
.account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--slate-100);
}
.account-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.account-card h2 svg {
  color: var(--brand-pink);
  width: 20px;
  height: 20px;
}
.badge-verified {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(167, 194, 0, 0.2);
  color: var(--brand-olive);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.detail-block {
  margin-bottom: 12px;
}
.detail-label {
  display: block;
  margin-bottom: 3px;
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 5px;
  background-color: #e8e8e8;
  color: #000000;
  padding: 5px;
}
.detail-block strong {
  display: block;
  color: var(--slate-700);
  font-weight: 700;
}
.tight-row {
  margin-left: -5px;
  margin-right: -5px;
}
.tight-row > [class*="col-"] {
  padding-left: 5px;
  padding-right: 5px;
}
.btn-soft {
  width: 100%;
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  font-size: 13px;
  white-space: normal;
}
.btn-soft-blue {
  color: var(--brand-lightblue);
}
.btn-soft-blue:hover {
  background: rgba(40, 139, 199, 0.1);
  color: var(--brand-lightblue);
}
.btn-soft-pink {
  color: var(--brand-pink);
}
.btn-soft-pink:hover {
  background: rgba(226, 0, 122, 0.1);
  color: var(--brand-pink);
}

.tab-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--slate-200);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tab-scroll::-webkit-scrollbar {
  display: none;
}
.tab-pill {
  flex: 0 0 auto;
  padding: 10px 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  font-weight: 800;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}
.tab-pill:hover,
.tab-pill:focus {
  color: var(--brand-teal);
  border-color: var(--brand-teal);
}
.tab-pill.active {
  color: #fff;
  background: var(--brand-darkblue);
  border-color: var(--brand-darkblue);
  box-shadow: 0 6px 16px rgba(0, 72, 115, 0.2);
}

.dashboard-grid .row {
  margin-bottom: 0;
}
.widget-col {
  margin-bottom: 24px;
}
.widget-card {
  border: solid #ebebeb 1px !important;
  height: 100%;
  min-height: 100%;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--slate-100);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.widget-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.widget-card h2 {
  margin: 0 0 16px;
  color: var(--slate-800);
  font-size: 20px;
  font-weight: 800;
}
.council-tax-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.widget-head,
.widget-title-row,
.simple-title-row,
.title-lockup {
  display: flex;
  align-items: center;
}
.widget-head,
.widget-title-row,
.simple-title-row {
  justify-content: space-between;
  gap: 16px;
}
.widget-title-row {
  margin-bottom: 24px;
}
.title-lockup {
  gap: 12px;
}
.title-lockup h2,
.widget-title-row h2 {
  margin: 0;
}
.icon-box {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}
.icon-box svg {
  width: 24px;
  height: 24px;
}
.icon-pink {
  color: var(--brand-pink);
  background: rgba(226, 0, 122, 0.1);
}
.icon-olive {
  color: var(--brand-olive);
  background: rgba(120, 153, 3, 0.1);
}
.icon-dark {
  color: var(--brand-darkblue);
  background: rgba(0, 72, 115, 0.1);
}
.icon-lime {
  color: var(--brand-olive);
  background: rgba(167, 194, 0, 0.2);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 162, 140, 0.1);
  color: var(--brand-seagreen);
  font-size: 12px;
  font-weight: 800;
}
.status-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-seagreen);
}
.muted {
  margin: 0 0 16px;
  color: var(--slate-500);
  font-size: 14px;
}
.price {
  margin-bottom: 2px;
  color: var(--brand-darkblue);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
}
.next-payment {
  margin: 0 0 24px;
  color: var(--brand-orange);
  font-size: 14px;
  font-weight: 800;
}
.widget-link {
  color: var(--brand-teal);
  font-size: 14px;
  font-weight: 800;
}
.widget-link:hover {
  color: #007c8f;
  text-decoration: underline;
}

.collection-tile {
  display: block;
  width: 100%;
  min-height: 164px;
  padding: 16px 10px;
  border-radius: 18px;
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
  color: var(--slate-800);
  text-align: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.collection-tile:hover {
  background: var(--slate-100);
}
.collection-blue:hover {
  background: rgba(40, 139, 199, 0.06);
}
.collection-green:hover {
  background: rgba(167, 194, 0, 0.1);
}
.emoji {
  position: relative;
  display: block;
  height: 70px;
  font-size: 40px;
  line-height: 70px;
}
.has-check::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: calc(50% - 31px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--brand-seagreen);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
}
.tile-label {
  display: block;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.collection-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
}
.collection-blue strong {
  color: var(--brand-lightblue);
}
.collection-green strong {
  color: var(--brand-olive);
}

.service-grid .col-xs-6 {
  margin-bottom: 10px;
}
.service-tile {
  width: 100%;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  font-weight: 800;
  border: 1px solid transparent;
  background: var(--slate-50);
  color: var(--slate-700);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.service-tile svg {
  width: 32px;
  height: 32px;
  transition: color 0.2s ease;
}
.service-teal {
  border-color: rgba(0, 145, 167, 0.1);
  background: rgba(0, 145, 167, 0.05);
}
.service-teal svg {
  color: var(--brand-teal);
}
.service-teal:hover {
  color: #fff;
  background: var(--brand-teal);
}
.service-orange {
  border-color: rgba(255, 81, 0, 0.1);
  background: rgba(255, 81, 0, 0.05);
}
.service-orange svg {
  color: var(--brand-orange);
}
.service-orange:hover {
  color: #fff;
  background: var(--brand-orange);
}
.service-blue {
  border-color: rgba(40, 139, 199, 0.1);
  background: rgba(40, 139, 199, 0.05);
}
.service-blue svg {
  color: var(--brand-lightblue);
}
.service-blue:hover {
  color: #fff;
  background: var(--brand-lightblue);
}
.service-pink {
  border-color: rgba(226, 0, 122, 0.1);
  background: rgba(226, 0, 122, 0.05);
}
.service-pink svg {
  color: var(--brand-pink);
}
.service-pink:hover {
  color: #fff;
  background: var(--brand-pink);
}
.service-tile:hover svg {
  color: #fff;
}

.new-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.alert-item {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 0 12px 12px 0;
  border-left: 4px solid transparent;
}
.alert-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.alert-item p {
  margin: 0;
  font-size: 12px;
}
.alert-road {
  background: #fffbeb;
  border-color: var(--brand-yellow);
  color: #78350f;
}
.alert-event {
  background: rgba(40, 139, 199, 0.1);
  border-color: var(--brand-lightblue);
  color: var(--brand-darkblue);
}
.btn-linkish {
  margin-top: 4px;
  padding: 10px 12px;
  color: var(--brand-teal);
  background: transparent;
  border-radius: 12px;
}
.btn-linkish:hover {
  color: var(--brand-teal);
  background: var(--slate-50);
}

.planning-title {
  margin-bottom: 14px;
}
.postcode {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 800;
}
.timeline {
  position: relative;
  margin-top: 10px;
  padding-left: 10px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--slate-200),
    transparent
  );
}
.timeline-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 14px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-yellow);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
  z-index: 1;
}
.marker-green::before {
  border-color: var(--brand-seagreen);
}
.timeline-card {
  padding: 12px;
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.timeline-card:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.timeline-card a {
  color: var(--brand-lightblue);
  font-size: 14px;
  font-weight: 800;
}
.timeline-card a:hover {
  text-decoration: underline;
}
.timeline-card p {
  margin: 4px 0 8px;
  color: var(--slate-600);
  font-size: 12px;
}
.planning-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-yellow {
  color: #78350f;
  background: rgba(254, 171, 52, 0.2);
}
.status-green {
  color: var(--brand-seagreen);
  background: rgba(0, 162, 140, 0.2);
}

.garden-head {
  align-items: flex-start;
}
.segmented-control {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--slate-100);
}
.segmented-control button {
  border: 0;
  padding: 8px 16px;
  border-radius: 10px;
  background: transparent;
  color: var(--slate-500);
  font-weight: 800;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.segmented-control button.active {
  background: #fff;
  color: var(--slate-800);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.tab-stage {
  position: relative;
  min-height: 122px;
}
.garden-tab {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 120px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
}
.garden-tab.active {
  display: flex;
}
.tab-active {
  background: rgba(0, 162, 140, 0.05);
  border-color: rgba(0, 162, 140, 0.2);
}
.tab-expired {
  background: rgba(226, 0, 122, 0.05);
  border-color: rgba(226, 0, 122, 0.2);
}
.garden-message {
  display: flex;
  align-items: center;
  gap: 16px;
}
.garden-emoji {
  font-size: 48px;
  line-height: 1;
}
.faded {
  opacity: 0.55;
  filter: grayscale(1);
}
.garden-tab h3 {
  margin: 0 0 4px;
  color: var(--slate-700);
  font-size: 18px;
  font-weight: 800;
}
.garden-tab p {
  margin: 0;
  color: var(--slate-500);
  font-size: 14px;
}
.green-heading {
  color: var(--brand-seagreen) !important;
}
.pink-heading {
  color: var(--brand-pink) !important;
}

.combined-card .row {
  display: flex;
  flex-wrap: wrap;
}
.service-column {
  padding-right: 32px;
}
.councillor-column {
  padding-left: 32px;
  border-left: 1px solid var(--slate-100);
}
.nearby-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--slate-700);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.nearby-row:hover {
  color: var(--slate-700);
  background: var(--slate-50);
  border-color: var(--slate-100);
}
.nearby-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.nearby-blue {
  background: rgba(40, 139, 199, 0.1);
}
.nearby-olive {
  background: rgba(120, 153, 3, 0.1);
}
.nearby-row strong,
.nearby-row small {
  display: block;
}
.nearby-row small {
  color: var(--slate-500);
  font-size: 12px;
}
.chevron {
  margin-left: auto;
  color: var(--slate-700);
  font-size: 30px;
  line-height: 1;
}
.councillor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.councillor {
  width: 100px;
  text-align: center;
  color: var(--slate-700);
}
.councillor img {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 8px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--brand-teal);
  padding: 3px;
  transition: transform 0.2s ease;
}
.councillor:nth-child(2) img {
  border-color: var(--brand-lightblue);
}
.councillor:hover {
  color: var(--brand-teal);
}
.councillor:hover img {
  transform: scale(1.05);
}
.councillor strong,
.councillor small {
  display: block;
}
.councillor strong {
  font-size: 13px;
}
.councillor small {
  color: var(--slate-500);
  font-size: 12px;
}

.footer-wrap {
  margin-top: 24px;
  margin-bottom: 32px;
}
.stay-connected {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 28px;
  background: var(--brand-darkblue);
  color: #fff;
}
.footer-blob {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--brand-teal);
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
}
.stay-connected h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
}
.stay-connected p {
  max-width: 570px;
  margin: 0;
  color: rgba(198, 231, 250, 0.85);
  font-size: 18px;
}
.subscribe-form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
.subscribe-form:focus-within {
  box-shadow:
    0 0 0 4px rgba(0, 145, 167, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.14);
}
.subscribe-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  color: var(--slate-800);
  font-weight: 700;
  background: transparent;
}
.subscribe-form .btn {
  border-radius: 12px;
  padding: 12px 24px;
}

@media (min-width: 1200px) {
  .col-lg-4 {
    width: 33.33333333%;
  }
  .col-lg-8 {
    width: 66.66666667%;
  }
}

@media (min-width: 768px) {
  .equal-row {
    display: flex;
    flex-wrap: wrap;
  }
  .equal-row > [class*="col-"] {
    display: flex;
  }
  .equal-row .widget-card {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .welcome-copy {
    margin-bottom: 28px;
  }
  .service-column {
    padding-right: 15px;
  }
  .councillor-column {
    padding-left: 15px;
    padding-top: 24px;
    margin-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--slate-100);
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 40px;
  }
  .header-bar {
    min-height: 72px;
  }
  .brand-icon {
    display: none;
  }
  .brand-title {
    font-size: 18px;
  }
  .brand-subtitle {
    font-size: 13px;
  }
  .main-content {
    margin-top: 20px;
  }
  .notice-banner {
    align-items: flex-start;
    margin-bottom: 20px;
    border-radius: 16px;
  }
  .welcome-panel {
    padding: 24px 18px;
    border-radius: 22px;
    margin-bottom: 22px;
  }
  .welcome-copy {
    text-align: left;
  }
  .welcome-copy h1 {
    font-size: 30px;
  }
  .welcome-copy p {
    font-size: 16px;
  }
  .button-row .btn {
    flex: 1 1 100%;
  }
  .account-card {
    padding: 18px;
  }
  .account-card-head {
    align-items: flex-start;
  }
  .tab-pill {
    padding: 9px 18px;
  }
  .widget-card {
    padding: 20px;
    border-radius: 22px;
  }
  .widget-title-row,
  .simple-title-row {
    align-items: flex-start;
  }
  .widget-title-row {
    flex-direction: column;
    gap: 14px;
  }
  .bin-card .widget-title-row {
    flex-direction: column;
  }
  .collection-row > [class*="col-"] {
    margin-bottom: 10px;
  }
  .collection-tile {
    min-height: 132px;
  }
  .garden-head {
    flex-direction: column;
  }
  .segmented-control {
    width: 100%;
    display: flex;
  }
  .segmented-control button {
    flex: 1 1 0;
    padding-left: 8px;
    padding-right: 8px;
  }
  .garden-tab {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px;
  }
  .garden-message {
    flex-direction: column;
    gap: 10px;
  }
  .garden-tab .btn {
    width: 100%;
  }
  .combined-card .row {
    display: block;
  }
  .councillor-list {
    justify-content: flex-start;
    gap: 18px;
  }
  .stay-connected {
    padding: 28px 18px;
    border-radius: 22px;
  }
  .stay-connected h2 {
    font-size: 26px;
  }
  .stay-connected p {
    margin-bottom: 20px;
    font-size: 16px;
  }
  .subscribe-form {
    display: block;
    padding: 6px;
  }
  .subscribe-form input {
    display: block;
    width: 100%;
    padding: 12px;
  }
  .subscribe-form .btn {
    display: block;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .portal-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .price {
    font-size: 34px;
  }
  .status-pill {
    font-size: 11px;
    padding: 5px 8px;
  }
  .widget-head {
    align-items: flex-start;
  }
  .brand-title {
    max-width: 170px;
  }
}

#footer {
  background-color: #003b5e !important;
  color: white;
  display: flex;
  gap: 30px;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: #ffffff !important;
}

.navbar-inverse .navbar-nav > li > a {
  color: #ffffff !important;
  font-size: 16px !important;
}

#footer-Certs {
  display: flex;
  gap: 30px;
}

#page {
  background-color: #fff;
}

.service-groups a.fsservice-pretty-link.active {
  background-color: var(--brand-teal) !important;
}
.service-groups a.fsservice-pretty-link:hover {
  background-color: var(--brand-teal) !important;
}

.service-groups a.fsservice-pretty-link:link,
.service-groups a.fsservice-pretty-link:visited {
  background-color: var(--brand-darkblue);
  border-radius: 25px;
  color: white !important;
  display: flex;
  text-align: center;
  margin: 0 auto;
  justify-content: center;
  padding: 20px;
}

.guest-panel {
  background: linear-gradient(135deg, #004873 0%, #0091a7 48%, #00a28c 100%);
  border-radius: 28px;
  padding: 36px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 72, 115, 0.18);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.guest-panel:before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.guest-copy,
.guest-card {
  position: relative;
  z-index: 1;
}

.guest-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.guest-copy h2 {
  font-size: 38px;
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 14px;
}

.guest-copy p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 650px;
  margin-bottom: 24px;
}

.guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-pill {
  border-radius: 999px;
  font-weight: 800;
  padding: 12px 24px;
  border: 0;
}

.guest-panel .btn-primary {
  background: #fff;
  color: #004873;
}

.guest-panel .btn-primary:hover,
.guest-panel .btn-primary:focus {
  background: #f8fafc;
  color: #004873;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.guest-card {
  background: #fff;
  color: #1e293b;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.guest-card h3 {
  margin-top: 0;
  font-size: 21px;
  font-weight: 800;
  color: #004873;
}

.guest-card p {
  color: #64748b;
  margin-bottom: 18px;
}

.btn-service {
  background: #ff5100;
  color: #fff;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 800;
  border: 0;
  margin-bottom: 18px;
}

.btn-service:hover,
.btn-service:focus {
  background: #e84a00;
  color: #fff;
}

.guest-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guest-benefits li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #334155;
}

.guest-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #00a28c;
  font-weight: 900;
}

.guest-benefit-row {
  margin-top: 24px;
}

.guest-benefit-card {
  min-height: 230px;
}

.benefit-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.guest-benefit-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin-top: 0;
}

.guest-benefit-card p {
  color: #64748b;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .guest-panel {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .guest-copy h2 {
    font-size: 29px;
  }

  .guest-copy p {
    font-size: 15px;
  }

  .guest-actions .btn {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }

  .guest-card {
    margin-top: 24px;
    padding: 20px;
    border-radius: 20px;
  }

  .guest-benefit-card {
    min-height: 0;
    margin-bottom: 18px;
  }
}

.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background-color: var(--brand-darkblue) !important;
  color: white;
}

#main-content {
  min-height: 80vh;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
  background-color: var(--brand-darkblue);
}

.portal-footer {
  margin-top: 42px;
  padding: 0 0 34px;
}

.portal-footer-container {
  max-width: 1280px;
}

.portal-footer-card {
  background: #004873;
  color: #fff;
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 10px 30px rgba(0, 72, 115, 0.18);
  position: relative;
  overflow: hidden;
}

.portal-footer-card:before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 145, 167, 0.45);
  filter: blur(8px);
  pointer-events: none;
}

.portal-footer-card:after {
  content: "";
  position: absolute;
  left: -70px;
  top: -100px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(167, 194, 0, 0.18);
  pointer-events: none;
}

.footer-section {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #00a28c 0%, #0091a7 100%);
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.footer-logo svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-brand-lockup h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.footer-brand-lockup p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
  margin: 3px 0 0;
}

.footer-address {
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.portal-footer h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin: 3px 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #feab34;
  text-decoration: underline;
}

.footer-muted {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
  margin-bottom: 14px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  font-weight: 800;
  text-decoration: none;
}

.footer-social-link:hover,
.footer-social-link:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}

.footer-social-icon {
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-icon img {
  max-width: 19px;
  max-height: 19px;
  display: block;
}

.footer-actions-section .footer-btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  padding: 11px 14px;
  margin-bottom: 10px;
  text-align: center;
}

.footer-btn-orange {
  background: #ff5100;
  color: #fff;
}

.footer-btn-orange:hover,
.footer-btn-orange:focus {
  background: #e84a00;
  color: #fff;
}

.footer-btn-blue {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.footer-btn-blue:hover,
.footer-btn-blue:focus {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.footer-accreditations {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-smallprint {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
  margin: 11px 0 0;
}

.footer-badges {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-badges img {
  /* background: #fff; */
  border-radius: 12px;
  padding: 7px;
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .portal-footer {
    margin-top: 28px;
    padding-bottom: 22px;
  }

  .portal-footer-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .footer-section {
    margin-bottom: 26px;
  }

  .footer-brand-lockup {
    align-items: flex-start;
  }

  .footer-brand-lockup h2 {
    font-size: 18px;
  }

  .footer-links li {
    margin-bottom: 11px;
  }

  .footer-social-link,
  .footer-actions-section .footer-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-accreditations {
    margin-top: 0;
    padding-top: 18px;
  }

  .footer-smallprint {
    text-align: center;
    margin-bottom: 16px;
  }

  .footer-badges {
    justify-content: center;
  }

  .footer-badges img {
    max-height: 58px;
  }
}

@media (max-width: 420px) {
  .footer-brand-lockup {
    flex-direction: column;
  }

  .portal-footer-card {
    padding: 22px 16px;
  }

  .footer-badges {
    gap: 10px;
  }

  .footer-badges img {
    max-width: 135px;
  }
}

/* Fresh Popular Services widget extension
       Uses existing variables from vale-portal-styles.css and Bootstrap 3 grid.
       Layout: lg = 4 across, md and below = 2 x 2. */

.popular-services-showcase {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid var(--slate-100);
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 162, 140, 0.16),
      transparent 32%
    ),
    linear-gradient(135deg, #ffffff 0%, var(--slate-50) 100%);
  box-shadow: var(--shadow-soft);
}

.popular-services-showcase:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(
    to bottom,
    var(--brand-pink),
    var(--brand-orange),
    var(--brand-seagreen),
    var(--brand-lightblue)
  );
}

.popular-services-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.popular-services-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--brand-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popular-services-kicker:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand-orange);
  box-shadow:
    14px 0 0 var(--brand-pink),
    28px 0 0 var(--brand-seagreen);
}

.popular-services-showcase h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.popular-services-subtitle {
  max-width: 420px;
  margin: 5px 0 0;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 700;
}

.popular-services-all-link {
  flex: 0 0 auto;
  color: var(--brand-darkblue);
  font-size: 14px;
  font-weight: 800;
  border-bottom: 2px solid rgba(0, 72, 115, 0.16);
}

.popular-services-all-link:hover,
.popular-services-all-link:focus {
  color: var(--brand-teal);
  border-color: var(--brand-teal);
}

.popular-service-list {
  position: relative;
  z-index: 1;
  margin-left: -8px;
  margin-right: -8px;
}

.popular-service-item {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 16px;
}

.popular-service-card {
  position: relative;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  padding: 24px 16px 20px;
  border-radius: 24px;
  color: #fff;
  text-align: center;
  isolation: isolate;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.popular-service-card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--service-bg, var(--brand-darkblue));
}

.popular-service-card:after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -34px;
  top: -42px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: -76px 142px 0 rgba(255, 255, 255, 0.1);
}

.popular-service-card:hover,
.popular-service-card:focus {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
  filter: saturate(1.08);
  outline: none;
}

.popular-service-icon-wrap {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.popular-service-icon-wrap svg {
  width: 35px;
  height: 35px;
  stroke-width: 2.15;
}

.popular-service-name {
  display: block;
  max-width: 150px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.18;
}

.popular-service-helper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 16%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-council-tax {
  --service-bg: linear-gradient(135deg, var(--brand-pink) 0%, #a9005d 100%);
}
.service-pest-control {
  --service-bg: linear-gradient(
    135deg,
    var(--brand-seagreen) 0%,
    var(--brand-olive) 100%
  );
}
.service-homes4u {
  --service-bg: linear-gradient(
    135deg,
    var(--brand-lightblue) 0%,
    var(--brand-darkblue) 100%
  );
}
.service-missed-collections {
  --service-bg: linear-gradient(
    135deg,
    var(--brand-orange) 0%,
    var(--brand-yellow) 100%
  );
}

@media (max-width: 1199px) {
  .popular-service-card {
    min-height: 196px;
  }
}

@media (max-width: 767px) {
  .popular-services-showcase {
    padding: 22px 16px 14px 20px;
    border-radius: 22px;
  }

  .popular-services-header {
    display: block;
    margin-bottom: 18px;
  }

  .popular-services-all-link {
    display: inline-block;
    margin-top: 10px;
  }

  .popular-services-showcase h2 {
    font-size: 22px;
  }
  .popular-services-subtitle {
    font-size: 13px;
  }
  .popular-service-item {
    margin-bottom: 10px;
  }
  .popular-service-card {
    min-height: 150px;
    padding: 20px 10px 16px;
    border-radius: 20px;
  }

  .popular-service-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .popular-service-icon-wrap svg {
    width: 30px;
    height: 30px;
  }

  .popular-service-name {
    font-size: 14px;
  }
  .popular-service-helper {
    font-size: 10px;
    padding-left: 7px;
    padding-right: 7px;
  }
}

.btn.active .caret {
  bottom: -11px;
  position: absolute;
  color: var(--brand-darkblue);
  left: 41%;
  display: block !important;
  border-top-color: var(--brand-darkblue);
  border-bottom-color: var(--brand-darkblue);
  border-top-width: 10px;
  border-right-width: 10px;
  border-left-width: 10px;
}
