.php-wa-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(4 15 26 / 78%);
  animation: php-wa-fade-in 160ms ease-out;
}

.php-wa-backdrop[hidden] {
  display: none;
}

.php-wa-dialog {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 32px;
  border: 1px solid #d8e0e8;
  border-radius: 18px;
  background: #fff;
  color: #10243a;
  box-shadow: 0 24px 64px rgb(0 0 0 / 30%);
  font-family: inherit;
  animation: php-wa-rise-in 180ms ease-out;
}

.php-wa-dialog h2 {
  margin: 0 40px 8px 0;
  color: #10243a;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  line-height: 1.2;
}

.php-wa-intro {
  margin: 0 0 24px;
  color: #42576d;
  line-height: 1.5;
}

.php-wa-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #10243a;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.php-wa-close:hover,
.php-wa-close:focus-visible {
  background: #edf3f7;
}

.php-wa-form,
.php-wa-field {
  display: grid;
  gap: 8px;
}

.php-wa-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.php-wa-form {
  gap: 18px;
}

.php-wa-field label {
  color: #10243a;
  font-weight: 700;
}

.php-wa-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #8495a8;
  border-radius: 9px;
  background: #fff;
  color: #10243a;
  font: inherit;
}

.php-wa-field input:focus-visible,
.php-wa-close:focus-visible,
.php-wa-submit:focus-visible,
.php-wa-fallback-link:focus-visible {
  outline: 3px solid #0b70d1;
  outline-offset: 2px;
}

.php-wa-field input[aria-invalid="true"] {
  border-color: #b42318;
}

.php-wa-error {
  min-height: 1.2em;
  color: #b42318;
  font-size: 0.875rem;
}

.php-wa-submit,
.php-wa-fallback-link {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: #08783e;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.php-wa-submit:hover,
.php-wa-fallback-link:hover {
  background: #056532;
}

.php-wa-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.php-wa-status {
  min-height: 1.4em;
  color: #334a61;
  line-height: 1.4;
}

.php-wa-fallback-link[hidden] {
  display: none;
}

@keyframes php-wa-fade-in {
  from { opacity: 0; }
}

@keyframes php-wa-rise-in {
  from { transform: translateY(12px); opacity: 0; }
}

@media (max-width: 640px) {
  .php-wa-backdrop {
    align-items: end;
    padding: 12px;
  }

  .php-wa-dialog {
    max-height: calc(100vh - 24px);
    padding: 24px 18px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .php-wa-backdrop,
  .php-wa-dialog {
    animation: none;
  }
}

[data-php-contact-layout="centered"] {
  display: flex !important;
  justify-content: center;
}

[data-php-contact-column="centered"] {
  width: 100%;
  max-width: 48rem;
}

[data-php-contact-socials] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

[data-php-contact-social-link] {
  box-sizing: border-box;
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: 1px solid rgb(3 225 255 / 18%);
  border-radius: 0.75rem;
  background: rgb(10 16 40 / 82%);
  color: #f0f4f8;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

[data-php-contact-social-link] svg {
  flex: 0 0 auto;
  color: #03e1ff;
}

[data-php-contact-social-link]:hover {
  border-color: rgb(3 225 255 / 48%);
  box-shadow: 0 0 22px rgb(3 225 255 / 12%);
  transform: translateY(-1px);
}

[data-php-contact-social-link]:focus-visible {
  outline: 2px solid #03e1ff;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  [data-php-contact-socials] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-php-contact-social-link] {
    transition: none;
  }
}
