/* Global reset for margins and paddings, and setting a global font family */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Basic styling for the body to center the content on the page */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #0A74DA;
  padding: 1rem; /* Padding to prevent content from touching edges on small screens */
}

/* Container that holds the form and message */
.container {
  background-color: #003B5C;
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 600px; /* Limits container size on large screens */
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Margin for the form to give spacing around it */
form {
  margin: 2rem 0;
}

/* Styling for form elements */
form select,
button,
input {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 0.75rem;
}

/* Select dropdown styling */
form select {
  border: 1px solid #57A0D3;
  font-size: 1rem;
  height: 3rem;
  background-color: #003B5C;
  color: #FFFFFF;
  padding: 0.1rem;
  cursor: pointer;
}

form select:hover {
  background-color: #005E87;
}

/* Input field styling */
form input {
  border: 1px solid #57A0D3;
  font-size: 1rem;
  height: 3rem;
  padding-left: 0.5rem;
  background-color: #003B5C;
  color: #FFFFFF;
}

/* Dropdown layout */
.dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap; /* Wrap on small screens */
  gap: 1rem;
}

/* Icon styling */
.dropdown i {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #FFFFFF;
}

/* Flag image */
.select-container img {
  max-width: 2rem;
}

/* Select container styling */
.select-container {
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
  width: 8rem;
  border-radius: 20px;
  border: 1px solid #57A0D3;
  background-color: #003B5C;
}

.select-container select {
  font-size: 0.8rem;
  width: auto;
  background: none;
  border: none;
  color: #FFFFFF;
}

/* Message area */
.msg {
  margin: 2rem 0;
  color: #FFFFFF;
}

/* Button styling */
form button {
  height: 3rem;
  background-color: #57A0D3;
  color: #FFFFFF;
  font-size: 1.15rem;
  cursor: pointer;
}

form button:hover {
  background-color: #004C6D;
}

/* -----------------------
   Media Queries for Small Devices
------------------------ */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .select-container {
    width: 100%;
    justify-content: space-between;
  }

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

  form button {
    font-size: 1rem;
  }

  .dropdown {
    flex-direction: column;
    align-items: stretch;
  }
}
