.contact-open-button {
  border: 3px solid white;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 4200;
  background: rgba(0, 0, 0, 0.52);
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.contact-overlay[hidden] {
  display: none;
}

.contact-modal {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  position: relative;

  background: white;
  color: #102410;
  border-radius: 26px;
  border-top: 6px solid #1e750d;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  padding: 30px;
  box-sizing: border-box;

  animation: contactPopupIn 0.22s ease;
}

.contact-close-button {
  position: absolute;
  top: 14px;
  right: 16px;

  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;

  background: rgba(30, 117, 13, 0.12);
  color: #102410;

  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.contact-close-button:hover {
  background: rgba(30, 117, 13, 0.22);
}

.contact-modal-header {
  text-align: center;
  padding: 4px 28px 18px;
}

.contact-modal-header h2 {
  margin: 0 0 8px;
  color: #102410;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.contact-modal-header p {
  margin: 0;
  color: #4b594b;
  line-height: 1.5;
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #102410;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 13px 14px;

  background-color: #f5e6c4;
  border: 1px solid rgba(16, 36, 16, 0.22);
  border-radius: 14px;

  font-family: inherit;
  font-size: 16px;
  color: #102410;
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background-color: #fff8e8;
  border-color: #1e750d;
  box-shadow: 0 0 0 4px rgba(30, 117, 13, 0.15);
}

.contact-send-button {
  align-self: center;
  min-width: 180px;
  margin-top: 6px;

  padding: 14px 26px;
  border: none;
  border-radius: 999px;

  background: #1e750d;
  color: white;

  font-family: inherit;
  font-weight: 900;
  font-size: 1rem;

  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.contact-send-button:hover {
  background: #22910c;
  transform: translateY(-2px);
}

.contact-send-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-status {
  min-height: 1.4em;
  margin: 0;
  text-align: center;
  color: #102410;
  font-weight: 800;
  line-height: 1.4;
}

.contact-status-error {
  color: #b00020;
}

.contact-status-success {
  color: #1e750d;
}

@keyframes contactPopupIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
.thank-you-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;

  display: grid;
  place-items: center;

  padding: 20px;
  box-sizing: border-box;

  background: rgba(0, 0, 0, 0.45);
}

.thank-you-overlay[hidden] {
  display: none;
}

.thank-you-modal {
  width: min(460px, 100%);

  background: white;
  color: #102410;

  border-radius: 28px;
  border-top: 7px solid #1e750d;

  padding: 34px 28px;
  box-sizing: border-box;

  text-align: center;

  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);

  animation: thankYouPop 0.25s ease;
}

.thank-you-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 10px;
}

.thank-you-modal h2 {
  margin: 0 0 10px;
  color: #1e750d;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.thank-you-modal p {
  margin: 0;
  color: #102410;
  font-weight: 700;
  line-height: 1.5;
}

.thank-you-button {
  margin-top: 24px;

  padding: 13px 26px;

  border: none;
  border-radius: 999px;

  background: #1e750d;
  color: white;

  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;

  cursor: pointer;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.thank-you-button:hover {
  background: #22910c;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 4900;

  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;

  width: 10px;
  height: 16px;

  opacity: 0.95;

  animation: confettiFall linear forwards;
}

@keyframes thankYouPop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes confettiFall {
  from {
    transform: translateY(-20px) rotate(0deg);
  }

  to {
    transform: translateY(110vh) rotate(720deg);
  }
}

@media (max-width: 700px) {
  .contact-modal {
    padding: 26px 20px;
  }

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