*{
    margin:0px;
    padding:0px;
    font-family:calibri;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: aqua;
}

.container{
    background-color:white ;
    padding:2rem;
    border-radius: 1rem;
    width:50vh;
}

form{
    margin:2rem 0 1rem 0;
}

form 
select, 
button, 
input{
    width:100%;
    border:none;
    outline: none;
    border-radius: 0.8rem;
}
form input{
    border:1px solid lightgray;
    font-size: 1rem;
    height:3rem;
    padding: 0.5rem;
}

.dropdown{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.dropdown i{
    font-size:1.5rem;
    margin-top:1rem;
}

.select-container img{
    max-width:2rem ;
}

.select-container{
    width:6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    border:1px solid lightgray;

}

.select-container select{
    font-size: 1rem;
    width:auto;
}

.msg{
    text-align: center;
    margin:2rem 0 2rem 0;
    font-size:10rem;
}

form button{
    height: 3rem;
    background-color: blue;
    color:white;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0px 0px 5px 1px black;
    /* transition:transform 0.3s ease-in; */
}
button:hover{
    /* transform:translateY(5px); */
    box-shadow: 0px 0px 20px 3px blue;
}
button:active{
    animation:pop 0.5s ease-in-out;
}
@keyframes pop {
    0%{
        transform: scale(1);
    }
    50%{
        transform: scale(1.05);
    }
    100%{
        transform: scale(1);
    }
    
}
/* ================== MEDIA QUERIES ================== */

/* Extra small devices (phones ≤480px) */
@media (max-width: 480px) {
  body {
    flex-direction: column;
    padding: 1rem;
  }

  .container {
    width: 95%;
    padding: 1rem;
    border-radius: 0.5rem;
  }

  h2 {
    font-size: 1.2rem;
    text-align: center;
  }

  form {
    margin: 1rem 0;
  }

  form input {
    font-size: 0.9rem;
    height: 2.2rem;
    padding: 0.4rem;
  }

  form button {
    font-size: 0.9rem;
    height: 2.2rem;
  }

  select {
    font-size: 0.9rem;
  }

  .dropdown {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
  }

  .dropdown i {
    transform: rotate(90deg);
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }

  .select-container {
    width: 100%;
    justify-content: space-between;
    padding: 0.4rem;
  }

  .select-container img {
    max-width: 1.5rem;
  }

  .msg {
    font-size: 0.9rem;
    margin: 1.5rem 0;
    text-align: center;
  }
}

/* Small tablets (481px – 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    width: 85%;
    padding: 1.5rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  form input {
    font-size: 1rem;
    height: 2.5rem;
  }

  form button {
    font-size: 1rem;
    height: 2.5rem;
  }

  .dropdown {
    flex-direction: row;
    justify-content: space-around;
    margin-top: 1.5rem;
  }

  .dropdown i {
    font-size: 1.3rem;
    margin-top: 0.8rem;
  }

  .select-container {
    width: 7rem;
  }

  .select-container img {
    max-width: 1.8rem;
  }

  .msg {
    font-size: 1rem;
    text-align: center;
  }
}

/* Large tablets / small laptops (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: 65%;
    padding: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  form input {
    font-size: 1rem;
    height: 2.8rem;
  }

  form button {
    font-size: 1.1rem;
    height: 2.8rem;
  }

  .dropdown {
    justify-content: space-between;
  }

  .dropdown i {
    font-size: 1.4rem;
    margin-top: 1rem;
  }

  .select-container {
    width: 7.5rem;
  }

  .select-container img {
    max-width: 2rem;
  }

  .msg {
    font-size: 1.05rem;
  }
}

/* Desktops (1025px – 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .container {
    width: 50%;
    max-width: 600px;
    padding: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  form input {
    font-size: 1.1rem;
    height: 3rem;
  }

  form button {
    font-size: 1.15rem;
    height: 3rem;
  }

  .dropdown {
    justify-content: space-evenly;
  }

  .dropdown i {
    font-size: 1.5rem;
  }

  .select-container {
    width: 8rem;
  }

  .select-container img {
    max-width: 2.2rem;
  }

  .msg {
    font-size: 1.1rem;
  }
}

/* Large desktops (1441px and above) */
@media (min-width: 1441px) {
  .container {
    width: 40%;
    max-width: 700px;
    padding: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  form input {
    font-size: 1.2rem;
    height: 3.2rem;
  }

  form button {
    font-size: 1.2rem;
    height: 3.2rem;
  }

  .dropdown {
    justify-content: space-evenly;
  }

  .dropdown i {
    font-size: 1.6rem;
  }

  .select-container {
    width: 9rem;
  }

  .select-container img {
    max-width: 2.5rem;
  }

  .msg {
    font-size: 1.15rem;
  }
}

