:root {
  --pink: #ef4f7a;
  --pink-dark: #d93e69;
  --pink-soft: #fff1f5;
  --pink-soft-2: #ffe6ee;
  --cream: #fffaf6;
  --brown: #5c3f3f;
  --text: #26212b;
  --muted: #81727a;
  --white: #ffffff;
  --line: rgba(239, 79, 122, 0.18);
  --shadow: 0 18px 45px rgba(105, 61, 73, 0.12);
  --shadow-hover: 0 24px 60px rgba(105, 61, 73, 0.18);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  background: #fff8fa;
  color: var(--text);
  font-family: "Poppins", sans-serif;
}

.match-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 204, 218, 0.45), transparent 28%),
    radial-gradient(circle at 92% 24%, rgba(255, 228, 235, 0.7), transparent 30%),
    linear-gradient(180deg, #fff8fa 0%, #ffffff 50%, #fff6f9 100%);
}

.hero {
  position: relative;
  min-height: 680px;
  padding: 88px 0 84px;
  display: flex;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -75px;
  height: 160px;
  background: #ffffff;
  border-radius: 50% 50% 0 0;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.hero-left {
  max-width: 590px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 232, 239, 0.95);
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(239, 79, 122, 0.08);
  margin-bottom: 24px;
}

.hero-tag i {
  font-size: 15px;
}

.hero h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -2.5px;
  color: var(--text);
  margin: 0 0 24px;
  font-weight: 700;
}

.hero h1::first-letter {
  color: var(--text);
}

.hero-left p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  max-width: 470px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 23px !important;
  font-family: "Poppins", sans-serif;
  font-weight: 700 !important;
  transition: 0.25s ease !important;
}

.btn-warm {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark)) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 14px 30px rgba(239, 79, 122, 0.28);
}

.btn-warm:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(239, 79, 122, 0.34);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.86) !important;
  color: #3d343a !important;
  border: 1px solid rgba(239, 79, 122, 0.18) !important;
  box-shadow: 0 12px 28px rgba(74, 48, 56, 0.08);
}

.btn-soft:hover {
  background: #fff !important;
  transform: translateY(-3px);
  border-color: rgba(239, 79, 122, 0.35) !important;
}

.hero-trust {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-avatars {
  display: flex;
}

.trust-avatars span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-left: -9px;
  background: linear-gradient(135deg, #fbd0dc, #ef4f7a);
  box-shadow: 0 10px 24px rgba(67, 38, 45, 0.15);
}

.trust-avatars span:first-child {
  margin-left: 0;
}

.trust-avatars span:nth-child(2) {
  background: linear-gradient(135deg, #ffdce5, #b96d82);
}

.trust-avatars span:nth-child(3) {
  background: linear-gradient(135deg, #fff2d8, #f0a7b8);
}

.hero-trust p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #685b62;
}

.hero-trust strong {
  color: var(--pink);
}

.hero-right {
  position: relative;
  min-height: 540px;
}

.photo-stack {
  position: relative;
  height: 540px;
  max-width: 560px;
  margin-left: auto;
}

.main-pet-photo {
  position: absolute;
  top: 0;
  left: 35px;
  width: 370px;
  height: 500px;
  border-radius: 42px;
  overflow: hidden;
  border: 10px solid #fff;
  box-shadow: var(--shadow-hover);
  transform: rotate(-1deg);
}

.side-pet-photo {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: 230px;
  height: 315px;
  border-radius: 32px;
  overflow: hidden;
  border: 9px solid #fff;
  box-shadow: var(--shadow-hover);
  transform: rotate(5deg);
  z-index: 4;
}

.main-pet-photo img,
.side-pet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-badge {
  position: absolute;
  left: 0;
  bottom: 85px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(239, 79, 122, 0.12);
  border-radius: 24px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
}

.badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  font-size: 22px;
}

.hero-float-badge strong {
  display: block;
  font-size: 28px;
  color: var(--pink);
  line-height: 1;
}

.hero-float-badge span {
  display: block;
  color: #7a6870;
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
}

.floating-heart {
  position: absolute;
  top: 95px;
  right: 58px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink);
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: var(--shadow);
  z-index: 7;
}

.hero-bg-paw {
  position: absolute;
  color: rgba(239, 79, 122, 0.12);
  font-size: 120px;
  z-index: 1;
}

.paw-one {
  left: -25px;
  top: 210px;
  transform: rotate(-18deg);
}

.paw-two {
  right: 50px;
  bottom: 80px;
  transform: rotate(18deg);
}

.how-it-works {
  position: relative;
  padding: 80px 0 95px;
  background: #ffffff;
}

.section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.section-heading span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 18px;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-family: "Fredoka", sans-serif;
  color: var(--text);
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -1px;
  margin: 0 0 8px;
  font-weight: 700;
}

.section-heading p,
.section-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.step-card {
  position: relative;
  min-height: 280px;
  padding: 36px 30px 30px;
  border-radius: 28px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(239, 79, 122, 0.22), rgba(255, 230, 238, 0.2)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 48px rgba(83, 50, 62, 0.09);
  transition: 0.28s ease;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--pink), #ffa5bd);
  opacity: 0.75;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.step-icon {
  width: 76px;
  height: 76px;
  border-radius: 25px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff0f5, #ffdce6);
  color: var(--pink-dark);
  font-size: 31px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(239, 79, 122, 0.25);
}

.step-card h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 14.5px;
}

.quiz-section {
  position: relative;
  padding: 95px 0 110px;
  background:
    radial-gradient(circle at 14% 84%, rgba(255, 201, 216, 0.55), transparent 20%),
    radial-gradient(circle at 88% 80%, rgba(255, 219, 229, 0.7), transparent 24%),
    linear-gradient(180deg, #fff5f8 0%, #fff0f5 100%);
}

.quiz-section::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: -80px;
  height: 150px;
  background: #ffffff;
  border-radius: 0 0 50% 50%;
}

.quiz-bg-shape {
  position: absolute;
  border-radius: 44% 56% 58% 42%;
  background: rgba(255, 196, 213, 0.45);
  filter: blur(0.2px);
}

.shape-left {
  width: 240px;
  height: 270px;
  left: -70px;
  bottom: 60px;
}

.shape-right {
  width: 270px;
  height: 300px;
  right: -70px;
  bottom: 35px;
}

.quiz-box {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  padding: 28px 34px 34px;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(239, 79, 122, 0.12);
  backdrop-filter: blur(14px);
}

.quiz-progress {
  height: 8px;
  background: #f3e6eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), #ff86a7);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 26px;
  color: #9a8991;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeUp 0.25s ease both;
}

.quiz-step h3 {
  text-align: center;
  font-family: "Fredoka", sans-serif;
  color: var(--text);
  font-size: 25px;
  margin: 0 0 26px;
  font-weight: 700;
}

.choices {
  display: grid;
  gap: 16px;
}

.choices.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.choice {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.choice-inner {
  min-height: 94px;
  border: 2px solid rgba(239, 79, 122, 0.14);
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #46383e;
  font-weight: 700;
  transition: 0.22s ease;
}

.choice-inner i {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 18px;
  transition: 0.22s ease;
}

.choice:hover .choice-inner,
.choice.selected .choice-inner {
  border-color: rgba(239, 79, 122, 0.75);
  background: #fff6f9;
  box-shadow: 0 14px 28px rgba(239, 79, 122, 0.11);
  transform: translateY(-3px);
}

.choice.selected .choice-inner i {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
}

.quiz-error {
  margin-top: 15px;
  padding: 11px 14px;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.28);
  color: #dc3545;
  font-size: 14px;
  border-radius: 12px;
  display: none;
  text-align: center;
  font-weight: 600;
}

.quiz-error.show {
  display: block;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(239, 79, 122, 0.12);
  margin-top: 28px;
  padding-top: 22px;
}

.quiz-nav .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.results-section {
  padding: 95px 0;
  background: #ffffff;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
  gap: 24px;
  width: min(100%, 1180px);
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
}

.results-grid.single-result {
  grid-template-columns: minmax(260px, 420px);
}

.results-grid.single-result .pet-card {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.results-grid.single-result .pet-img {
  height: 250px;
}

.pet-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(80, 47, 58, 0.1);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(239, 79, 122, 0.12);
}

.pet-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}

.pet-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #fff0f5;
}

.pet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-match {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: white;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(239, 79, 122, 0.25);
}

.pet-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pet-body h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 23px;
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.pet-type {
  font-size: 13px;
  color: var(--pink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pet-body p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.pet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 5px 0 8px;
}

.pet-tags span {
  background: var(--pink-soft);
  color: #8b4c60;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.no-results,
.loading-box {
  background: #fff;
  border-radius: 24px;
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 24px;
  border: 1px solid rgba(239, 79, 122, 0.12);
}

.no-results h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  color: var(--text);
}

.no-results p,
.loading-box p {
  color: var(--muted);
}

.loading-box {
  display: none;
}

.loading-box.show {
  display: block;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #ffe0e9;
  border-top: 4px solid var(--pink);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

#adoptionFormModal .modal-content {
  border-radius: 26px;
  border: none;
  padding: 22px 30px;
  box-shadow: var(--shadow-hover);
}

#adoptionFormModal .modal-title {
  color: var(--pink-dark);
  font-family: "Fredoka", sans-serif;
  font-weight: 800;
}

#adoptionFormModal small {
  color: #d56b8b;
  font-weight: 700;
}

#adoptionFormModal .form-label {
  color: #8f3f5b;
  font-weight: 700;
  font-size: 14px;
}

#adoptionFormModal .form-control,
#adoptionFormModal .form-select {
  border: 2px solid #ffd3df;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}

#adoptionFormModal .form-control:focus,
#adoptionFormModal .form-select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(239, 79, 122, 0.12);
}

#adoptionFormModal input[readonly] {
  background: #f5f5f5;
  border-color: #ddd;
  cursor: not-allowed;
}

.adoption-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffd0de;
  color: #c04a77;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.adoption-step-circle.active {
  background: var(--pink);
  color: #fff;
}

.adoption-step-line {
  height: 3px;
  background: #ffc2d5;
  flex: 1;
}

.adoption-step-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
  color: #bd4773;
  font-size: 12px;
  font-weight: 800;
}

.adoption-step-labels span:nth-child(2) {
  text-align: center;
}

.adoption-step-labels span:nth-child(3) {
  text-align: right;
}

.initial-phone-field {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px;
}

.initial-phone-prefix {
  border: 2px solid #ffd3df;
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 800;
  color: #b83d6d;
}

.initial-phone-flag img {
  width: 18px;
  height: 18px;
}

.initial-phone-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.initial-phone-error.show {
  display: block;
}

.adoption-screening-section {
  background: #fff0f5;
  border: 2px solid #ffc2d5;
  border-radius: 18px;
  padding: 16px;
}

.adoption-screening-section h6 {
  color: #b83d6d;
  font-weight: 800;
}

.adoption-info-alert {
  background: #fff4f8;
  border: 1px solid #ffc2d5;
  border-radius: 18px;
  padding: 16px;
  color: #9c3f60;
  font-size: 14px;
}

#adoptionFormModal .btn-primary,
#adoptionConfirmModal .btn-primary {
  background: var(--pink);
  border-color: var(--pink);
  font-weight: 800;
  border-radius: 999px;
}

#adoptionFormModal .btn-primary:hover,
#adoptionConfirmModal .btn-primary:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
}

#adoptionFormModal .btn-outline-secondary,
#adoptionConfirmModal .btn-outline-secondary {
  color: #c44978;
  border-color: #ff8ab0;
  font-weight: 800;
  border-radius: 999px;
}

.alert-info {
  background: #e8f8ff !important;
  color: #145266 !important;
  border-color: #bfeeff !important;
  font-weight: 600;
}

.adoption-confirm-modal {
  border-radius: 26px;
  border: 0;
  padding: 10px;
}

.adoption-confirm-hero {
  text-align: center;
}

.adoption-confirm-icon-wrap {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  background: #ffe8f0;
  color: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.adoption-confirm-hero .modal-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 800;
  color: var(--text);
}

.adoption-confirm-subtitle {
  color: var(--muted);
}

.adoption-confirm-alert {
  background: #fff4f8;
  border: 1px solid #ffb0c8;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  gap: 12px;
  margin-top: 18px;
  color: #9c3f60;
}

.adoption-toast {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  margin-inline: auto;
  z-index: 999999;
  width: min(92vw, 520px);
  min-width: 300px;
  max-width: 520px;
  border-radius: 18px;
  padding: 16px;
  color: white;
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.success-toast {
  background: #2fb66d;
}

.error-toast {
  background: #d94a4a;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toast-content i {
  font-size: 22px;
  margin-top: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    gap: 35px;
  }

  .main-pet-photo {
    width: 320px;
    height: 450px;
  }

  .side-pet-photo {
    width: 205px;
    height: 285px;
  }

  .photo-stack {
    height: 500px;
  }
}

@media (max-width: 991px) {
  .hero {
    padding: 70px 0 50px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    margin: 0 auto;
  }

  .hero-left p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons,
  .hero-trust {
    justify-content: center;
  }

  .hero-right {
    min-height: 480px;
  }

  .photo-stack {
    margin: 0 auto;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 44px;
    letter-spacing: -1.4px;
  }

  .hero-left p {
    font-size: 15px;
  }

  .hero-right {
    min-height: 410px;
  }

  .photo-stack {
    height: 410px;
    max-width: 390px;
  }

  .main-pet-photo {
    left: 10px;
    width: 260px;
    height: 350px;
    border-radius: 32px;
  }

  .side-pet-photo {
    width: 165px;
    height: 225px;
    right: 0;
    bottom: 28px;
    border-radius: 25px;
  }

  .hero-float-badge {
    left: 5px;
    bottom: 42px;
    padding: 14px 16px;
  }

  .hero-float-badge strong {
    font-size: 22px;
  }

  .floating-heart {
    top: 70px;
    right: 30px;
    width: 50px;
    height: 50px;
  }

  .how-it-works,
  .quiz-section,
  .results-section {
    padding-left: 0;
    padding-right: 0;
  }

  .quiz-box {
    padding: 24px 18px 26px;
    border-radius: 24px;
  }

  .choices.cols-3 {
    grid-template-columns: 1fr;
  }

  .results-grid,
  .results-grid.single-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-grid.single-result .pet-card {
    max-width: none;
  }

  .choice-inner {
    min-height: 76px;
  }

  .quiz-meta {
    font-size: 11px;
  }

  .quiz-step h3 {
    font-size: 21px;
  }

  .quiz-nav {
    flex-wrap: wrap;
  }

  .quiz-nav .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-trust {
    align-items: flex-start;
  }

  .photo-stack {
    max-width: 330px;
    height: 360px;
  }

  .main-pet-photo {
    width: 220px;
    height: 310px;
  }

  .side-pet-photo {
    width: 145px;
    height: 200px;
  }

  .hero-float-badge {
    bottom: 30px;
  }

  .badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 18px;
  }

  .steps-row {
    gap: 18px;
  }

  .step-card {
    padding: 28px 22px 26px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .initial-phone-field {
    grid-template-columns: 1fr;
  }
}
