* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Poppins", sans-serif;
}

img {
  width: 100%;
  max-width: 550px;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: fade-up 0.7s ease-out both;
}

p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
  animation: fade-up 0.7s 0.2s ease-out both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@media (prefers-reduced-motion: reduce) {
  h1,
  p {
    animation: none;
  }
}

@media (max-width: 600px) {
  img {
    max-width: 400px;
  }

  h1 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.9rem;
  }
}

.buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 0px;
}

.buttons button {
  width: 155px;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(212, 14, 14, 0.8);
}

#sendMessage {
  background: rgba(248, 29, 29, 0.8);
  color: white;
}

#tryAgain {
  background: white;
  color: rgba(248, 29, 29, 0.8);
  border: 1px solid rgba(248, 29, 29, 0.8);
}

.message-panel {
  position: fixed;
  z-index: 10;
  top: 50%;
  left: 50%;
  width: min(90vw, 420px);
  padding: 2rem;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -45%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.page-overlay {
  position: fixed;
  z-index: 9;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.page-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.message-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.message-panel h2 {
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.message-panel label {
  display: block;
  margin: 0.75rem 0 0.3rem;
  font-size: 0.9rem;
}

.message-panel input,
.message-panel textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
  resize: none;
}

.message-panel input:focus,
.message-panel textarea:focus {
  outline: none;
  border-color: rgba(248, 29, 29, 0.8);
  box-shadow: 0 0 0 2px rgba(248, 29, 29, 0.2);
}

.message-panel form > button {
  width: 50%;
  margin-left: 25%;
  margin-top: 1.25rem;
  padding: 0.7rem;
  border: 0;
  border-radius: 6px;
  background: rgba(248, 29, 29, 0.8);
  color: white;
  cursor: pointer;
  font: inherit;
  animation: pulse 2s infinite;
  transition: background 0.2s ease;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 29, 29, 0.8);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(222, 74, 74, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(248, 29, 29, 0);
  }
}

.message-panel form > button:hover {
  background: rgba(227, 7, 7, 0.8);
}

.message-panel form > button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  color: #333;
  font-size: 0.85rem;
  text-align: center;
}

.close-message {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
  font-size: 1rem;
}

.illustration {
  transition: transform 0.15s ease-out;
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: fixed;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.social-icons a {
  color: rgba(248, 29, 29, 0.8);
  font-size: 1.1rem;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
