html, body {
    height: 100%; /* Ensure html and body take full viewport height */
    width: 100vw; /* Use viewport width for width */
    overflow-x: hidden; /* Prevent horizontal scroll on html/body */
}

body {
    background-color: #f0f0f0;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
    text-align: center;
    overflow-anchor: none;
    padding-top: 0px;
}

a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

a:hover {
    color: #0195fb;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 10px 0;
    font-size: 10px;
    background: #222;
    color: #fff;
    width: 100%;
    margin-top: auto;
}
/* Basic form styling */
form {
    width: 500px;
    max-width: 800px; /* Adjust as needed */
    margin: 20px auto;
}

form div {
    margin-bottom: 15px;
}

  form label {
    font-weight: bold;
  }

label {
    display: block;
    margin-bottom: 5px;
    padding-left: 8px;
    color: #333;
    text-align: left;
}

input[type="text"],
input[type="email"],
textarea {
    width: calc(100% - 12px); /* Adjust for padding and border */
    padding: 8px;
    border: 1px solid #ccc !important;
    border-radius: 0px;
    box-sizing: border-box; /* Prevent padding from increasing the element's size */
    border-radius: 4px !important;
    font-size: 1em !important;
    box-shadow: none !important; /* Ensure no shadow */
}

textarea {
    resize: vertical; /* Allow vertical resizing of the textarea */
}

button[type="submit"] {
  background-color: #000;
  color: white;
  padding: 15px 20px;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  font-size: 16px;
  position: relative; /* Needed for z-index and pseudo-element */
  overflow: hidden; /* Clip the pseudo-element */
  transition: color 0.2s ease; /* Smooth text color transition */
  z-index: 1; /* Ensure text is above the pseudo-element */
  font-weight: bold;
}

button[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%; /* Start off-screen */
  width: 150%;
  height: 100%;
  background-color: red;
  transform: skewX(-20deg);
  transform-origin: top right;
  transition: left 0.2s ease-in-out; /* Swipe animation */
  z-index: -1; /* Place behind the button's content */
}

button[type="submit"]:hover {
  color: white; /* Keep text white */
}

button[type="submit"]:hover::before {
  left: 0; /* Swipe in the red background */
}

.success_msg {
  color: blue;
  font-size: 14px;
}

.error_msg {
  color: red;
  font-size: 14px;
}

.g-recaptcha {
    display: block;
    margin: 10px auto;
    width: 300px;
    align-items: center;
}

@media (max-width: 768px) {
  body {
    align-items: stretch;
  }

  form {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  form > div {
    width: 98%; /* Ensure child divs take full width */
    box-sizing: border-box;
    margin: auto;
  }

  form label {
    display: block; /* Ensure labels are on their own line */
    width: 100%;
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px; /* Add some right padding for narrow screens */
    font-weight: bold;
  }

  form input[type="text"],
  form input[type="email"],
  form textarea {
    width: calc(100% - 16px); /* Adjust for padding */
    margin-bottom: 12px;
    padding: 8px;
    box-sizing: border-box;
  }

  button[type="submit"] {
    width: calc(100% - 20px); /* Adjust for padding */
    margin-top: 20px;
    padding: 15px 10px; /* Adjust horizontal padding */
    box-sizing: border-box;
  }

  .g-recaptcha {
    width: 100% !important; /* Make it responsive */
    max-width: 300px; /* Keep the original max width */
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    box-sizing: border-box;
  }
}