/* Modal Styling */
.form-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Background overlay */
}

.form-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  position: relative;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  color: #666;
  cursor: pointer;
}

.close-button:hover {
  color: #ff7a00;
}

h2 {
  font-size: 22px;
  color: #333;
  text-align: center;
  margin-bottom: 10px;
}

p {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

label {
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
}

input[type="checkbox"] {
  margin-right: 10px;
}

.agreement {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.submit-button {
  background-color: #ff7a00;
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #e06800;
}

.form-message {
  margin-top: 15px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  color: green;
}

.form-message.error {
  color: red;
}

@media (max-width: 500px) {
  .form-content {
    width: 90%;
  }
}
