@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 0;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("/assets/ltvbg.png"), #000;
  background-position: center;
  background-size: cover;
}

/* HEADER AND NAVBAR STYLING */
header {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  flex: 1;
}

.logo {
  height: 40px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  padding: 10px;
}

.menu-icon {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px auto;
}

.nav-links {
  display: flex;
  gap: 1em;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
}

/* FORM WRAPPER STYLING */
.wrapper {
  width: 400px;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

form {
  display: flex;
  flex-direction: column;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

.input-field {
  position: relative;
  border-bottom: 2px solid #ccc;
  margin: 15px 0;
}

.input-field textarea,
.input-field input {
  width: 100%;
  min-height: 80px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: #fff;
  overflow-y: hidden;
}

.input-field textarea::placeholder,
.input-field input::placeholder {
  color: #ccc;
  font-style: italic;
}

button {
  background: #fff;
  color: #000;
  font-weight: 600;
  border: none;
  padding: 12px 10px;
  cursor: pointer;
  border-radius: 15px;
  font-size: 16px;
  border: 2px solid transparent;
  transition: 0.3s ease;
  max-width: 50%;
  margin: 0 auto;
}

button:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  body::before {
    background-size: cover;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: row; /* Change to row for horizontal alignment */
    flex-wrap: nowrap;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    z-index: 2;
    justify-content: center; /* Center the items horizontally */
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px;
    text-align: center;
  }

  .wrapper {
    width: 80%;
    margin-top: 80px;
  }

  .input-field textarea,
  .input-field input {
    font-size: 14px;
  }

  button {
    padding: 10px;
    font-size: 14px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  header {
    padding: 15px 20px;
  }

  .logo {
    height: 30px;
  }

  .nav-links {
    top: 50px;
  }

  .wrapper {
    width: 90%;
    padding: 20px;
    margin-top: 60px;
  }

  .input-field textarea,
  .input-field input {
    font-size: 14px;
  }

  button {
    padding: 8px;
    font-size: 12px;
    max-width: 100%;
  }
}