body.modal-open {
  overflow: hidden;
}

.whatsapp-modal[hidden] {
  display: none;
}

.whatsapp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.whatsapp-modal.is-open {
  opacity: 1;
}

.whatsapp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.whatsapp-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(860px, calc(100vh - 32px));
  overflow: auto;
  padding: 42px;
  background: #121416;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 4px solid #ef252d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
  color: #fff;
  transform: translateY(16px) scale(0.985);
  transition: transform 0.18s ease;
}

.whatsapp-modal.is-open .whatsapp-dialog {
  transform: none;
}

.whatsapp-modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 300 34px/1 Arial, sans-serif;
  cursor: pointer;
}

.whatsapp-modal-kicker {
  margin: 0 0 10px;
  color: #ef252d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.whatsapp-dialog h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
}

.whatsapp-modal-intro {
  max-width: 500px;
  margin: 16px 0 25px;
  color: #b7b9bc;
  line-height: 1.55;
}

.whatsapp-form {
  display: grid;
  gap: 16px;
}

.whatsapp-form label {
  display: grid;
  gap: 7px;
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.whatsapp-form label span {
  color: #8d9094;
  font-weight: 400;
}

.whatsapp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.whatsapp-form input,
.whatsapp-form select,
.whatsapp-form textarea {
  width: 100%;
  border: 1px solid #3c4044;
  border-radius: 0;
  background: #1a1d20;
  color: #fff;
  padding: 14px 15px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.whatsapp-form textarea {
  min-height: 90px;
  resize: vertical;
}

.whatsapp-form input::placeholder,
.whatsapp-form textarea::placeholder {
  color: #74787d;
}

.whatsapp-form input:focus,
.whatsapp-form select:focus,
.whatsapp-form textarea:focus {
  border-color: #ef252d;
  box-shadow: 0 0 0 3px rgba(239, 37, 45, 0.14);
}

.whatsapp-form-note {
  margin: 0;
  color: #9ca0a4;
  font-size: 12px;
}

.whatsapp-submit {
  min-height: 54px;
  border: 0;
  background: #25d366;
  color: #071d0f;
  padding: 15px 20px;
  font: 800 14px/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.whatsapp-submit:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.whatsapp-submit span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 8px;
  border-radius: 50%;
  background: #071d0f;
  color: #25d366;
}

@media (max-width: 640px) {
  .whatsapp-modal {
    align-items: end;
    padding: 0;
  }

  .whatsapp-dialog {
    width: 100%;
    max-height: 92vh;
    padding: 36px 22px 26px;
    border-top-width: 3px;
  }

  .whatsapp-form-row {
    grid-template-columns: 1fr;
  }

  .whatsapp-dialog h2 {
    font-size: 34px;
  }

  .whatsapp-modal-intro {
    margin-bottom: 20px;
    font-size: 14px;
  }
}
