/* Base styles (PC/Desktop) */
body {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(1.jpg);
  background-size: cover;
  background-position: center center;
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 2rem;
}

.container {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  animation: fadeIn 0.6s ease-in-out;
}

header {
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85));
  color: #ffffff;
  text-align: center;
  padding: 1.5rem;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

main {
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  margin: 0.5rem 0 0.3rem;
  font-weight: 700;
  font-size: 1rem;
}

select,
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  border-color: #0078d7;
  outline: none;
}

button[type="submit"] {
  width: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85));
  color: #ffffff;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
}

a {
  display: block;
  text-align: center;
  margin-top: 1rem;
  text-decoration: none;
  color: #0078d7;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

a:hover {
  color: #005bb5;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f4f4f4;
  font-size: 0.8rem;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 Phone styles */
@media (max-width: 500px) {
  body {
    padding: 1rem;
    font-size: 14px;
  }

  .container {
    margin: 0.5rem;
    border-radius: 0;
  }

  header h1 {
    font-size: 1.4rem;
  }

  header p {
    font-size: 0.85rem;
  }

  main {
    padding: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  button[type="submit"] {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
}

/* 📲 Tablet styles */
@media (min-width: 601px) and (max-width: 1024px) {
  body {
    padding: 1.5rem;
    font-size: 15px;
  }

  .container {
    max-width: 90%;
  }

  header h1 {
    font-size: 1.6rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  button[type="submit"] {
    font-size: 1rem;
    padding: 0.7rem;
  }
}
