/* Reset default styles */
body,
h1,
form {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles */
.newsletter-container {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #2b2b4d, #121212);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Header styles */
h2 {
  font-size: 2.5rem; /* Adjusted for impact */
  margin-bottom: 10px;
  text-align: center;
  color: #ffdd57;
  font-family: cursive;
  text-transform: uppercase;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
}
p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.3;
  text-shadow: 4px 2px 5px rgba(0, 0, 0, 0.7);
  padding: 0 15px;
}

/* Form styles */
#newsletterForm {
  background: rgba(50, 50, 50, 0.9);
  border-radius: 25px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.9);
  padding: 40px;
  width: 90%;
  max-width: 500px;
  display: flex;

  flex-direction: column;
  backdrop-filter: blur(12px);
  animation: slideIn 0.5s ease-in;
}

/* Label styles */
label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffdd57;
  font-size: 1.2rem;
}

/* Input field styles */
input {
  border: 2px solid #777;
  border-radius: 15px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #ffffff;
  background: #353840;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

input:focus {
  border-color: #ffdd57;
  box-shadow: 0 0 10px #ffdd57;
  outline: none;
  transform: scale(1.03);
}

/* Button styles */
button {
  background: linear-gradient(135deg, #ffdd57, #ffbd45);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 16px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

button:hover {
  background: linear-gradient(135deg, #ffbd45, #ffdd57);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Response message styles */
#responseMessage {
  margin-top: 20px;
  font-size: 1.2rem;
  text-align: center;
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 300px;
  border-radius: 10px;
  color: #000;
}
.modal-content p {
  color: #000;
  text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.7);
  font-family: cursive;
  /* font-size: 2vw; */
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive styles */
@media (max-width: 500px) {
  #newsletterForm {
    width: 90%;
    margin-bottom: 20vw;
  }
  h2 {
    font-family: cursive;
  }
  button {
    font-size: 1.1rem;
  }
  .modal-content {
    height: 50%;
  }
  .modal-content p {
    font-size: 7vw;
  }
}

/* Keyframes for animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
