/* Reset + Global box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Body styling with Poppins font and adaptive height */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh; /* dynamic viewport height for mobile browsers */
  background-color: #ff0000;
  color: #ffffff;
}

/* Header */
header {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 20px 8px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
}

header h1 {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(234, 9, 207, 0.5);
  font-weight: bold;
}

/* Main content area */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  width: 90%;
  max-width: 900px;
}

/* Form group */
.form-group {
  margin-bottom: 20px;
  width: 100%;
}

/* Labels */
label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

/* Inputs, selects, textareas */
input, select, textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
}

/* Button styling */
button {
  background-color: #fe94e9;
  color: #fafcff;
  padding: 15px 25px;
  margin-top: 10px;
  border: 2.25pt solid #f8f1ff;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 2px 2px 4px rgba(18, 10, 6, 0.904);
  font-size: 16px;
}

button:hover {
  background-color: #45e510;
  border-color: #fefffffb;
}

/* Responsive: small screens (phones < 600px) */
@media (max-width: 600px) {
  header h1 {
    font-size: 22px;
  }

  button {
    max-width: 90%;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(255, 51, 0, 0.849);
  }

  input, select, textarea {
    font-size: 14px;
  }

  main {
    padding-top: 100px;
  }
}

/* Responsive: very small devices (< 400px) */
@media (max-width: 400px) {
  header h1 {
    font-size: 20px;
  }

  button {
    font-size: 14px;
    padding: 12px 20px;
  }

  input, select, textarea {
    font-size: 13px;
  }
}

/* Responsive: medium devices (e.g. tablets, 600px–768px) */
@media (max-width: 768px) {
  header h1 {
    font-size: 22px;
  }

  input, select, textarea {
    font-size: 15px;
  }

  button {
    font-size: 15px;
  }
}
