:root {
  --bg-soft: #cfd6be;
  --panel: #eef1ea;
  --panel-2: #f6eedc;
  --green: #008a3e;
  --green-dark: #007535;
  --green-light: #79bc2f;
  --text: #232323;
  --muted: #8e8e8e;
  --line: #cfd3c7;
  --pill-green: #c7e1b8;
  --pill-yellow: #eee4c6;
  --pill-disabled: #d6d4d4;
  --white: #ffffff;
  --shadow: 0 10px 24px rgba(76, 96, 56, 0.14);
  --radius-xl: 36px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: #f5f5f0;
}

img {
  max-width: 100%;
  display: block;
}

button, .button{
    margin: auto !important;
    max-width: 100% !important;
    width: 100%;
}

button,
input,
select {
  font: inherit;
}
.terms-text{
  max-width: 375px;
  font-size: 12px;
  font-weight: normal;
}
.terms-text a{
  cursor: pointer;
  text-decoration: underline;
}
.thnks_txt{
  text-align: center;
  font-size: 25px;
  line-height: 150px;
}
.page {
  width: 100%;
  /*max-width: 1060px;*/
  margin: 0 auto;
  background: var(--bg-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 428px);
  gap: 34px;
  align-items: start;
  padding: 39px 58px 36px 42px;
  min-height: 586px;
}

.hero__visual {
  display: grid;
  /*grid-template-columns: 1fr 280px;
  gap: 18px;*/
  align-items: center;
  min-height: 510px;
}

.hero__image-wrap {
  position: relative;
  align-self: end;
  min-height: 520px;
}

.hero__pet-image {
  max-width: 550px;
  display: inline-block;
  position: relative;  
}
.msct{
  max-width: 35px;
}
.other{
  display: none;
}
.other.activo{
  display: inline-block; !important;
}
.hero__image-placeholder,
.bottom-banner__cat-placeholder {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(0, 138, 62, 0.35);
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(0, 117, 53, 0.75);
  font-weight: 700;
  padding: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.hero__image-wrap:has(.hero__pet-image[src="assets/perro-principal.png"]) .hero__image-placeholder,
.bottom-banner__cat-wrap:has(.bottom-banner__cat-image[src="assets/gato-banner.png"]) .bottom-banner__cat-placeholder {
  display: grid;
}

.hero__image-wrap:has(.hero__pet-image:not([src="assets/perro-principal.png"])) .hero__image-placeholder,
.bottom-banner__cat-wrap:has(.bottom-banner__cat-image:not([src="assets/gato-banner.png"])) .bottom-banner__cat-placeholder {
  display: none;
}

.hero__copy {
  align-self: center;
  margin-top: -26px;
}

.hero__copy h1,
.bottom-banner__content h2 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.03em;
}

.hero__copy h1 {
  font-size: clamp(48px, 4.3vw, 64px);
  color: var(--green);
}

.hero__copy h1 span {
  color: var(--green-light);
}
.modls{
  padding: 35px;
  text-align: center;
}
.hero__copy p {
  margin: 10px 0 0;
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
  text-align: right;
  padding-right: 14px;
}
.mbl{
  display: none !important;
}
.form-card{
  min-width: 400px;
}
.form-card,.imgDog{
  display: inline-block;
  vertical-align: middle;
}
.form-card {
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  min-height: 510px;
  position: relative;
}

.form-card__inner {
  padding: 46px 42px 38px;
  text-align: left;
}

.form-preloader {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: rgba(238, 241, 234, 0.9);
  display: none;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.form-preloader.is-active {
  display: grid;
}

.form-preloader p {
  margin: 0;
}

.form-preloader__spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(0, 138, 62, 0.18);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.form-card__title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.form-stage {
  display: none;
}

.form-stage.is-active {
  display: block;
  animation: fadeIn .24s ease;
}

.segment-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.segment-control__item {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--pill-yellow);
  color: #1d1d1d;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
}

.segment-control__item.is-active {
  background: var(--pill-green);
}

.segment-control__item--pet {
  background: var(--pill-yellow);
}

.segment-control__item--disabled {
  background: var(--pill-disabled);
  color: rgba(30, 30, 30, 0.55);
}

.check-box {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid #d1d1d1;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  line-height: 1;
  flex: 0 0 16px;
}

.segment-control__item.is-active .check-box,
.segment-control__item--disabled .check-box {
  background: var(--green);
  border-color: var(--green);
}

.segment-control__item--disabled .check-box {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}

.segment-control__item:not(.is-active):not(.segment-control__item--disabled) .check-box {
  color: transparent;
}

.pet-icon {
  margin-left: auto;
  font-size: 15px;
  line-height: 1;
}

.pet-form {
  display: grid;
  gap: 8px;
}

.pet-items {
  display: grid;
  gap: 12px;
}

.pet-item {
  display: grid;
  gap: 8px;
}

.pet-item + .pet-item {
  border-top: 1px solid rgba(207, 211, 199, 0.85);
  padding-top: 12px;
}

.pet-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
}

.pet-item__title {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.pet-add,
.pet-remove {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pet-remove {
  width: 28px !important;
  height: 28px;
  max-width: 28px !important;
  border-radius: 50%;
  background: rgba(0, 138, 62, 0.1);
  color: var(--green);
  margin: 0 !important;
  padding: 0;
}

.pet-remove:hover {
  background: rgba(0, 138, 62, 0.18);
}

.pet-remove:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.pet-remove:disabled:hover {
  background: rgba(0, 138, 62, 0.1);
}

.pet-add {
  justify-self: center;
  width: auto !important;
  min-height: 34px;
  border-radius: 999px;
  background: var(--pill-green);
  color: var(--green);
  gap: 6px;
  margin: 2px auto 4px !important;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
}

.pet-add:hover {
  background: #b8d9a6;
}

.field-group input,
.select-like select,
.other-row__input,
.upload-field {
  width: 100%;
  height: 38px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f7f7f7;
  padding: 0 14px;
  color: #666;
  outline: none;
}

.field-group input::placeholder,
.other-row__input::placeholder,
.select-like select {
  color: #868686;
}

.select-like {
  position: relative;
}

.select-like::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #c2c7b8;
  border-bottom: 2px solid #c2c7b8;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.select-like select {
  appearance: none;
}

.contact-preferences {
  padding: 6px 2px 0;
}

.contact-preferences p {
  margin: 0 0 10px;
  color: #767676;
  font-size: 13px;
  font-weight: 700;
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 9px;
}

.mini-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8b8b8b;
  font-size: 12px;
  font-weight: 700;
  position: relative;
}

.mini-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mini-check__box {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid #d7d7d7;
  background: #fdfdfd;
}

.mini-check input:checked + .mini-check__box {
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 0 0 0 3px #fff;
}

.other-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.other-row__input {
  height: 22px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
}

.primary-btn {
  width: 286px;
  max-width: 100%;
  height: 39px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;  
  margin: 12px auto 0 !important;
  padding: inherit;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.upload-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8b8b8b;
  font-weight: 800;
  cursor: pointer;
  margin-top: 5px;
}

.upload-icon {
  color: #c7ccb8;
  font-size: 18px;
  line-height: 1;
  margin-top: -2px;
}

.back-link {
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  margin: 7px auto 0;
  cursor: pointer;
}

.separator {
  height: 42px;
  background: #f2f2f2;
}

.bottom-banner {
  background: var(--panel-2);
  min-height: 190px;
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: end;
  padding: 0 235px;
  overflow: hidden;
}

.bottom-banner__cat-wrap {
  position: relative;
  min-height: 150px;
  align-self: end;
}

.bottom-banner__cat-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: bottom center;
  position: relative;  
}

.bottom-banner__content {
  padding: 30px 0 0 0;
  align-self: center;
}

.bottom-banner__content h2 {
  font-size: clamp(34px, 3.4vw, 50px);
  color: var(--green);
  text-align: center;
}

.bottom-banner__content h2 span {
  color: var(--green-light);
}

.bottom-banner__link {
  display: block;
  text-align: center;
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
  text-decoration: underline;
  margin-top: 6px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 24px 24px;
  }

  .hero__visual {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 14px;
  }

  .hero__image-wrap {
    min-height: 390px;
    order: 2;
  }

  .hero__copy {
    order: 1;
    margin-top: 0;
    text-align: center;
  }

  .hero__copy p {
    text-align: center;
    padding-right: 0;
  }

  .form-card {
    max-width: 560px;
    margin: 0 auto;
  }

  .bottom-banner {
    grid-template-columns: 240px 1fr;
    padding: 0 24px 0 30px;
  }
}

@media (max-width: 640px) {
  .thnks_card{
    min-height: 75px;
  }
  .thnks_txt{
    font-size: 20px;
    line-height: 50px;
  }
  .form-card {
    min-width: auto;
  }
  .hero__pet-image{
    max-width: 320px;
  }
  .mbl{
    display: inline-block !important;
  }
  .dsk{
    display: none;
  }
  .page {
    background: var(--bg-soft);
  }

  .hero {
    padding: 18px 14px 20px;
  }

  .hero__copy h1 {
    font-size: 48px;
  }

  .hero__image-wrap {
    min-height: 300px;
  }

  .form-card {
    border-radius: 28px;
  }

  .form-card__inner {
    padding: 28px 18px 24px;
  }

  .segment-control {
    grid-template-columns: 1fr;
  }

  .grid-two,
  .other-row,
  .bottom-banner {
    grid-template-columns: 1fr;
  }

  .check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bottom-banner {
    padding: 12px 14px 20px;
    min-height: auto;
  }

  .bottom-banner__cat-wrap {
    min-height: 130px;
  }

  .bottom-banner__cat-image {
    height: 130px;
  }

  .bottom-banner__content {
    padding: 8px 0 0;
  }

  .bottom-banner__content h2 {
    font-size: 34px;
  }

  .bottom-banner__link {
    font-size: 18px;
  }

  .separator {
    height: 20px;
  }
}
