/* Combined style.css (base + modern overrides) */

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.nav-links>a,
.nav-right>a,
.nav-right>.profile-wrap>a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(233, 212, 187, .25);
  border: 0;
  color: #fff;
  padding: 10px 25px;
  border-radius: 1100px;
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
}

.help-pill,
.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  border-radius: 1100px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
}

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: auto;
  overflow-y: auto;

}

.home-hero--img .home-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, 0) 78%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: none;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .14) 45%, rgba(0, 0, 0, 0) 80%),
    var(--hero-image, url("/static/pictures/hamster_home.jpg"));
  background-repeat: no-repeat;
}


.btn-crisis-light,
.btn-crisis-dark {
  padding: 16px 34px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.mini-form--volunteer input[type="text"],
.mini-form--volunteer input[type="email"],
.mini-form--volunteer input:not([type="radio"]) {
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(0, 0, 0, .65);
  border-radius: 0;
  padding: 12px 6px 10px;
  box-shadow: none;
  outline: none;
  color: rgba(0, 0, 0, .86);
  font-size: 16px;
}

.auth-actions>a,
.auth-actions>form {
  width: 100%;
  margin: 0;
}

.register-form input,
.register-form select {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, .6);
  padding: 10px 6px;
  color: white;
  font-size: 16px;
}

.profile-card input[type="text"],
.profile-card input[type="email"],
.profile-card select.select-pill {
  width: 100% !important;
  height: 46px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(0, 0, 0, .16) !important;
  color: rgba(0, 0, 0, .86) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.profile-card input[type="text"]::placeholder,
.profile-card input[type="email"]::placeholder {
  color: rgba(255, 255, 255, .55) !important;
}

.profile-card input[type="text"]:focus,
.profile-card input[type="email"]:focus,
.profile-card select.select-pill:focus {
  border-color: color-mix(in srgb, var(--teal), transparent 30%) !important;
  box-shadow: var(--ring) !important;
  transform: translateY(-1px);
}

.requests-header,
.request-tabs,
.request-card,
.empty-state {
  border-radius: 16px !important;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .14) !important;
}

.profile-menu,
.help-menu {
  z-index: 9999;
}

.profile-hero,
.profile-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: none !important;
}

.profile-card .tag-chip,
.profile-card .pet-chip {
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(0, 0, 0, .12) !important;
  color: rgba(0, 0, 0, .78) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .08) !important;
}

.profile-card,
.profile-hero,
.profile-rows .row {
  box-shadow: var(--shadow-md) !important;
}

/* === EMERGENCY FOSTER REQUESTS PAGE === */
.request-status-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, .07);
}

.btn-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  letter-spacing: .2px;
}

.btn-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .14);
  filter: brightness(1.04);
}

.btn-status:active {
  transform: translateY(0);
}

.btn-status--complete {
  background: #e0f2f1;
  color: #00574b;
  border: 1.5px solid #80cbc4;
}

.btn-status--complete:hover {
  background: #b2dfdb;
  box-shadow: 0 10px 20px rgba(0, 87, 75, .15);
}

.btn-status--cancel {
  background: #fff8e1;
  color: #7c4f00;
  border: 1.5px solid #ffe082;
}

.btn-status--cancel:hover {
  background: #ffecb3;
  box-shadow: 0 10px 20px rgba(124, 79, 0, .12);
}


.btn-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  letter-spacing: .2px;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .14);
  filter: brightness(1.04);
}

.btn-action:active {
  transform: translateY(0);
}

.btn-action--accept {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1.5px solid #a5d6a7;
}

.btn-action--accept:hover {
  background: #c8e6c9;
  box-shadow: 0 10px 20px rgba(46, 125, 50, .15);
}

.btn-action--decline {
  background: #f5f5f5;
  color: #555;
  border: 1.5px solid #ddd;
}

.btn-action--decline:hover {
  background: #eeeeee;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .10);
}

.request-details .fh-contact-btns {
  grid-column: 1 / -1;
}

form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #d1d1d1;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}


from {
  opacity: 0;
  transform: translateY(12px);
}

to {
  opacity: 1;
  transform: translateY(0);
}


@keyframes fadeUp {



  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {



  0%,
  80%,
  100% {
    opacity: .3;
  }

  40% {
    opacity: 1;
  }
}

@keyframes fadeIn {



  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpSoft {


  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
  --green-900: var(--green-900, #2e4c39);
  --green-700: #557a5a;
  --green-500: #6b9070;
  --teal: var(--teal, #5fa09a);
  --sand: #e9d4bb;
  --paper: var(--paper, #e9e2d6);
  --ink: var(--ink, rgba(0, 0, 0, .78));
  --muted: rgba(255, 255, 255, .72);
  --shadow-1: 0 10px 22px rgba(0, 0, 0, .12);
  --shadow-2: 0 18px 34px rgba(0, 0, 0, .18);
  --shadow-3: 0 20px 36px rgba(0, 0, 0, .16);
  --bg: var(--paper);
  --text: rgba(255, 255, 255, .92);
  --border: rgba(255, 255, 255, .14);
  --primary: var(--teal);
  --primary-2: color-mix(in srgb, var(--teal), #000 15%);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, .28);
  --shadow-sm: 0 6px 14px rgba(0, 0, 0, .22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --ring: 0 0 0 4px color-mix(in srgb, var(--teal), transparent 75%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-overflow-scrolling: touch;
}

.page {
  min-height: 70vh;
}

a {
  color: inherit;
}
.site-header {
  background: var(--green-900);
  color: white;
  background-color: #1f3a10;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
}

.page {
  padding-top: 72px; /* adjust to your header height */
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  min-height: unset;
  flex-wrap: wrap;
}


.brand {
  background: #fff;
  border-radius: 900px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .20);
  align-items: center;
  height: 47px;
  width: 43px;
}

.brand-logo {
  height: 100%;
  width: auto;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15),
    0 3px 8px rgba(0, 0, 0, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease,
    box-shadow 0.15s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.30),
    0 10px 22px rgba(0, 0, 0, 0.25);
}

.brand-logo:active {
  transform: translateY(0);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12),
    0 2px 5px rgba(0, 0, 0, 0.35);
}

.brand-logo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.3);
}

.help-wrap {
  position: relative;
  flex: 0 0 auto;
}

.chev {
  font-size: 12px;
  opacity: .9;
  transform: translateY(1px);
}

.help-menu {
  position: absolute;
  top: 54px;
  left: 0;
  width: 220px;
  background: #2e4c39;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.help-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.help-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  opacity: .95;
  font-weight: 600;
}

.help-menu a:hover {
  background: rgba(255, 255, 255, .12);
  opacity: 1;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.nav-links>a,
.nav-right>a,
.nav-right>.profile-wrap>a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(233, 212, 187, .25);
  border: 0;
  color: #fff;
  padding: 10px 25px;
  border-radius: 1100px;
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-links a {
  color: #f7eded;
  text-decoration: none;
  opacity: .9;
}

.footer-links a:hover {
  opacity: 1;
}

.board-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  padding: 0;
}

.board-dots .dot.active {
  background: rgba(255, 255, 255, .92);
}

.profile-wrap {
  position: relative;
}

.profile-menu {
  position: absolute;
  top: 56px;
  right: 0;
  width: 220px;
  background: #2e4c39;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 999;
  min-width: 140px;
}

.profile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent !important;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  opacity: .95;
}

.profile-menu a:hover {
  background: rgba(255, 255, 255, .12) !important;
  opacity: 1;
}

.profile-link {
  background: rgba(140, 70, 63, .85);
}

.profile-link:hover {
  background: rgba(140, 70, 63, .95);
}

.help-link {
  background: rgba(233, 212, 187, .25);
}

.help-link:hover {
  background: rgba(233, 212, 187, .33);
}

.help-pill,
.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 25px;
  border-radius: 1100px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.help-pill {
  background: rgba(233, 212, 187, .25);
}

.help-pill:hover {
  background: rgba(233, 212, 187, .33);
}

.profile-pill {
  background: rgba(140, 70, 63, .85);
}

.profile-pill:hover {
  background: rgba(140, 70, 63, .95);
}

.site-footer {
  background: #1F4B0A;
  color: #f9f3f3;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.panel {
  background: #f0eadf;
  padding: 42px 18px;
}

.panel-inner {
  max-width: 980px;
  margin: 0 auto;
}

.cards {
  max-width: 980px;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, .3);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-1);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]) {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, .15);
  outline: none;
  background: rgba(255, 255, 255, .75);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"])::placeholder {
  color: rgba(0, 0, 0, .35);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-hero {
  position: relative;
  height: 720px;
  background:
    linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)),
    var(--hero-image);
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-hero-bg {
  display: none;
}

.home-hero-inner {
  position: relative;
  height: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 92px 24px 0;
  z-index: 2;
}

.home-hero-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.02;
  font-size: 64px;
  text-transform: uppercase;
}

.t-white {
  color: rgba(255, 255, 255, .92);
}

.t-black {
  color: #0b0b0b;
}

.home-hero-sub {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 132px;
  width: min(700px, 92vw);
  text-align: center;
  color: rgba(255, 255, 255, .92);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
}

.crisis {
  background: #e9e2d6;
  padding: 54px 18px 62px;
}

.crisis-inner {
  max-width: 980px;
  margin: 0 auto;
}

.crisis-title {
  margin: 0 0 26px;
  text-align: center;
  color: #5c9c93;
  font-weight: 800;
  font-size: 54px;
  line-height: 1.05;
}

.crisis-grid {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 34px;
  align-items: center;
}

.crisis-img {
  background: transparent;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
}

.crisis-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #fff;
}

.crisis-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 620px;
}

.crisis-card p {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.65);
  max-width: 620px;
}

.crisis-buttons {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-top: 18px;
}

.btn-crisis-light,
.btn-crisis-dark {
  padding: 16px 34px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-crisis-light {
  background: #b9b7a6;
  color: #0a0a0a;
}

.btn-crisis-dark {
  background: #556f5c;
  color: #fff;
}

.story-band {
  background: #5fa09a;
  padding: 34px 18px 46px;
}

.story-band-inner {
  max-width: 980px;
  margin: 0 auto;
}

.story-band-title {
  margin: 0 0 10px;
  font-size: 44px;
  font-weight: 900;
  color: black;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.story-box {
  background: #bfecea;
  border: 2px solid rgba(0, 0, 0, .12);
  padding: 20px 18px;
  font-size: 20px;
  line-height: 1.35;
}

.story-box p {
  margin: 0 0 16px;
}

.story-note {
  margin: 0;
  font-weight: 700;
}

.why {
  position: relative;
  background: #d9d1c4;
  padding: 34px 18px 74px;
}

.why-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.why-title {
  margin: 0 0 14px;
  font-size: 50px;
  font-weight: 900;
  color: #1f1202;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-text p {
  margin: 0 0 14px;
  color: #1f1202;
  font-size: 20px;
  line-height: 1.35;
  max-width: 520px;
}

.why-photo {
  justify-self: end;
  width: 360px;
  height: 380px;
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
}

.why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ready-wrap {
  max-width: 980px;
  margin: 26px auto 0;
}

.ready-card {
  background: #715244;
  border-radius: 28px;
  padding: 24px 22px 22px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}

.ready-title {
  margin: 0 0 16px;
  text-align: center;
  color: rgba(255, 255, 255, .92);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 1px;
}

.ready-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ready-col {
  background: #7ca67d;
  border-radius: 26px;
  padding: 18px 16px;
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.ready-col h3 {
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.1;
}

.ready-col p {
  margin: 0 0 14px;
  opacity: .9;
  line-height: 1.25;
  font-size: 16px !important;
}

.btn-ready {
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  width: fit-content;
  align-self: center;
  text-decoration: none;
}

.board {
  background: #5fa09a;
  padding: 34px 18px 40px;
}

.board-inner {
  max-width: 980px;
  margin: 0 auto;
}

.board-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #0b0b0b;
  text-transform: uppercase;
}

.board-carousel {
  position: relative;
}

.board-slide {
  display: none;
}

.board-slide.is-active {
  display: block;
}

.board-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  justify-items: center;
}

.board-photo {
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
}

.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.board-text {
  max-width: 520px;
  justify-self: start;
}

.board-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}

.board-dots {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.foster-page {
  background: #e9e2d6;
  padding-bottom: 70px;
}

.foster-top {
  background: linear-gradient(90deg, rgba(233, 226, 214, 1), rgba(223, 214, 199, 1));
  padding: 44px 18px 22px;
}

.foster-top-inner {
  max-width: 980px;
  margin: 0 auto;
}

.foster-top h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(50, 40, 40, 0.92);
}

.foster-panel {
  background: #839c76;
  padding: 34px 18px 40px;
}

.foster-panel-inner {
  max-width: 980px;
  margin: 0 auto;
}

.foster-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: start;
}

.foster-img {
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .20);
  background: rgba(255, 255, 255, .10);
}

.foster-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.foster-copy {
  color: #1f1202;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  max-width: 560px;
}

.foster-copy p {
  margin: 0 0 14px;
}

.foster-cta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.foster-cta a {
  min-width: 420px;
  padding: 18px 26px;
  background: rgba(255, 255, 255, .85);
  color: #1f1202;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.foster-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, .22);
  background: rgba(255, 255, 255, .92);
}

.foster-cta a:active {
  transform: translateY(0px);
}

.donate-page {
  background: radial-gradient(1200px 500px at 50% -80px, rgba(95, 160, 154, .35), transparent 65%),
    #e9e2d6;
  padding: 34px 18px 90px;
}

.donate-hero {
  max-width: 980px;
  margin: 0 auto 12px;
  padding-top: 8px;
}

.donate-title {
  margin: 10px 0 10px;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(58, 39, 39, 0.88);
  text-transform: uppercase;
  text-align: center;
}

.donate-subbar {
  max-width: 980px;
  margin: 0 auto 18px;
  background: rgba(210, 210, 210, .7);
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .10);
}

.donate-subbar h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 900;
  color: #111;
}

.donate-subbar p {
  margin: 0;
  color: rgba(0, 0, 0, .85);
  font-weight: 650;
  line-height: 1.25;
}

.donate-panel {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(168, 184, 162, .75);
  padding: 30px 18px 42px;
  animation: floatIn .35s ease both;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, .10);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .16);
  backdrop-filter: blur(6px);
}

.donate-form {
  max-width: 520px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.donate-form label {
  display: block;
  margin: 16px 0 8px;
  color: rgba(255, 255, 255, .88);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
  opacity: .92;
}

.donate-form input {
  padding: 14px 14px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, .25);
  background: rgba(235, 235, 235, .95);
  box-shadow: 0 10px 16px rgba(0, 0, 0, .18);
  height: 46px;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.donate-amount-title {
  margin: 22px 0 10px;
  color: rgba(255, 255, 255, .9);
  font-size: 22px;
  font-weight: 700;
}

.amount-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.amount-row .chip {
  border: 1px solid rgba(0, 0, 0, .18);
  background: rgba(235, 235, 235, .95);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: 0 10px 16px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease, background .14s ease;
}

.amount-row .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(0, 0, 0, .16);
  filter: brightness(1.02);
}

.payment-title {
  margin: 26px 0 10px;
  text-align: center;
  color: rgba(255, 255, 255, .9);
  font-size: 34px;
  font-weight: 900;
}

.btn-submit-pill {
  display: block;
  width: min(360px, 100%);
  margin: 30px auto 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 999px;
  background: #5f7a57;
  color: rgba(255, 255, 255, .92);
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 22px;
  box-shadow: 0 16px 22px rgba(0, 0, 0, .22);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.btn-submit-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 28px rgba(0, 0, 0, .26);
}

.btn-submit-pill:active {
  transform: translateY(0px);
}

.split {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 18px 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.split-left h1 {
  color: rgba(58, 39, 39, 0.88);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.blurb-box {
  background: rgba(120, 150, 120, .25);
  padding: 18px;
  border-radius: 18px;
  min-height: 200px;
}

.split-right {
  padding-top: 130px;
}

.mini-form--volunteer {
  background: rgba(233, 212, 187, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-radius: 26px;
  box-shadow: var(--shadow-2);
  padding: 28px 26px;
  animation: fadeUp .35s ease-out both;
}

.mini-form--volunteer h2 {
  margin: 0 0 22px;
  color: rgba(0, 0, 0, .86);
  font-weight: 900;
  line-height: 1.05;
  font-size: 32px;
}

.mini-form--volunteer label {
  display: block;
  color: rgba(0, 0, 0, .75);
  font-weight: 700;
  margin: 16px 0 10px;
}

.mini-form--volunteer input[type="text"],
.mini-form--volunteer input[type="email"],
.mini-form--volunteer input:not([type="radio"]) {
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(0, 0, 0, .65);
  border-radius: 0;
  padding: 12px 6px 10px;
  box-shadow: none;
  outline: none;
  color: rgba(0, 0, 0, .86);
  font-size: 16px;
}

.mini-form--volunteer input::placeholder {
  color: rgba(0, 0, 0, .35);
}

.radio-row {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 10px 0 18px;
}

.mini-form--volunteer .radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(0, 0, 0, .78);
  font-weight: 700;
  white-space: nowrap;
}

.mini-form--volunteer .radio-pill input {
  width: auto;
  transform: scale(1.15);
}

.volunteer-box {
  padding: 28px;
}

.volunteer-subtitle {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #2c3e50;
}

.volunteer-roles {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 40px;
}

.volunteer-roles li {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 500;
  color: #2c3e50;
  position: relative;
  padding-left: 20px;
}

.volunteer-roles li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #5fa09a;
  font-size: 20px;
  line-height: 1;
}

.volunteer-lede {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.72);
  font-weight: 600;
}

/* Mobile */



.vol-submit {
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: #556f5c;
  color: rgba(255, 255, 255, .95);
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 16px;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.vol-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
}

.vol-submit:active {
  transform: translateY(0px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

.success-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.35));
  border-radius: 28px;
  padding: 28px 30px;
  box-shadow: var(--shadow-3);
  max-width: 520px;
  animation: fadeUp .4s ease-out both;
}

.success-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 900;
  color: var(--green-900);
  letter-spacing: .3px;
}

.success-main {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(0, 0, 0, .75);
}

.success-note {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, .55);
}

.auth-hero {
  min-height: calc(100vh - 72px);
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  padding: 78px 18px 140px;
}

.page:has(.auth-hero) {
  padding: 0 !important;
}

.auth-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, .10) 0%, rgba(0, 0, 0, .06) 35%, rgba(0, 0, 0, 0) 70%),
    url("/static/pictures/background.png");
  background-size: cover;
  width: 100%;
  height: 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 0;
}

.auth-center {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-logo {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .28);
  margin: 0 0 18px;
}

.auth-org {
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}

.auth-actions {
  width: min(360px, 86vw);
  margin-top: 150px;
  display: grid;
  gap: 16px;
}

.auth-actions>a,
.auth-actions>form {
  width: 100%;
  margin: 0;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 1px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 14px 22px rgba(0, 0, 0, .22);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .26);
}

.auth-btn:active {
  transform: translateY(0px);
  box-shadow: 0 12px 18px rgba(0, 0, 0, .20);
}

.auth-btn--light {
  background: rgba(239, 233, 223, .95);
  color: rgba(0, 0, 0, .78);
}

.auth-btn--teal {
  background: var(--teal);
  color: rgba(255, 255, 255, .92);
}



.login-form {
  width: min(420px, 90vw);
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form label {
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .75);
}

.login-form input {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(255, 255, 255, .6) !important;
  padding: 10px 6px;
  color: #fff;
  font-size: 16px;
  width: 100%;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
}

.login-form input:focus {
  outline: none;
  border-bottom-color: white;
}

.login-back {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .75);
  margin-top: 10px;
  cursor: pointer;
  font-weight: 700;
}

.register-form {
  width: 100% !important;
  max-width: none !important;
  margin-top: 110px;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.register-form label {
  text-align: center !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .75);
}

.register-form input,
.register-form select {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, .6);
  padding: 10px 6px;
  color: white;
  font-size: 16px;
}

.register-form select option {
  color: black;
}

.step-title {
  margin-top: 120px;
  color: rgba(255, 255, 255, .82);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  max-width: 520px;
}

.choice-row {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  justify-content: center;
}

.choice-card {
  width: 160px;
  background: rgba(239, 233, 223, .92);
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: 0 14px 22px rgba(0, 0, 0, .22);
  cursor: pointer;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  transform: translateY(0) scale(1);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-head {
  font-weight: 900;
  color: #2f6f7b;
  margin-bottom: 10px;
}

.choice-sub {
  color: rgba(0, 0, 0, .55);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.step-actions {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .75);
  font-weight: 800;
  cursor: pointer;
}

.auth-hero--panel {
  padding: 28px 18px 70px;
}

.auth-flow {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(980px, 96vw);
  min-height: 640px;
  border-radius: 18px;
  background: rgba(233, 226, 214, .35);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
  padding: 46px 18px 54px;
}

.auth-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.auth-banner {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .80);
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
  width: min(520px, 92vw);
  text-align: center;
}

.auth-hero--panel .auth-logo {
  width: 120px;
  height: 120px;
  margin: 0;
}

.auth-hero--panel .register-form {
  width: min(520px, 92vw);
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.auth-hero--panel .register-form label {
  width: 100%;
  text-align: left;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
}

.auth-hero--panel .register-form input {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(255, 255, 255, .55) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 6px;
  color: rgba(255, 255, 255, .90);
  outline: none;
}

.auth-hero--panel .register-form input:focus {
  border-bottom-color: rgba(255, 255, 255, .95) !important;
}

.select-pill {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 2px solid rgba(0, 0, 0, .10);
  background: rgba(255, 255, 255, .70);
  color: rgba(0, 0, 0, .65);
  font-weight: 900;
  letter-spacing: .5px;
  padding: 0 14px;
  appearance: none;
  outline: none;
  box-shadow: 0 10px 16px rgba(0, 0, 0, .10);
  background-image: linear-gradient(45deg, transparent 50%, rgba(0, 0, 0, .55) 50%),
    linear-gradient(135deg, rgba(0, 0, 0, .55) 50%, transparent 50%);
  background-position: calc(100% - 22px) 19px, calc(100% - 14px) 19px;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.auth-hero--panel .step-title {
  margin-top: 26px;
  color: rgba(255, 255, 255, .82);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.auth-hero--panel .choice-row {
  margin-top: 20px;
}

.auth-hero--panel .step-actions {
  margin-top: 26px;
}

.auth-hero--panel .auth-btn {
  width: min(360px, 92vw);
}

.choice-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 34px rgba(0, 0, 0, .22);
  filter: brightness(1.03);
}

.choice-card:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 24px rgba(0, 0, 0, .18);
}

.choice-card:has(input:checked) {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 26px 40px rgba(0, 0, 0, .26);
  outline: 3px solid rgba(61, 123, 134, .55);
  outline-offset: 2px;
}

.choice-card:has(input:checked) .choice-head {
  color: #2a6670;
}

.redirect-text {
  margin-top: 160px;
  color: rgba(255, 255, 255, .85);
  font-weight: 700;
  text-align: center;
}

.loading-dots {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, .85);
  border-radius: 999px;
  animation: pulse 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
  animation-delay: .15s;
}

.loading-dots span:nth-child(3) {
  animation-delay: .3s;
}

#reg-step-2 .register-form label {
  display: block;
  margin-bottom: 14px;
  text-align: center !important;
}

#reg-step-2 .register-form input {
  margin-bottom: 36px;
}

.register-form input[type="text"] {
  max-width: 300px;   
  width: 100%;
}

#reg-step-2 .register-form select.select-pill {
  margin-bottom: 40px;
}

.housing-pills {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.housing-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(239, 233, 223, .92);
  box-shadow: 0 14px 22px rgba(0, 0, 0, .22);
  font-weight: 900;
  letter-spacing: .5px;
  color: rgba(0, 0, 0, .65);
  cursor: pointer;
  user-select: none;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.housing-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, .24);
  filter: brightness(1.02);
}

.housing-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.housing-pill:has(input:checked) {
  background: rgba(61, 123, 134, .92);
  color: rgba(255, 255, 255, .95);
}

.housing-pill:active {
  transform: translateY(0);
  box-shadow: 0 12px 18px rgba(0, 0, 0, .20);
}

.eye-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 0;
}

.eye-toggle:hover {
  color: white;
}

.eye-icon {
  display: block;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-hero-actions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 64px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  width: min(720px, 92vw);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 52px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 14px 22px rgba(0, 0, 0, .22);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .26);
  filter: brightness(1.03);
}

.btn-hero:active {
  transform: translateY(0px);
  box-shadow: 0 12px 18px rgba(0, 0, 0, .20);
}

.btn-hero--primary {
  background: #1f3a10 !important;
  color: rgba(0, 0, 0, .78);
  border: 1px solid rgba(0, 0, 0, .18);
  opacity: 1 !important;
}

.btn-hero--secondary {
  background: #1f3a10 !important;
  color: rgba(0, 0, 0, .78);
  border: 1px solid rgba(0, 0, 0, .18);
  opacity: 1 !important;
}


a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(61, 123, 134, .70);
  outline-offset: 3px;
  border-radius: 10px;
}

.board-dots .dot:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .75);
  outline-offset: 4px;
}

.donate-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}

.donate-legend {
  font-weight: 900;
  letter-spacing: .6px;
  font-size: 16px;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 10px;
}

.donate-form input:focus {
  border-color: rgba(61, 123, 134, .70);
  box-shadow: 0 0 0 4px rgba(61, 123, 134, .25), 0 10px 16px rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}

.money-input {
  position: relative;
}

.money-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  color: rgba(0, 0, 0, .55);
}

.money-input input {
  padding-left: 34px !important;
}

.amount-row .chip.is-active {
  background: var(--teal);
  color: rgba(255, 255, 255, .95);
  border-color: rgba(0, 0, 0, .10);
}

.donate-fineprint {
  margin: 14px 0 0;
  text-align: center;
  font-weight: 650;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}

.profile-shell {
  background: radial-gradient(900px 340px at 50% 0%, rgba(95, 160, 154, .22), transparent 60%),
    linear-gradient(180deg, rgba(107, 144, 112, .35), rgba(233, 233, 223, .0) 55%),
    var(--paper);
  padding: 0 18px 32px;
  max-width: 980px;
  margin: 34px auto;
  color: var(--text) !important;
  position: relative;
  --text: rgba(0, 0, 0, .86);
  --muted: rgba(0, 0, 0, .62);
  --border: rgba(0, 0, 0, .12);
  --surface: rgba(255, 255, 255, .82);
  --surface-2: rgba(255, 255, 255, .70);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, .14);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, .12);
  --shadow-sm: 0 6px 14px rgba(0, 0, 0, .10);
}

.profile-top {
  max-width: 980px;
  margin: 0 auto 18px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.avatar-wrap {
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--shadow-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pill {
  width: fit-content;
  background: rgba(239, 233, 223, .92);
  color: rgba(0, 0, 0, .65);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
  letter-spacing: .6px;
  box-shadow: 0 10px 16px rgba(0, 0, 0, .12);
}

.profile-name {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: .5px;
  color: rgba(0, 0, 0, .82);
}

.link-soft {
  text-decoration: none;
  font-weight: 800;
  color: rgba(0, 0, 0, .55);
}

.link-soft:hover {
  color: rgba(0, 0, 0, .75);
}

.profile-card {
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  margin-top: 16px;
}

.card-title {
  margin: 0 0 6px;
  text-align: center;
  letter-spacing: 1px;
  font-weight: 900;
  color: rgba(61, 123, 134, .92);
  text-transform: uppercase;
}

.card-sub {
  margin: 0 0 16px;
  text-align: center;
  font-weight: 650;
  color: rgba(0, 0, 0, .55);
}

.info-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.info-grid .row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .35);
  box-shadow: 0 10px 16px rgba(0, 0, 0, .08);
}

.info-grid dt {
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(0, 0, 0, .58);
}

.info-grid dd {
  margin: 0;
  font-weight: 800;
  color: rgba(0, 0, 0, .72);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.field span {
  display: block;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(0, 0, 0, .55);
  margin: 0 0 8px;
}

.field input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .14);
  background: rgba(255, 255, 255, .70);
  padding: 10px 12px;
  font-weight: 700;
  color: rgba(0, 0, 0, .70);
  box-shadow: 0 10px 16px rgba(0, 0, 0, .10);
  outline: none;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.field input:not([type="checkbox"]):not([type="radio"]):focus {
  border-color: rgba(61, 123, 134, .70);
  box-shadow: 0 0 0 4px rgba(61, 123, 134, .20), 0 10px 16px rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .6px;
  text-decoration: none;
  box-shadow: 0 14px 22px rgba(0, 0, 0, .18);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .22);
}

.btn-pill:active {
  transform: translateY(0);
  box-shadow: 0 12px 18px rgba(0, 0, 0, .18);
}

.btn-pill--light {
  background: rgba(239, 233, 223, .95);
  color: rgba(0, 0, 0, .72);
}

.btn-pill--ghost {
  background: #4F7C80;
  color: rgb(255, 255, 255);
}

.btn-pill--teal {
  background: #4F7C80;
  color: rgba(255, 255, 255, 0.92);
}

.stat-row {
  max-width: 980px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat {
  background: rgba(239, 233, 223, .92);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .14s ease, box-shadow .14s ease;
  border: 1px solid rgba(0, 0, 0, .08);
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.stat-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .55);
}

.stat-value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .5px;
  color: rgba(61, 123, 134, .95);
  margin-top: 6px;
}

.profile-hero {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow-sm);
  position: relative;
  grid-template-columns: 86px 1fr;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.profile-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  box-shadow: var(--shadow-md);
  flex: 0 0 auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .16);
  isolation: isolate;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.profile-kicker {
  margin: 0;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted) !important;
  font-size: 13px;
}

.profile-title {
  margin: 2px 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  color: var(--text) !important;
  line-height: 1.1;
}

.profile-back {
  display: inline-flex;
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
  gap: 8px;
  align-items: center;
  transition: color .18s ease;
}

.profile-section-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .72) !important;
}

.profile-rows {
  display: grid;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .10);
}

.row-label {
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
}

.row-value {
  font-weight: 500;
  font-size: 20px;
  color: rgba(75, 63, 63, 0.92);
  letter-spacing: .2px;
}

.profile-form .profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.profile-span-2 {
  grid-column: span 2;
}

.field label {
  display: block;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(71, 43, 43, 0.9);
  font-size: 12px;
  margin-bottom: 6px;
}

.hint {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field-error {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 120, 120, .95);
  min-height: 16px;
}

.input-error {
  border-color: rgba(255, 77, 77, .60) !important;
  box-shadow: 0 0 0 4px rgba(255, 77, 77, .14) !important;
}

.profile-actions {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  gap: 8px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .92);
  transition: transform .14s ease, box-shadow .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}

.btn-ghost {
  background: rgba(255, 255, 255, .04) !important;
  color: rgba(0, 0, 0, .70);
}

.btn-ghost:hover {
  filter: brightness(1.03);
}

.btn-white {
  background: rgba(239, 233, 223, .95) !important;
  color: rgba(0, 0, 0, .78) !important;
  box-shadow: none !important;
}

.btn-white:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18) !important;
}

.profile-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .55);
}

.profile-divider {
  margin: 28px 0 18px;
  opacity: 0.2;
}

.btn-danger {
  background-color: #b91c1c;
  color: rgba(255, 210, 210, .95) !important;
  border: none;
  background: rgba(255, 77, 77, .12) !important;
  border-color: rgba(255, 77, 77, .35) !important;
}

.btn-danger:hover {
  background-color: #991b1b;
  background: rgba(255, 77, 77, .16) !important;
  box-shadow: 0 14px 30px rgba(255, 77, 77, .10);
}

.pfp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.pfp-option {
  cursor: pointer;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .14s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.pfp-option:hover {
  transform: scale(1.03);
  filter: brightness(1.03);
}

.pfp-option.is-selected {
  transform: scale(1.12);
  border-color: color-mix(in srgb, var(--teal), transparent 30%) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal), transparent 86%), var(--shadow-md) !important;
  z-index: 5;
}

.pfp-option.is-selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
  color: #2b2b2b;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.pfp-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pfp-option img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.setup-tab {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.setup-tab-title {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.75;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tag-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .08);
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  position: relative;
  justify-content: space-between;
}

.tag-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .12);
}

.tag-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-pill:has(input[type="checkbox"]:checked) {
  background: rgba(61, 123, 134, .14);
  border-color: rgba(61, 123, 134, .45);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(61, 123, 134, .10);
  color: rgba(0, 0, 0, .65);
  border: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .06);
}



.pill-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(0, 0, 0, .10);
  box-shadow: 0 10px 16px rgba(0, 0, 0, .10);
  font-weight: 900;
  letter-spacing: .4px;
  color: rgba(0, 0, 0, .68);
  cursor: pointer;
  user-select: none;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease, background .14s ease;
}

.pill-radio:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(0, 0, 0, .14);
}

.pill-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-radio:has(input:checked) {
  background: rgba(61, 123, 134, .92);
  color: rgba(255, 255, 255, .95);
  border-color: rgba(0, 0, 0, .08);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal), transparent 20%);
  outline-offset: 3px;
}

.profile-shell::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background: radial-gradient(900px 520px at 15% 12%, color-mix(in srgb, var(--teal), transparent 72%), transparent 60%),
    radial-gradient(820px 480px at 85% 18%, rgba(255, 255, 255, .10), transparent 60%),
    radial-gradient(980px 620px at 50% 92%, rgba(255, 255, 255, .08), transparent 62%);
  pointer-events: none;
  opacity: .55 !important;
  filter: blur(0px) !important;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 240px at 18% 20%, color-mix(in srgb, var(--teal), transparent 65%), transparent 62%),
    radial-gradient(520px 240px at 88% 15%, rgba(255, 255, 255, .10), transparent 66%);
  pointer-events: none;
}

.profile-avatar::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: conic-gradient(from 220deg,
      color-mix(in srgb, var(--teal), transparent 30%),
      transparent 28%,
      rgba(255, 255, 255, .18),
      transparent 60%,
      color-mix(in srgb, var(--teal), transparent 25%));
  z-index: -1;
  opacity: .60;
}

.profile-avatar::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--teal), transparent 35%), transparent 60%);
  opacity: .45;
  pointer-events: none;
}

.profile-back:hover {
  color: var(--text);
}

.profile-rows .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
  background: var(--surface-2) !important;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}

.profile-rows .row:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-card input[type="text"],
.profile-card input[type="email"],
.profile-card select.select-pill {
  width: 100% !important;
  height: 46px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(0, 0, 0, .16) !important;
  color: rgba(0, 0, 0, .86) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.profile-card input[type="text"]::placeholder,
.profile-card input[type="email"]::placeholder {
  color: rgba(255, 255, 255, .55) !important;
}

.profile-card input[type="text"]:focus,
.profile-card input[type="email"]:focus,
.profile-card select.select-pill:focus {
  border-color: color-mix(in srgb, var(--teal), transparent 30%) !important;
  box-shadow: var(--ring) !important;
  transform: translateY(-1px);
}

.profile-card select.select-pill {
  appearance: none;
  padding-right: 34px !important;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .70) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, .70) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .20);
}

.btn:active {
  transform: translateY(0px);
}

.btn-primary {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--teal), #fff 12%),
      color-mix(in srgb, var(--teal), #000 8%)) !important;
  border-color: color-mix(in srgb, var(--teal), transparent 35%) !important;
  color: #061012 !important;
}

.btn-primary:hover {
  box-shadow: 0 14px 30px color-mix(in srgb, var(--teal), transparent 75%);
}

.tag-pill:has(input:checked) {
  border-color: color-mix(in srgb, var(--teal), transparent 40%) !important;
  background: color-mix(in srgb, var(--teal), transparent 78%) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal), transparent 88%), var(--shadow-sm) !important;
}

#petStepSize:not(.is-hidden) {
  animation: fadeUpSoft .18s ease both;
}

.requests-header,
.request-tabs,
.request-card,
.empty-state {
  border-radius: 16px !important;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .14) !important;
}

.profile-menu,
.help-menu {
  z-index: 9999;
}

.profile-hero,
.profile-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: none !important;
}

.profile-rows .row-label {
  color: rgba(0, 0, 0, .60) !important;
  font-weight: 800 !important;
}

.profile-rows .row-value {
  color: rgba(0, 0, 0, .84) !important;
  font-weight: 650 !important;
  font-size: 18px !important;
}

.profile-card input::placeholder {
  color: rgba(0, 0, 0, .40) !important;
}

.profile-card .tag-chip,
.profile-card .pet-chip {
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(0, 0, 0, .12) !important;
  color: rgba(0, 0, 0, .78) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .08) !important;
}

.profile-card .btn {
  color: rgba(0, 0, 0, .80) !important;
  background: rgba(255, 255, 255, .85) !important;
  border: 1px solid rgba(0, 0, 0, .12) !important;
}

.profile-card .btn-primary {
  background: rgba(61, 123, 134, .92) !important;
  border-color: rgba(61, 123, 134, .75) !important;
  color: rgba(255, 255, 255, .95) !important;
}

.profile-card .btn-danger {
  background: rgba(185, 28, 28, .92) !important;
  border-color: rgba(185, 28, 28, .85) !important;
  color: rgba(255, 255, 255, .95) !important;
}

.profile-card,
.profile-hero,
.profile-rows .row {
  box-shadow: var(--shadow-md) !important;
}

@media (prefers-reduced-motion: reduce) {

  .mini-form--volunteer,
  .success-card {
    animation: none;
  }

  .mini-form--volunteer,
  .success-card {
    animation: none;
  }

  .vol-submit {
    transition: none;
  }

  * {
    transition: none !important;
    animation: none !important;
  }

}

@media (max-width: 520px) {


  .auth-hero {
    padding-top: 64px;
  }

  .auth-logo {
    width: 130px;
    height: 130px;
  }

  .auth-actions {
    margin-top: 120px;
  }

  .pill-grid {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 900px) {

  .home-hero--img .home-hero-bg {
    background-size: 105%;
  }

}

@media (max-width: 760px) {

  .row {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .row-value {
    font-size: 20px;
  }

  .profile-form .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

}
@media (max-width: 900px) {

  .pill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ==========================
   PETS (PET_PARENT) styling
   ========================== */

/* Hide/show step */
.is-hidden {
  display: none !important;
}

/* Grid for pet type/size buttons */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
  width: 100%;
}

.pill-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Responsive: 2 columns on small screens */


/* Pet type/size buttons */
.pill-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .08);
  cursor: pointer;
  user-select: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  position: relative;
  justify-content: space-between;
}

.pill-btn:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}

.pill-btn.is-selected {
  border-color: var(--teal, #2E7D32);
  background: color-mix(in srgb, var(--teal, #2E7D32), white 86%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal, #2E7D32), transparent 85%),
    0 12px 26px rgba(0, 0, 0, 0.12);
}

/* Pet list chips (SMALL MAMMAL · MEDIUM ✕) */
#petList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


/* === EMERGENCY FOSTER REQUESTS PAGE === */
.requests-wrapper {
  background: #91AA91;
  min-height: calc(100vh - 200px);
  padding: 60px 20px;
}

.requests-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
.requests-header {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.requests-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.requests-header p {
  color: #555;
  font-size: 16px;
  margin-bottom: 20px;
}



/* Tabs */
.request-tabs {
  display: flex;
  gap: 10px;
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 12px !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f5f5f5;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
}

.tab-btn:hover {
  background: #e8e8e8;
}

.tab-btn.active-pending {
  background: #ffa726;
  color: #241e13;
  box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
}

.tab-btn.active-accepted {
  background: #66bb6a;
  color: rgb(24, 19, 19);
  box-shadow: 0 2px 8px rgba(102, 187, 106, 0.3);
}

.tab-btn.active-declined {
  background: #78909c;
  color: rgb(24, 19, 19);
  box-shadow: 0 2px 8px rgba(120, 144, 156, 0.3);
}

/* Request Cards */
.requests-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.request-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, .06);
}

.request-card:hover {
  box-shadow: 0 20px 36px rgba(0, 0, 0, .16) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.request-header h3 {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.request-header .date-sent {
  font-size: 13px;
  color: #999;
}

.status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.pending {
  background: #fff3e0;
  color: #241e13;
}

.status-badge.accepted {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-badge.declined {
  background: #f5f5f5;
  color: #616161;
}

.status-date {
  font-size: 11px;
  color: rgb(24, 19, 19);
  margin-top: 4px;
}

/* Request Details Grid */
.request-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 14px;
}

.detail-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Contact Box */
.contact-box {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 6px;
  padding: 20px;
  margin-top: 15px;
}

.contact-box p {
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 12px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2e7d32;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #1b5e20;
}

/* Tip Box */
.tip-box {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
}

.tip-box p {
  font-size: 14px;
  color: #e65100;
  margin: 0;
}

.empty-state small {
  font-size: 14px;
  color: #bbb;
}

/* Hidden class */
.hidden {
  display: none !important;
}


/* === FIND FOSTER CARE PAGE === */
.find-wrapper {
  background: #91AA91;
  min-height: calc(100vh - 200px);
  padding: 60px 20px;
}

.find-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
.find-header {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.find-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.find-header p {
  color: #555;
  font-size: 16px;
  margin-bottom: 20px;
}

.crisis-banner {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 15px 20px;
  border-radius: 4px;
  margin-top: 20px;
}

.crisis-banner p {
  color: #1565c0;
  font-size: 14px;
  margin: 0;
}

.crisis-banner strong {
  font-weight: 700;
}

/* Search Form Card */
.search-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.search-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #d1d1d1;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input {
  background: white;
}

.form-group select {
  background: white;
  cursor: pointer;
  appearance: none;
  background-position: right 16px center;
  padding-right: 40px;
  color: #999;
}

.form-group select:invalid {
  color: #999;
}

.form-group select:valid {
  color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #66bb6a;
  box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

/* Search Button */
.search-btn {
  width: 100%;
  padding: 14px 20px;
  background: #66bb6a;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
  color: black !important;
}

.search-btn:hover {
  background: #57a05b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}



/* Results Section - Placeholder */
.results-placeholder {
  background: white;
  border-radius: 8px;
  padding: 60px 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-placeholder-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.results-placeholder p {
  font-size: 18px;
  color: rgb(24, 19, 19);
  margin-bottom: 10px;
}

.results-placeholder small {
  font-size: 14px;
  color: rgb(24, 19, 19);
}

/* Responsive */

/* ===========================
   FOSTER HISTORY PAGE
=========================== */

.foster-history-wrapper {
  background: #91AA91;
  min-height: calc(100vh - 200px);
  padding: 60px 20px;
}

.foster-history-container {
  max-width: 900px;
  margin: 0 auto;
}

.foster-history-header {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 24px;
}

.foster-history-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 8px;
}

.foster-history-header p {
  color: #555;
  font-size: 16px;
  margin: 0;
}

.foster-history-tabs {
  display: flex;
  gap: 10px;
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.fh-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #f5f5f5;
  color: #666;
}

.fh-tab-btn:hover {
  background: #e8e8e8;
}

.fh-tab-count {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 13px;
  font-weight: 700;
}

.fh-tab-current.active {
  background: #557a5a;
  color: white;
  box-shadow: 0 2px 8px rgba(74, 144, 217, 0.35);
}

.fh-tab-past.active {
  background: #557a5a;
  color: white;
  box-shadow: 0 2px 8px rgba(139, 107, 177, 0.35);
}

.fh-tab-current.active .fh-tab-count,
.fh-tab-past.active .fh-tab-count {
  background: rgba(255, 255, 255, 0.25);
}

.fh-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fh-panel--hidden {
  display: none;
}

.fh-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.fh-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fh-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.fh-pet-info {
  flex: 1;
}

.fh-pet-name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
}

.fh-pet-breed {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.fh-status-badge--active {
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: auto;
}

.fh-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.fh-special-needs {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 14px;
}

.fh-special-needs-label {
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  margin: 0 0 4px;
}

.fh-special-needs p:last-child {
  font-size: 14px;
  color: #92400e;
  margin: 0;
}

.fh-notes {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.fh-notes-label {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin: 0 0 4px;
}

.fh-notes p:last-child {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.fh-owner-box {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  background: #fafafa;
}

.fh-owner-box--current {
  background: #e3f2fd;
  border-color: #bbdefb;
}

.fh-owner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fh-owner-name {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.fh-owner-location {
  font-size: 13px;
  color: #888;
}

.fh-contact-btns {
  display: flex;
  gap: 10px;
}

.fh-contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #e8e8e8;
  color: #444;
  transition: background 0.2s ease, transform 0.15s ease;
}

.fh-contact-btn:hover {
  background: #d0d0d0;
  transform: translateY(-1px);
}

.fh-contact-btn--current {
  background: #4a90d9;
  color: white;
}

.fh-contact-btn--current:hover {
  background: #3a7bc8;
}

.fh-impact {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 6px;
}

.fh-impact-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 18px;
}

.fh-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.fh-impact-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.fh-impact-value {
  font-size: 32px;
  font-weight: 900;
}

.fh-impact-value--purple {
  color: #8b6bb1;
}

.fh-impact-value--green {
  color: #2e7d32;
}

.fh-impact-value--teal {
  color: #3d7b86;
}

.fh-impact-label {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  text-align: center;
}

.fh-impact-note {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 0;
}

.fh-empty {
  background: white;
  border-radius: 8px;
  padding: 60px 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fh-empty p {
  font-size: 18px;
  color: #999;
  margin: 0 0 8px;
}

.fh-empty small {
  font-size: 14px;
  color: #bbb;
}

.fh-donation-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 24px;
}

.fh-donation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.fh-donation-amount {
  font-size: 18px;
  color: #2c3e50;
}

.fh-donation-date {
  font-size: 13px;
  color: #999;
}

.fh-donation-empty {
  color: #999;
  margin: 0;
}

/* Complete Foster Button */
.fh-complete-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  justify-content: flex-end;
}

.fh-complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1.5px solid #80cbc4;
  border-radius: 8px;
  background: #e0f2f1;
  color: #00574b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.fh-complete-btn:hover {
  background: #b2dfdb;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 87, 75, 0.15);
}

.fh-complete-btn:active {
  transform: translateY(0);
}

.fh-card-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}

/* ===========================
   HEADER RESPONSIVE
=========================== */

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animate hamburger → X when open */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* On desktop, collapsible is a normal flex row */
.nav-collapsible {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

/* Mobile breakpoint */

/* ===========================
   FOOTER RESPONSIVE
=========================== */

/* ===========================
   HOME PAGE RESPONSIVE
=========================== */

/* Hero title shrinks on small screens */


/* Crisis section: single column */


/* Board carousel: stack photo above text */
@media (max-width: 650px) {


  .board-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .board-title {
    font-size: 28px;
  }

  .board-text p {
    font-size: 15px;
  }
}

/* ===========================
   DONATE PAGE RESPONSIVE
=========================== */


/* ===========================
   FOSTER REQUESTS RESPONSIVE
=========================== */


/* ===========================
   FIND FOSTER PAGE RESPONSIVE
=========================== */

/* ===========================
   FOSTER PAGE RESPONSIVE
=========================== */


/* ===========================
   PROFILE PAGE RESPONSIVE
=========================== */

/* ===========================
   SIGNUP SUCCESS RESPONSIVE
=========================== */
@media (max-width: 500px) {

  .auth-logo {
    width: 110px;
    height: 110px;
  }

  .redirect-text {
    font-size: 16px;
    padding: 0 18px;
    text-align: center;
  }
}

/* ===========================
   VOLUNTEER PAGE RESPONSIVE
=========================== */
@media (max-width: 700px) {

  .home-hero-sub {
    bottom: 150px;
    font-size: 22px;
  }

  .home-hero-actions {
    bottom: 54px;
  }


  .crisis-grid {
    grid-template-columns: 1fr;
  }

  .crisis-title {
    font-size: 36px;
  }

  .crisis-img {
    width: 100%;
  }

  .why-inner {
    grid-template-columns: 1fr;
  }

  .why-photo {
    display: none;
  }

  .why-title {
    font-size: 34px;
  }

  .ready-columns {
    grid-template-columns: 1fr;
  }

  .ready-title {
    font-size: 30px;
  }

  .ready-col {
    min-height: unset;
  }

  .foster-top h1 {
    font-size: 42px;
  }

  .foster-grid {
    grid-template-columns: 1fr;
  }

  .foster-img {
    width: 100%;
  }

  .foster-cta a {
    min-width: unset;
    width: 100%;
    font-size: 17px;
    padding: 16px 18px;
  }

  .split {
    grid-template-columns: 1fr;
    padding: 24px 18px 40px;
  }

  .split-left h1 {
    font-size: 38px;
  }

  .split-right {
    padding-top: 0;
  }

  .mini-form--volunteer {
    padding: 20px 16px;
  }

  .mini-form--volunteer h2 {
    font-size: 22px;
  }

  .radio-row {
    flex-direction: column;
    gap: 12px;
  }

  .success-card {
    padding: 20px 18px;
  }
}

/* ===========================
FOSTER HISTORY PAGE RESPONSIVE
=========================== */
@media (max-width: 600px) {


  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-hero {
    height: 580px;
  }

  .home-hero-title {
    font-size: 38px;
    letter-spacing: 1px;
  }

  .home-hero-sub {
    font-size: 17px;
    bottom: 160px;
  }

  .home-hero-actions {
    bottom: 40px;
    gap: 10px;
  }

  .btn-hero {
    min-width: 130px;
    height: 44px;
    font-size: 14px;
  }

  .donate-title {
    font-size: 42px;
  }

  .donate-panel {
    padding: 20px 14px 30px;
  }

  .donate-subbar {
    padding: 12px 14px;
  }

  .donate-subbar h2 {
    font-size: 20px;
  }

  .requests-wrapper {
    padding: 24px 12px;
  }

  .requests-header h1 {
    font-size: 22px;
  }

  .request-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .tab-btn {
    width: 100%;
  }

  .request-header {
    flex-direction: column;
    gap: 10px;
  }

  .request-details {
    grid-template-columns: 1fr;
  }

  .request-card {
    padding: 16px;
  }

  .find-wrapper {
    padding: 24px 12px;
  }

  .find-header h1 {
    font-size: 22px;
  }

  .search-card {
    padding: 16px;
  }

  .search-btn {
    font-size: 15px;
    padding: 12px 16px;
  }

  .profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .profile-title {
    font-size: 26px;
  }

  .row {
    grid-template-columns: 1fr;
    border-radius: 14px;
    gap: 4px;
  }

  .row-label {
    font-size: 11px;
  }

  .row-value {
    font-size: 17px;
  }

  .profile-card {
    padding: 16px 14px;
  }

  .foster-history-wrapper {
    padding: 24px 12px;
  }

  .foster-history-header {
    padding: 20px 16px;
  }

  .foster-history-header h1 {
    font-size: 22px;
  }

  .foster-history-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .fh-tab-btn {
    width: 100%;
  }

  .fh-card {
    padding: 16px;
  }

  .fh-status-badge--active {
    margin-left: 0;
  }

  .fh-pet-name {
    font-size: 18px;
  }

  .fh-owner-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .fh-contact-btns {
    flex-direction: column;
    gap: 8px;
  }

  .fh-impact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fh-impact-value {
    font-size: 26px;
  }
}

@media (max-width: 400px) {
  .fh-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================
  SEARCH PAGE RESPONSIVE TODO
=========================== */


/* Use the same 4-col grid as tags; keep responsive behavior */
.pet-tag-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 720px) {

  .profile-top {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .info-grid .row {
    grid-template-columns: 1fr;
  }

  .form-grid--2 {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 70px 1fr;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-span-2 {
    grid-column: span 1;
  }


  .pill-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pet-tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Make the pet buttons look/behave like tag pills */
.pet-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .08);
  cursor: pointer;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  position: relative;
  justify-content: space-between;
}

/* Selected state that matches the checked tag-pill look */


/* Chips: match tag-chip + keep remove button clean */
.pet-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: rgba(0, 0, 0, 0.80);
  font-weight: 700;
  letter-spacing: 0.35px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.pet-chip button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.pet-chip button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.pet-pill.is-selected {
  background: rgba(61, 123, 134, .14) !important;
  border-color: rgba(61, 123, 134, .45) !important;
  box-shadow: 0 0 0 4px rgba(61, 123, 134, .12), var(--shadow-sm) !important;
  background: rgba(61, 123, 134, 0.14);
  border-color: rgba(61, 123, 134, 0.45);
  box-shadow:
    0 0 0 4px rgba(61, 123, 134, 0.12),
    0 8px 14px rgba(0, 0, 0, 0.08);
}

#name {
  color: #000 !important;
}

.search-btn:disabled {
  background: #d1d1d1;
  cursor: not-allowed;
  transform: none;
  opacity: 0.5;
}

/* ================= ERROR PAGE ================= */


.error-wrap {
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeUpSoft .45s ease both;
}

.error-hero {
  padding: 12px 6px 14px;
}

.error-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .20);
  color: rgba(255, 255, 255, .92);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 12px;
  backdrop-filter: blur(6px);
}

.error-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

.error-subtitle {
  margin: 0;
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.error-panel {
  margin-top: 18px;
  background: rgba(220, 235, 220, .78);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
}

.error-card {
  background: rgba(255, 255, 255, .78);
  border-radius: 18px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(46, 76, 57, .12);
}

.error-details {
  margin: 0 0 14px;
  color: #213528;
  font-size: 16px;
  line-height: 1.55;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* ---------- Buttons (scoped only to error page) ---------- */

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}

.error-btn-primary {
  background: var(--green-900, #2e4c39);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .14);
}

.error-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.error-btn-ghost {
  background: rgba(255, 255, 255, .55);
  color: #213528;
  border: 1px solid rgba(46, 76, 57, .18);
}

.error-meta {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(33, 53, 40, .75);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
}

.error-page {
  width: 100%;
  padding: 40px 20px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

/* ============================================
   MESSAGES PAGE
   ============================================ */

/* New chat button */
.btn-new-chat {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

.btn-new-chat:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-header h2,
.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #2c3e50;
}

/* Send Request Button - Red Circle */
.btn-send-request {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.btn-send-request:hover:not(:disabled) {
  background: #c82333;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-send-request:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: min(500px, 90vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: none;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.75rem;
  color: #2c3e50;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-search {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: #5fa09a;
}

.user-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.2s;
}

.user-item:hover {
  background: #f9f9f9;
}

.user-item.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.user-item.locked:hover {
  background: #fafafa;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar svg {
  width: 24px;
  height: 24px;
  fill: #999;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.user-status {
  font-size: 0.85rem;
  color: #999;
}

/* Bottom sections (Pending & Hidden) - Fixed at bottom */
.message-section:nth-child(2),
.message-section:nth-child(3) {
  flex-shrink: 0;
  margin-top: auto;
  /* Pushes to bottom */
}

.contact-info .contact-name {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.messages-sidebar-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.pending-contact {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  gap: 0.875rem;
  width: 100%;
}

.request-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, .07);
  margin-left: auto;
}

.btn-accept,
.btn-decline {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-accept {
  background: #4caf50;
  color: white;
}

.btn-accept:hover {
  background: #45a049;
  transform: scale(1.1);
}

.btn-decline {
  background: #f44336;
  color: white;
}

.btn-decline:hover {
  background: #da190b;
  transform: scale(1.1);
}

.pending-badge {
  background: #ff9800;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
}

/* Chat Action Buttons */
.chat-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
}

.messages-list-item:hover .chat-actions {
  opacity: 1;
}

.btn-hide-chat,
.btn-delete-chat,
.btn-unhide-chat {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.btn-hide-chat:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-delete-chat:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.btn-unhide-chat {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
}

.btn-unhide-chat:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-hide-chat-header,
.btn-delete-chat-header {
  background: rgba(90, 122, 90, 0.1);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a7a5a;
}

.btn-hide-chat-header:hover {
  background: rgba(90, 122, 90, 0.2);
  transform: translateY(-1px);
}

.btn-hide-chat-header svg,
.btn-delete-chat-header svg {
  display: block;
}

.btn-modal-cancel,
.btn-modal-hide,
.btn-modal-delete {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 140px;
}

.btn-modal-cancel:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-modal-hide:hover {
  background: #4d8a82;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(95, 160, 154, 0.3);
}

.btn-modal-delete:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Foster Request Button */
.btn-foster-request-header {
  background: #28a745;
  border: none;
  cursor: pointer;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.btn-foster-request-header:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

.btn-foster-request-header svg {
  display: block;
}

.btn-foster-request-header span {
  white-space: nowrap;
}

/* Loading spinner */








.foster-request-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.foster-request-modal.is-open {
  display: flex;
}

.foster-request-modal__panel {
  width: min(680px, 92vw);
  max-height: 90vh;
  background: #f0eadf;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .22);
  padding: 24px;
  position: relative;

  display: flex;
  flex-direction: column;
}

.foster-request-form {
  display: grid;
  gap: 14px;
}

.foster-request-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.foster-request-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 640px) {









  .donate-title {
    font-size: 52px;
  }

  .donate-form {
    max-width: 92vw;
  }

  .amount-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
  }


  .foster-request-form__grid {
    grid-template-columns: 1fr;
  }
}

.foster-request-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.foster-request-field textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 12px;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, .15);
  outline: none;
  background: rgba(255, 255, 255, .75);
  resize: vertical;
  font: inherit;
}

.foster-request-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, .75);
}

.foster-request-checkbox input[type="checkbox"] {
  width: auto;
  transform: scale(1.1);
}

.foster-request-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.foster-request-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
}

#closeFosterRequestModal {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: none;
  border-radius: 50%;

  background: #e3e3e3;
  color: #333;

  font-size: 18px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.2s ease;
}

#closeFosterRequestModal:hover {
  background: #cfcfcf;
}

#closeFosterRequestModal:active {
  transform: scale(0.95);
}

.foster-request-field input:disabled,
.foster-request-field textarea:disabled,
.foster-request-field select:disabled {
  background: #e2e6ea;
  color: #495057;
  border-color: #c6ccd2;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: not-allowed;
  opacity: 1;
}

.foster-request-checkbox input:disabled+span {
  color: #6c757d;
}

.foster-request-checkbox input:disabled {
  cursor: not-allowed;
}

/* DONATIONS PAGE */
.donorbox {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
  min-height: 400px;
}

/* RESEND VERIFICATION LINK */
/* Footer verify button */
.footer-separator {
  color: #ccc;
  margin: 0 0.5rem;
}

.footer-verify-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  font-size: inherit;
  padding: 0;
  font-family: inherit;
}

.footer-verify-btn:hover {
  text-decoration: underline;
}

/* Modal Overlay */
.verify-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.verify-modal-overlay.hidden {
  display: none;
  opacity: 0;
}

/* Modal Card */
.verify-modal-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  color: #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.verify-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.verify-modal-close:hover {
  color: #000;
}

/* Modal Content */
.verify-modal-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.5rem;
}

.verify-modal-info {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #666;
  font-size: 0.95rem;
}

/* Form Styles */
.verify-modal-card form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
  text-align: left;
  font-size: 0.9rem;
}

.verify-modal-card form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.verify-modal-card form input:focus {
  outline: none;
  border-color: #00BCD4;
}

/* Submit Button */
.verify-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: #00BCD4;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.verify-submit-btn:hover {
  background: #0097A7;
}

.verify-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Status Message */
.verify-status-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

.verify-status-message.hidden {
  display: none;
}

.verify-status-message.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.verify-status-message.error {
  background: #ffebee;
  color: #c62828;
}

/* Foster request modal disabled styling */
.foster-request-modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):disabled,
.foster-request-modal textarea:disabled,
.foster-request-modal select:disabled {
  background: #e3e3e3 !important;
  color: rgba(0, 0, 0, 0.68) !important;
  -webkit-text-fill-color: rgba(0, 0, 0, 0.68) !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1 !important;
  filter: brightness(0.97);
}

.foster-request-modal input[type="checkbox"]:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed;
}

.foster-request-modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not(:disabled),
.foster-request-modal textarea:not(:disabled),
.foster-request-modal select:not(:disabled) {
  background: rgba(255, 255, 255, .92) !important;
  color: rgba(0, 0, 0, .88) !important;
}

/* ============================================
   MESSAGES PAGE - MERGED OVERRIDES
   Paste at the END of styles.css
   ============================================ */

.messages-page {
  min-height: calc(100vh - 80px);
  padding: 2rem;
  background:
    radial-gradient(1100px 520px at 50% -80px,
      rgba(95, 160, 154, 0.25),
      transparent 65%),
    #5a7a5a;
}

.messages-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  height: calc(100vh - 160px);
}

/* Sidebar */
.messages-sidebar {
  background: #6f8d69;
  border-radius: 0px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.messages-sidebar-header {
  padding: 1.5rem;
  background: #7a9e7a;
  color: #fff;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.messages-sidebar-header h1,
.messages-sidebar-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 0 !important;
}

.messages-sections {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.message-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.message-section:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.message-section:first-child .section-content {
  flex: 1;
  overflow-y: auto;
}

.message-section:nth-child(2),
.message-section:nth-child(3) {
  flex-shrink: 0;
}

/* Section headers */
.section-header {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #fff;
  text-align: left;
  transition: background 0.2s;
}

.section-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.chevron {
  transition: transform 0.3s ease;
}

.section-header.active .chevron {
  transform: rotate(180deg);
}

.section-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

/* Contact list */
.messages-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-content {
  max-height: 0;
  transition: max-height 0.3s ease;
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-content.active {
  max-height: 500px;
  overflow-y: auto;
}

.messages-list-item {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.messages-list-item.active {
  background: rgba(255, 255, 255, 0.12);
}

.message-contact {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0.9rem 1.25rem;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.message-contact:hover {
  background: rgba(255, 255, 255, 0.08);
}

.message-contact:focus-visible,
.section-header:focus-visible,
.btn-new-chat:focus-visible,
.modal-close:focus-visible,
.btn-send-request:focus-visible {
  outline: 3px solid #d7f0ec;
  outline-offset: -3px;
}

.contact-avatar,
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f8d69;
}

.contact-avatar svg,
.user-avatar svg {
  width: 24px;
  height: 24px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.contact-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.contact-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0.7;
}

.pending-item .contact-avatar.pending {
  background: rgba(255, 255, 255, 0.25);
}

.empty-state {
  background: none;
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  list-style: none;
}

.empty-state p {
  font-size: 18px;
  color: #999;
  margin-bottom: 10px;
  margin: 0;
  line-height: 1.6;
  background: none;
}

/* Main chat */
.messages-main {
  display: flex;
  flex-direction: column;
  background: #dfe8dc;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.messages-header {
  padding: 1rem;
  gap: 0.8rem;
  background: #c8ddc8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-recipient {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #4a6a4a;
}

.contact-avatar-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a9e7a;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-avatar-large svg {
  width: 32px;
  height: 32px;
}

.contact-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-recipient h2,
.chat-recipient h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a6a4a;
}

.messages-thread {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  min-height: 0;
  position: relative;
}

.messages-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #5a7a5a;
  font-size: 1.1rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
}

.messages-empty p {
  margin: 0;
}

.messages-loading {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  color: #5a7a5a;
  font-size: 0.95rem;
  gap: 0.75rem;
  font-weight: 600;
}

.messages-loading.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(90, 122, 90, 0.25);
  border-top-color: #5a7a5a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {


  to {
    transform: rotate(360deg);
  }
}

.chat-messages {
  display: flex !important;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.message {
  max-width: 65%;
  padding: 0.875rem 1.125rem;
  border-radius: 18px;
  line-height: 1.5;
  word-wrap: break-word;
  flex-shrink: 0;
}

.message-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.message-time {
  font-size: 0.75rem;
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  opacity: 1;
}

.message-received {
  align-self: flex-start;
  background: #fff;
  color: #2c3e50;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-right: 35%;
}

.message-received .message-time {
  text-align: left;
  color: rgba(0, 0, 0, 0.55);
}

.message-sent {
  align-self: flex-end;
  background: #7a9e7a;
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  margin-left: 35%;
}

.message-sent .message-time {
  text-align: right;
  color: rgba(255, 255, 255, 0.88);
}

/* Date dividers */
.date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 16px 0;
  text-align: center;
}

.date-divider:first-child {
  margin-top: 4px;
}

.date-divider span {
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
}

/* Input area */
.messages-input {
  padding: 1.25rem 2rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.message-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.message-input-field {
  flex: 1;
  padding: 0.9rem 1.1rem;
  border: 1px solid #d6ded3;
  border-radius: 999px;
  font-size: 0.95rem;
  outline: none;
  background: #f8faf7;
  min-width: 0;
  color: #2c3e50;
  box-shadow: none;
}

.message-input-field::placeholder {
  color: #93a193;
}

.message-input-field:focus {
  border-color: #7a9e7a;
  box-shadow: 0 0 0 4px rgba(95, 160, 154, 0.15);
  background: #fff;
}

.btn-send {
  padding: 0.9rem 1.2rem;
  background: #7a9e7a;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-send:hover {
  background: #688a68;
  transform: translateY(-1px);
}

/* Header action buttons */
.chat-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-hide-chat-header,
.btn-delete-chat-header,
.btn-foster-request-header,
.btn-back-mobile {
  border: none;
  background: rgba(255, 255, 255, 0.7);
  color: #4a6a4a;
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-hide-chat-header:hover,
.btn-delete-chat-header:hover,
.btn-foster-request-header:hover,
.btn-back-mobile:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-delete-chat-header:hover {
  background: rgba(220, 53, 69, 0.15);
  color: #b42318;
  transform: translateY(-1px);
}

.btn-back-mobile {
  display: none;
}

.btn-hide-chat-header svg,
.btn-delete-chat-header svg,
.btn-foster-request-header svg,
.btn-back-mobile svg {
  width: 20px;
  height: 20px;
}

/* Delete modal */
.delete-modal-content {
  max-width: 500px;
  border-radius: 20px;
}

.warning-text {
  color: #b42318;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 2rem 2rem;
  text-align: center;
}

.modal-body p {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 0 2rem 2rem;
  border-top: none;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-modal-cancel,
.btn-modal-hide,
.btn-modal-delete {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-modal-cancel {
  background: #e9ecef;
  color: #2c3e50;
}

.btn-modal-hide {
  background: #7a9e7a;
  color: #fff;
}

.btn-modal-delete {
  background: #dc3545;
  color: #fff;
}


/* Mobile */
@media (max-width: 768px) {

  .volunteer-roles {
    column-count: 1;
  }


  .requests-wrapper {
    padding: 40px 15px;
  }

  .request-tabs {
    flex-direction: column;
  }

  .request-details {
    grid-template-columns: 1fr;
  }

  .request-header {
    flex-direction: column;
    gap: 15px;
  }

  .find-wrapper {
    padding: 40px 15px;
  }

  .search-card {
    padding: 20px;
  }

  .hamburger {
    display: flex;
  }

  /* Hide collapsed nav by default */
  .nav-collapsible {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--green-900);
    padding: 16px 18px 20px;
    z-index: 49;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .20);
  }

  .nav-collapsible.is-open {
    display: flex;
  }

  /* Stack nav links vertically */
  .nav-links {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .nav-links>a {
    width: 100%;
    justify-content: flex-start;
  }

  /* Help dropdown: full width on mobile */
  .help-wrap {
    width: 100%;
  }

  .help-pill {
    width: 100%;
    justify-content: space-between;
  }

  .help-menu {
    position: static;
    width: 100%;
    top: unset;
    margin-top: 8px;
    box-shadow: none;
  }

  /* Profile: full width on mobile */
  .nav-right {
    width: 100%;
  }

  .profile-wrap {
    width: 100%;
  }

  .profile-pill {
    width: 100%;
    justify-content: space-between;
  }

  .profile-menu {
    position: static;
    width: 100%;
    top: unset;
    right: unset;
    margin-top: 8px;
    box-shadow: none;
  }

  .nav-right>a {
    width: 100%;
    justify-content: center;
  }


  .messages-page {
    padding: 1rem;
  }

  .messages-container {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1rem;
  }

  .messages-sidebar {
    max-height: 260px;
  }

  .messages-main {
    height: 65vh;
  }

  .messages-thread {
    padding: 1rem;
  }

  .messages-input {
    padding: 0.75rem 1rem;
  }

  .message {
    max-width: 85%;
  }

  .btn-back-mobile {
    display: inline-flex;
  }
}

@media (max-width: 1000px) {

  /* show hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
    background: white;
    display: block;
  }

  /* hide normal nav */
  .nav-collapsible {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #1f3a10;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
  }

  /* when open */
  .nav-collapsible.is-open {
    display: flex;
  }

  /* stack everything vertically */
  .nav-links,
  .nav-right,
  .help-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links a,
  .nav-right a {
    width: 100%;
  }
}

/* ===== Shared Form System ===== */

.form-card {
  background: rgba(245, 239, 230, 0.96);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  padding: 30px 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.form-card--compact {
  max-width: 520px;
  width: 100%;
}

.form-title {
  margin: 0 0 22px;
  color: rgba(0, 0, 0, 0.88);
  font-weight: 900;
  line-height: 1.05;
  font-size: 32px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label,
.form-field legend {
  color: rgba(0, 0, 0, 0.8);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #f8f8f8;
  color: rgba(0, 0, 0, 0.82);
  font-size: 16px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(79, 124, 128, 0.85);
  box-shadow: 0 0 0 4px rgba(79, 124, 128, 0.16);
  transform: translateY(-1px);
}

.form-fieldset {
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0;
}

.form-radio-row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.form-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.8);
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.78);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.form-btn {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .6px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .14);
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .18);
}

.form-btn--primary {
  background: #5f7f66;
  color: white;
}

.form-btn--secondary {
  background: #ece8de;
  color: rgba(0, 0, 0, 0.8);
}

.form-btn--danger {
  background: #8f4f49;
  color: white;
}

@media (max-width: 768px) {
  .form-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .form-title {
    font-size: 24px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-btn {
    width: 100%;
  }
}
/* ===== FINAL foster modal fix ===== */

.foster-request-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.foster-request-modal.is-open {
  display: flex;
}

.foster-request-modal__panel {
  width: min(760px, 92vw) !important;
  max-height: 90vh !important;
  background: #f7f8fa !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 34px rgba(0,0,0,.22) !important;
  padding: 28px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}



.foster-request-modal__header h3 {
  margin: 0 !important;
  font-size: 28px !important;
  color: #2c4461 !important;
  font-weight: 900 !important;
}

#closeFosterRequestModal {
  width: 48px !important;
  height: 48px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #e7e9ee !important;
  color: #333 !important;
  font-size: 28px !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
}

.foster-request-modal__body {
  width: 100% !important;
}

#fosterRequestForm,
.foster-request-modal .form-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.foster-request-modal .form-field,
.foster-request-modal .foster-request-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.foster-request-modal .form-field label,
.foster-request-modal .foster-request-field label {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #2c4461 !important;
}

.foster-request-modal input:not([type="checkbox"]):not([type="radio"]),
.foster-request-modal textarea,
.foster-request-modal select {
  width: 100% !important;
  min-height: 56px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  border: 2px solid rgba(44, 68, 97, 0.08) !important;
  background: #e3e5ea !important;
  color: #3e4754 !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
}

.foster-request-modal textarea {
  min-height: 140px !important;
  resize: vertical !important;
}

.foster-request-modal input:not([type="checkbox"]):not([type="radio"]):focus,
.foster-request-modal textarea:focus,
.foster-request-modal select:focus {
  border-color: rgba(44, 68, 97, 0.22) !important;
  background: #e8ebf0 !important;
}

.foster-request-modal .form-check,
.foster-request-modal .foster-request-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  color: #6b778c !important;
  font-weight: 800 !important;
}

.foster-request-modal .form-check input[type="checkbox"],
.foster-request-modal .foster-request-checkbox input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: transparent !important;
  flex: 0 0 18px !important;
}

.foster-request-modal .form-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 8px !important;
  padding: 0 !important;
}

#submitFosterRequestBtn,
#rejectFosterRequestBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 54px !important;
  padding: 0 24px !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
}

#submitFosterRequestBtn {
  background: #84a97f !important;
  color: #fff !important;
}

#rejectFosterRequestBtn {
  background: #e53946 !important;
  color: #fff !important;
}


.foster-request-modal__panel {
  max-height: 90vh !important;
  overflow-y: auto !important;
  overflow-x: visible !important;
}

.foster-request-modal__body,
#fosterRequestForm,
.foster-request-modal .form-grid {
  overflow: visible !important;
  padding-left: 8px !important;
}


.foster-request-modal__panel {
  box-sizing: border-box !important;
}

#fosterRequestForm {
  padding-bottom: 32px !important;
}

#fosterRequestForm::after {
  content: "";
  display: block;
  height: 24px;
}

.foster-request-modal .form-actions {
  margin-top: 20px !important;
}

.input-error {
  border: 2px solid #e53946 !important;
  background: #fdeaea !important;
}

.error-message {
  margin-top: 6px;
  font-size: 13px;
  color: #e53946;
  font-weight: 700;
}

.ui-alert {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(3px);
}

.ui-alert[hidden] {
  display: none !important;
}

.ui-alert__card {
  width: min(460px, 92vw);
  background: #f7f8fa;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.ui-alert__title {
  font-size: 28px;
  font-weight: 900;
  color: #2c4461;
  margin-bottom: 14px;
}

.ui-alert__message {
  font-size: 18px;
  line-height: 1.4;
  color: #31455f;
  margin-bottom: 20px;
}

.ui-alert__button {
  border: none;
  border-radius: 999px;
  min-height: 50px;
  padding: 0 24px;
  background: #84a97f;
  color: white;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

/* =========================
   VOLUNTEER FORM OVERRIDES
   Paste at VERY bottom
========================= */

.form-card.volunteer-form-card {
  background: #f7f8fa !important;
  border-radius: 28px !important;
  border: 1px solid rgba(25, 45, 72, 0.06) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14) !important;
  padding: 30px 30px 34px !important;
}

.form-card.volunteer-form-card .volunteer-form-title {
  color: #111 !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  margin: 0 0 18px !important;
}

.form-card.volunteer-form-card .form-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.form-card.volunteer-form-card .form-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.form-card.volunteer-form-card .form-field label {
  color: #2c4461 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.form-card.volunteer-form-card .form-input {
  width: 100% !important;
  min-height: 52px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  border: 2px solid rgba(44, 68, 97, 0.08) !important;
  background: #e4e6eb !important;
  color: #374151 !important;
  box-shadow: none !important;
}

.form-card.volunteer-form-card .form-input:focus {
  background: #eaedf2 !important;
  border-color: rgba(44, 68, 97, 0.18) !important;
  box-shadow: 0 0 0 4px rgba(44, 68, 97, 0.08) !important;
  outline: none !important;
}

.volunteer-age-group {
  border: 1.5px solid rgba(44, 68, 97, 0.18) !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  margin: 0 !important;
}

.volunteer-age-group legend {
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 0 6px !important;
}

.volunteer-age-options {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  flex-wrap: wrap !important;
}

.volunteer-age-option {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 700 !important;
  color: #2f3c4d !important;
}

.volunteer-age-option input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #6f916f !important;
}

.form-card.volunteer-form-card .form-actions {
  display: flex !important;
  margin-top: 6px !important;
}

.volunteer-submit-btn {
  width: 100% !important;
  min-height: 52px !important;
  background: #6f8f71 !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  box-shadow: none !important;
}

.volunteer-submit-btn:hover {
  filter: brightness(1.05) !important;
}

.form-card.volunteer-form-card.success-card {
  background: #f7f8fa !important;
  border-radius: 28px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14) !important;
  padding: 30px !important;
}

.form-card.volunteer-form-card.success-card .success-main,
.form-card.volunteer-form-card.success-card .success-note {
  color: #31455f !important;
}

@media (max-width: 768px) {
  .form-card.volunteer-form-card {
    padding: 24px 20px 28px !important;
  }

  .form-card.volunteer-form-card .volunteer-form-title {
    font-size: 28px !important;
  }

  .volunteer-age-options {
    gap: 18px !important;
  }
}



.section-content {
  display: none;
}

.section-content.active {
  display: block;
}

#submitFosterRequestBtn[hidden],
#rejectFosterRequestBtn[hidden] {
  display: none !important;
}

.fh-panel--hidden {
  display: none;
}

.profile-avatar {
  width: clamp(70px, 18vw, 120px); /* responsive size */
  aspect-ratio: 1 / 1;             /* always square */
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;                  /* prevents squishing in flex layouts */
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;               /* fills circle nicely */
  display: block;
}

/* ===== Messages page mobile fix ===== */
@media (max-width: 768px) {
  .page {
    padding-top: 76px; /* match fixed header height */
  }

  .messages-page {
    padding: 0;
  }

  .messages-container {
    display: block;
    height: calc(100vh - 76px);
    overflow: hidden;
  }

  .messages-sidebar,
  .messages-main {
    width: 100%;
    height: calc(100vh - 76px);
    min-width: 0;
    max-width: 100%;
  }

  /* default mobile view = show sidebar only */
  .messages-sidebar {
    display: flex;
    flex-direction: column;
  }

  .messages-main {
    display: none;
    flex-direction: column;
  }

  /* when a chat is opened */
  .messages-container.chat-active .messages-sidebar {
    display: none;
  }

  .messages-container.chat-active .messages-main {
    display: flex;
  }

  .messages-sidebar-header {
    padding: 16px;
    border-radius: 0 !important;

  }

  .messages-sections {
    flex: 1;
    overflow-y: auto;
  }

  .messages-header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 14px 12px;
    background: #d8ead5;
  }

  .chat-recipient {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .chat-recipient h3 {
    margin: 0;
    font-size: 1.6rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contact-avatar-large {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .chat-header-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .chat-header-actions button {
    flex: 0 0 auto;
  }

  .btn-foster-request-header span {
    display: none; /* icon only on mobile */
  }

  .messages-thread {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
  }

  .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .message {
    max-width: 78%;
    word-break: break-word;
  }

  .messages-input {
    position: sticky;
    bottom: 0;
    background: #f4f1f1;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .message-form {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .message-input-field {
    min-width: 0;
    flex: 1;
  }

  .btn-send {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .btn-back-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
/* ===== Desktop: keep footer in normal flow ===== */
.messages-page {
  padding: 24px 18px 40px;
}

.messages-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 0;     /* important */
  height: auto;      /* don't lock to viewport */
}

.messages-sidebar,
.messages-main {
  min-height: 700px; /* gives structure without breaking footer */
}

.messages-main {
  display: flex;
  flex-direction: column;
}

.messages-thread {
  flex: 1;
  min-height: 500px;
  max-height: 70vh;
  overflow-y: auto;
}

.messages-input {
  position: static; /* don't stick on desktop */
}

/* ===== Mobile only ===== */
@media (max-width: 768px) {
  .page {
    padding-top: 76px;
  }

  .messages-page {
    padding: 0;
  }

  .messages-container {
    display: block;
    height: calc(100vh - 76px);
    max-width: 100%;
    overflow: hidden;
  }

  .messages-sidebar,
  .messages-main {
    width: 100%;
    height: calc(100vh - 76px);
    min-height: 0;
  }

  .messages-main {
    display: none;
    flex-direction: column;
  }

  .messages-container.chat-active .messages-sidebar {
    display: none;
  }

  .messages-container.chat-active .messages-main {
    display: flex;
  }

  .messages-thread {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }

  .messages-input {
    position: sticky;
    bottom: 0;
    background: #f4f1f1;
    z-index: 4;
  }
}

.board-photo {
  width: 160px;           /* adjust size as you like */
  aspect-ratio: 1 / 1;    /* keeps it perfectly square */
  border-radius: 50%;     /* makes it a circle */
  overflow: hidden;       /* clips the image */
  flex-shrink: 0;         /* prevents squishing in flex row */
}

.board-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fills the circle nicely */
  display: block;
}
.board-photo {
  border: 4px solid white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.profile-avatar {
  width: 110px;
  height: 110px;
  min-width: 110px;
  min-height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 110px;   /* prevents stretching/squishing */
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-hero-text {
  min-width: 0;
}

.messages-page,
.messages-container,
.messages-sidebar,
.messages-main {
  backdrop-filter: none !important;
  filter: none !important;
  border-radius: 0 !important;
}

.is-hidden {
  display: none !important;
}

#rejectFosterRequestBtn.is-hidden {
  display: none !important;
}

.auth-hero input[name="zipcode"] {
  background: transparent !important;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  color: white;
  caret-color: white;
  font-size: 1.2rem;
  padding: 10px 0;
  width: 250px;
  outline: none;
}

.auth-hero input[name="zipcode"]::placeholder {
  color: rgba(255,255,255,0.75);
}

.auth-hero input[name="zipcode"]:-webkit-autofill,
.auth-hero input[name="zipcode"]:-webkit-autofill:hover,
.auth-hero input[name="zipcode"]:-webkit-autofill:focus,
.auth-hero input[name="zipcode"]:-webkit-autofill:active {
  -webkit-text-fill-color: white !important;
  caret-color: white;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 9999s ease-in-out 0s;
  border-bottom: 2px solid rgba(255,255,255,0.4);
}

/* Default (desktop): show icon + text */
.btn-foster-request-header span {
  display: inline;
}

@media (max-width: 768px) {
  .btn-foster-request-header span {
    display: none;
  }

  .btn-foster-request-header {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .btn-foster-request-header svg {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
  }
}
@media (max-width: 768px) {
  .btn-foster-request-header {
    flex: 0 0 44px;
  }
}

@media (max-width: 768px) {
  #btn-foster-header {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    flex: 0 0 44px !important;
    overflow: hidden !important;
  }

  #btn-foster-header span {
    display: none !important;
  }

  #btn-foster-header svg {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  @media (max-width: 768px) {
    .profile-shell {
      padding: 16px;
    }

    .profile-hero {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }

    .profile-card {
      padding: 16px;
    }

    .profile-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .profile-span-2 {
      grid-column: auto !important;
    }

    /* ONLY About Me Tags + similar checkbox tag groups */
    .field .tag-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .field .tag-grid .tag-pill {
      width: 100%;
      min-width: 0;
      min-height: 88px;
      padding: 14px 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      box-sizing: border-box;
    }

    .field .tag-grid .tag-text {
      font-size: 0.95rem;
      line-height: 1.2;
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
      hyphens: auto;
    }

    /* keep profile picture grid separate */
    .pfp-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .profile-actions {
      flex-direction: column;
      gap: 12px;
    }

    .profile-actions .btn {
      width: 100%;
    }
  }

  @media (max-width: 480px) {
    .field .tag-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .field .tag-grid .tag-pill {
      min-height: 76px;
      padding: 12px 10px;
      border-radius: 18px;
    }

    .field .tag-grid .tag-text {
      font-size: 0.88rem;
      line-height: 1.15;
    }

    .profile-title {
      font-size: 1.6rem;
    }

    .profile-avatar,
    .profile-avatar img {
      width: 72px;
      height: 72px;
    }
  }
  @media (max-width: 768px) {
    .profile-hero {
      padding: 20px;
    }
  
    .profile-hero-text {
      width: 100%;
    }
  }

  @media (max-width: 768px) {
    .profile-hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 16px;
      padding: 24px 20px;
    }
  
    .profile-avatar {
      width: 110px;
      height: 110px;
      margin: 0;
      flex-shrink: 0;
    }
  
    .profile-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  
    .profile-hero-text {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
  
    .profile-kicker {
      margin: 0;
    }
  
    .profile-title {
      margin: 0;
      font-size: 2rem;
      line-height: 1.1;
    }
  
    .profile-back {
      margin: 0;
    }
  }
  
  @media (max-width: 480px) {
    .profile-hero {
      padding: 20px 16px;
      border-radius: 28px;
    }
  
    .profile-avatar {
      width: 90px;
      height: 90px;
    }
  
    .profile-title {
      font-size: 1.7rem;
    }
  }

  .site-header {
    position: relative;
  }
  
  .nav-inner {
    position: relative;
  }
  
  /* hamburger / close button */
  .hamburger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    z-index: 1002;
    align-items: center;
    justify-content: center;
  }
  
  .hamburger span {
    position: absolute;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  
  .hamburger span:nth-child(1) {
    transform: translateY(-7px);
  }
  
  .hamburger span:nth-child(2) {
    transform: translateY(0);
  }
  
  .hamburger span:nth-child(3) {
    transform: translateY(7px);
  }
  
  /* morph into X */
  .hamburger.is-open span:nth-child(1) {
    transform: rotate(45deg);
  }
  
  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.is-open span:nth-child(3) {
    transform: rotate(-45deg);
  }
  
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
      position: absolute;
      top: 16px;
      right: 16px;
    }
  }
}

@media (max-width: 1000px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 16px;
    right: 16px;

    width: 44px;
    height: 44px;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);

    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 1002;
  }

  /* THIS is the important part */
  .hamburger span {
    position: absolute;   /* 👈 key fix */
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 999px;

    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .hamburger span:nth-child(1) {
    transform: translateY(-6px);
  }

  .hamburger span:nth-child(2) {
    transform: translateY(0);
  }

  .hamburger span:nth-child(3) {
    transform: translateY(6px);
  }

  /* morph into X */
  .hamburger.is-open span:nth-child(1) {
    transform: rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: rotate(-45deg);
  }
}

@media (max-width: 1000px) {
  .nav-inner {
    position: relative;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    cursor: pointer;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
    background: white;
    display: block;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* mobile panel */
  .nav-collapsible {
    display: block !important;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: #1f3a10;
    z-index: 1000;

    padding: 0 20px;
    overflow: hidden;

    max-height: 0;
    opacity: 0;
    pointer-events: none;

    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
  }

  .nav-collapsible.is-open {
    max-height: 2000px; /* large enough so content decides height */
    opacity: 1;
    pointer-events: auto;
    padding: 20px;
  }

  .help-wrap,
  .nav-links,
  .nav-right,
  .profile-wrap {
    width: 100%;
    margin: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }

  .nav-right {
    margin-top: 12px;
  }

  .help-pill,
  .nav-links a,
  .profile-pill,
  .nav-right > a {
    width: 100%;
    box-sizing: border-box;
  }

  .profile-menu,
  .help-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  /* critical: hidden by default */
  .help-menu {
    display: none;
  }

  .help-menu.open {
    display: block;
  }

  .profile-menu {
    display: none;
  }

  .profile-menu.open {
    display: block;
  }
}

@media (max-width: 1000px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 16px;
    right: 16px;

    width: 44px;
    height: 44px;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);

    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 1002;
  }

  /* THIS is the important part */
  .hamburger span {
    position: absolute;   /* 👈 key fix */
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 999px;

    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .hamburger span:nth-child(1) {
    transform: translateY(-6px);
  }

  .hamburger span:nth-child(2) {
    transform: translateY(0);
  }

  .hamburger span:nth-child(3) {
    transform: translateY(6px);
  }

  /* morph into X */
  .hamburger.is-open span:nth-child(1) {
    transform: rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: rotate(-45deg);
  }
}