.animals-page {
  background: #fff;
}
.animals-hero {
  padding: 72px 0 68px;
  background: linear-gradient(120deg, #fff6eb 0%, #fff 58%, #f8f2ec 100%);
}
.animals-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.animals-hero h1 {
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 16px 0 22px;
  max-width: 850px;
}
.animals-hero h1 span,
.animals-list-section .section-heading h2 span {
  color: var(--orange);
}
.animals-hero p {
  font-size: 19px;
  line-height: 1.7;
  max-width: 760px;
  color: #615850;
}
.animals-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.animals-hero-card {
  background: #211c18;
  color: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 22px 55px rgba(25, 18, 12, 0.16);
  max-width: 430px;
  justify-self: end;
}
.animals-hero-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #382f28;
  color: #ffae69;
  font-size: 25px;
  margin-bottom: 18px;
}
.animals-hero-card strong {
  font-size: 24px;
  line-height: 1.15;
  display: block;
}
.animals-hero-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #d0c5bc;
  margin: 12px 0 22px;
}
.animals-contact-mini {
  display: grid;
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}
.animals-contact-mini a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.animals-count {
  font-size: 13px;
  color: #756b64;
  border: 1px solid #eadfd4;
  background: #fff;
  border-radius: 999px;
  padding: 10px 13px;
  white-space: nowrap;
}
.animals-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  background: #fcfaf7;
  border: 1px solid #eadfd4;
  border-radius: 18px;
  padding: 14px;
  margin: 26px 0 24px;
}
.animals-filter-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #847970;
  font-weight: 800;
  margin: 0 0 7px;
}
.animals-filter-group select {
  margin: 0;
}
.animals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.animals-card {
  background: #fff;
  border: 1px solid #e9dfd6;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(40, 25, 12, 0.045);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.animals-card-photo {
  aspect-ratio: 1.06;
  background: linear-gradient(135deg, #f5eee8, #ebe2d9) center/cover no-repeat;
  position: relative;
  cursor: pointer;
}
.animals-card-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  background: rgba(32, 27, 23, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
}
.animals-fav {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.93);
  color: #493e37;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.animals-fav.active {
  color: var(--orange);
}
.animals-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.animals-card-body h3 {
  margin: 0 0 5px;
  font-size: 22px;
}
.animals-card-sub {
  margin: 0;
  color: #716760;
  font-size: 13px;
}
.animals-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 13px 0 17px;
}
.animals-card-meta span {
  background: #f6f1ed;
  color: #655c55;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
}
.animals-card-body .btn {
  margin-top: auto;
  width: 100%;
}
.animals-loading,
.animals-empty {
  grid-column: 1/-1;
  border: 1px dashed #ddcfc4;
  border-radius: 18px;
  padding: 42px;
  text-align: center;
  color: #776d65;
  background: #fcfaf7;
}
.animals-info-section {
  padding: 86px 0;
  background: #fcfaf7;
}
.animals-info-grid {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 70px;
  align-items: center;
}
.animals-info-grid h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.04;
  margin: 12px 0 18px;
}
.animals-info-grid p {
  color: #6d645d;
  line-height: 1.75;
  font-size: 17px;
  max-width: 760px;
}
.animals-info-card {
  background: #211c18;
  color: #fff;
  border-radius: 24px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 14px;
  box-shadow: 0 18px 45px rgba(25, 18, 12, 0.14);
}
.animals-info-card strong {
  align-self: end;
  font-size: 15px;
}
.animals-info-card p {
  grid-column: 2;
  color: #b9ada3;
  font-size: 13px;
  line-height: 1.5;
  margin: 3px 0 18px;
}
.animals-info-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #382f28;
  color: #ffae69;
  font-size: 11px;
  font-weight: 900;
  grid-row: span 2;
}
.animals-contact-section {
  padding: 72px 0;
  background: #fff3e8;
}
.animals-contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;
}
.animals-contact-grid h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
  margin: 12px 0 10px;
  max-width: 850px;
}
.animals-contact-grid p {
  color: #6f645b;
  line-height: 1.65;
  max-width: 760px;
  margin: 0;
}
.animals-contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.animals-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}
.animals-modal.open {
  display: block;
}
.animals-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 18, 12, 0.64);
  backdrop-filter: blur(3px);
}
.animals-modal-dialog {
  position: relative;
  width: min(980px, calc(100% - 28px));
  max-height: min(92vh, 900px);
  overflow: auto;
  margin: 4vh auto;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.24);
  padding: 30px;
}
.animals-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: #f3ede7;
  color: #3e352f;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.animal-modal-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 30px;
  align-items: start;
}
.animal-modal-gallery {
  display: grid;
  gap: 10px;
}
.animal-modal-main-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 20px;
  background: #f3ede7;
}
.animal-modal-placeholder {
  aspect-ratio: 1/1;
  border-radius: 20px;
  background: #f3ede7;
  display: grid;
  place-items: center;
  color: #7e736b;
  text-align: center;
  padding: 30px;
}
.animal-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.animal-modal-thumb {
  border: 2px solid transparent;
  padding: 0;
  background: #f4eee8;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.animal-modal-thumb.active {
  border-color: var(--orange);
}
.animal-modal-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.animal-modal-copy {
  padding-top: 8px;
}
.animal-modal-copy h2 {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 42px;
  line-height: 1.02;
  margin: 10px 0;
}
.animal-modal-copy > p {
  color: #6e645d;
  line-height: 1.65;
}
.animal-modal-copy .pet-details {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.pet-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #eee5de;
  font-size: 14px;
}
.pet-detail-row span:first-child {
  color: #847970;
}
.adoption-form-wrap {
  margin-top: 28px;
}
.adoption-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  color: #796f68;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}
.adoption-divider:before,
.adoption-divider:after {
  content: "";
  height: 1px;
  background: #eadfd4;
  flex: 1;
}
.adoption-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.adoption-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 14px;
}
.adoption-form textarea,
.adoption-form input,
.adoption-form select {
  font-size: 14px;
}
.adoption-form .checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 500;
  line-height: 1.45;
}
.adoption-form .checkbox-field input {
  width: auto;
  margin-top: 3px;
}
.adoption-form-status {
  min-height: 1.3em;
  color: #b4530f;
  font-size: 13px;
  margin: 10px 0 0;
}
.adoption-success {
  text-align: center;
  padding: 28px 8px 8px;
}
.success-check {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #eaf6eb;
  color: #2f7d4b;
  font-size: 26px;
  font-weight: 900;
}
.adoption-success h3 {
  font-size: 28px;
  margin: 10px 0;
}
.adoption-success p {
  color: #6e645d;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
}
.adoption-success .btn {
  margin-top: 16px;
}
.animals-modal .pet-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.animals-modal .pet-meta span {
  background: #f6f1ed;
  color: #655c55;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 1100px) {
  .animals-hero-grid {
    grid-template-columns: 1fr;
  }
  .animals-hero-card {
    justify-self: start;
    max-width: 620px;
  }
  .animals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .animals-info-grid {
    grid-template-columns: 1fr;
  }
  .animals-info-card {
    max-width: 650px;
  }
  .animals-contact-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .animal-modal-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .animals-hero {
    padding-top: 48px;
  }
  .animals-filters {
    grid-template-columns: 1fr 1fr;
  }
  .animals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .animals-contact-actions {
    width: 100%;
  }
  .animals-contact-actions .btn {
    flex: 1;
  }
  .adoption-form .form-row {
    grid-template-columns: 1fr;
  }
  .animals-modal-dialog {
    padding: 22px;
  }
}
@media (max-width: 560px) {
  .animals-hero h1 {
    font-size: 46px;
  }
  .animals-filters {
    grid-template-columns: 1fr;
  }
  .animals-filters .btn {
    width: 100%;
  }
  .animals-grid {
    grid-template-columns: 1fr;
  }
  .animals-hero-actions,
  .animals-contact-actions {
    flex-direction: column;
  }
  .animals-hero-actions .btn,
  .animals-contact-actions .btn {
    width: 100%;
  }
  .animals-modal-dialog {
    max-height: 94vh;
    margin: 3vh auto;
  }
  .animal-modal-copy h2 {
    font-size: 34px;
  }
  .animal-modal-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  /* =====================================
   ADOPTION FORM - RESPONSIVE FIX
===================================== */

/* Modal */
.animals-modal-dialog {
  box-sizing: border-box;
  max-width: 100%;
}

/* Grid */
.adoption-form .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Form elements */
.adoption-form input:not([type="checkbox"]),
.adoption-form select,
.adoption-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Grid children */
.adoption-form .form-row > * {
  min-width: 0;
}

/* Checkbox */
.adoption-form .checkbox-field input {
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 800px) {

  .adoption-form .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .animals-modal-dialog {
    width: calc(100% - 24px);
    padding: 20px;
  }

  .adoption-form-wrap {
    width: 100%;
    min-width: 0;
  }

}

/* Small phones */
@media (max-width: 560px) {

  .animals-modal-dialog {
    width: calc(100% - 16px);
    padding: 16px;
    border-radius: 16px;
  }

  .adoption-form label {
    font-size: 13px;
  }

  .adoption-form input:not([type="checkbox"]),
  .adoption-form select,
  .adoption-form textarea {
    font-size: 16px;
  }

  .adoption-form .btn {
    width: 100%;
  }

}
}
