body {
  font-family: Arial, sans-serif;
 background-color: #eaeaea;
}

.container {
  max-width: 700px;
  margin-top: 150px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
}

h2 {
  text-align: center;
}

form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

#response {
  margin-top: 20px;
  font-weight: bold;
  text-align: center;
}
/* Tablet screens (between 600px and 900px) */
@media (max-width: 900px) and (min-width: 601px) {
  .container {
    max-width: 90%;
    margin-top: 150px; /* adjust if needed */
    padding: 18px;
    border-radius: 8px;
  }
}

/* Mobile screens (600px and below) */
@media (max-width: 600px) {
  .container {
    max-width: 90%;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 0 5px #ccc;
  }

  .container h2 {
    font-size: 1.3rem;
    text-align: center;
  }

  .container form label {
    font-size: 1rem;
  }

  .container form input,
  .container form textarea,
  .container form select {
    font-size: 0.95rem;
    padding: 8px;
  }

  .container button {
    font-size: 0.95rem;
    padding: 9px 12px;
  }
}

/* Extra small devices (below 400px) */
@media (max-width: 400px) {
    .container {
        max-width: 90%;
        padding-top: 8px;
        border-radius: 5px;
        box-shadow: 0 0 3px #ccc;
        padding-bottom: 12px;
    }

    .container h2 {
        font-size: 1rem;
    }

    .container form label {
        font-size: 0.95rem;
    }

    .container form input,
    .container form textarea,
    .container form select {
        font-size: 0.9rem;
        padding: 6px;
    }

    .container button {
        font-size: 0.9rem;
        padding: 7px 10px;
    }
}
  .error {
    color: red;
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
  }

  input.invalid, textarea.invalid, select.invalid {
    border-color: red;
  }

/* Modal styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0; top: 0; width: 100%; height: 100%;
  overflow: auto; background: rgba(0,0,0,0.4);
}
.modal-content {
  background: #fff; margin: 10% auto; padding: 30px 20px;
  border-radius: 8px; width: 90%; max-width: 400px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.close-modal {
  color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer;
  position: absolute; right: 20px; top: 10px;
}
.close-modal:hover { color: #000; }

/* Floating Button */
.floating-btn {
    z-index: 100;
    position: fixed;
    bottom: 40px;
    right: 20px;
    background-color: #007bff;
    text-transform: uppercase;
    color: white;
    width: 120px;
    height: fit-content;
    padding: 10px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6%;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.floating-btn:hover {
    background-color: #0056b3;
}


@media (min-width: 480px) {
    .floating-btn {
        display: none;
    }
}
