.automation-eyebrow {
  color: #0f6659;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.automation-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  padding: 20px;
  place-items: center;
}

.automation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 30, 27, .72);
  backdrop-filter: blur(5px);
}

.automation-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  padding: clamp(24px, 5vw, 42px);
  overflow-y: auto;
  color: #17352f;
  background: #f8fcfa;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
  text-align: left;
}

.automation-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #17352f;
  background: #e3f1ed;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.7rem;
}

.automation-modal-close:focus-visible,
.automation-submit:focus-visible,
.automation-more-info:focus-visible {
  outline: 4px solid rgba(15, 76, 129, .28);
  outline-offset: 3px;
}

.automation-modal-intro h2 {
  margin: 8px 45px 8px 0;
  font-size: 1.8rem;
}

.automation-modal-intro p {
  margin: 0 0 22px;
  color: #526b65;
}

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

.automation-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.automation-form input,
.automation-form select,
.automation-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  color: #17352f;
  background: #fff;
  border: 1px solid #a9c7bf;
  border-radius: 9px;
  font: inherit;
}

.automation-form textarea {
  resize: vertical;
}

.automation-form input:focus,
.automation-form select:focus,
.automation-form textarea:focus {
  outline: 3px solid rgba(15, 76, 129, .18);
  border-color: #0f4c81;
}

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

.automation-form-contact label:last-child {
  grid-column: 1 / -1;
}

.automation-form label span {
  font-size: .82rem;
  font-weight: 400;
}

.automation-consent {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  font-weight: 400 !important;
}

.automation-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.automation-submit {
  padding: 13px 20px;
  color: #fff;
  background: #0f4c81;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: 700 1rem Arial, sans-serif;
}

.automation-submit:hover {
  background: #0b3d69;
}

.automation-more-info {
  justify-self: center;
  color: #0f4c81;
  font-weight: 700;
}

body.automation-modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .automation-modal {
    padding: 0;
    place-items: stretch;
  }

  .automation-modal-panel {
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    padding: 28px 18px;
    border-radius: 0;
  }

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

  .automation-form-contact label:last-child {
    grid-column: auto;
  }
}
