* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f0f2f5;
  padding: 2rem;
}

.sidepanel {
  max-width: 960px;
  margin: auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
}

.closebtn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.8rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #333;
}

h1 {
  font-size: 2rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 0.5rem;
}

.sub-heading {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

section {
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #333;
}

input,
select {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fafafa;
  transition: border-color 0.3s;
}

input:focus,
select:focus {
  border-color: #0077cc;
  outline: none;
  background-color: #fff;
}

.form-actions {
  text-align: center;
}

button {
  background-color: #0052cc;
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

button:hover {
  background-color: #003d99;
}

/* --- Responsive Layouts --- */

/* Phones */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .sidepanel {
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 1.2rem;
  }

  h1 {
    font-size: 1rem;
  }

  .sub-heading {
    font-size: 0.7rem;
  }

  h2 {
    font-size: 0.7rem;
  }

  label {
    font-size: 0.6rem;
  }

  input,
  select {
    font-size: 0.7rem;
    padding: 0.4rem;
  }

  button {
    width: 100%;
    font-size: 0.7rem;
    padding: 0.4rem 1.0rem;
  }

  .closebtn {
    top: 0.8rem;
    right: 1rem;
    font-size: 1.5rem;
    color: black;
  }
}


/* Tablets & Pads */
@media (min-width: 601px) and (max-width: 1023px) {
  .sidepanel {
    padding: 2rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Laptops & Small Desktops */
@media (min-width: 1024px) and (max-width: 1599px) {
  .sidepanel {
    padding: 2.5rem;
  }

  .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  h1 {
    font-size: 2.2rem;
  }
}

/* Large Desktop / TV Screens */
@media (min-width: 1600px) {
  body {
    padding: 4rem;
  }

  .sidepanel {
    max-width: 1200px;
    padding: 3.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .form-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  button {
    font-size: 1.2rem;
    padding: 1rem 3rem;
  }
}
