@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: monospace;
}

select > option {
  font-family: monospace;
}

label {
  color: rgb(54, 53, 53) !important;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: monospace;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7f6;
  display: flex;
  justify-content: center;
  background-image: linear-gradient(
    to bottom right,
    grey,
    rgb(224, 223, 223),
    grey
  );
  background-repeat: no-repeat;
}

.form-container {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 900px;
}

.form-container > h2 {
  text-align: center;
  color: #333;
  margin-bottom: 1rem;
  font-family: "Poppins", Courier, monospace;
}

.flex-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media (min-width: 768px) {
  .flex-wrapper {
    flex-direction: row;
  }
  .form-column {
    flex: 1;
  }
}

/* Input Styling */
.input-group {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 5px;
}

/* Buttons */
.button-group {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

button {
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  &:active {
    scale: 95%;
  }
}

.btn-reset {
  background: #e0e0e0;
  color: #333;
}
.btn-submit {
  background: #007bff;
  color: white;
}

.btn-reset:hover {
  background: #d0d0d0;
}
.btn-submit:hover {
  background: #0056b3;
}

.radio-group {
  display: flex;
  gap: 1rem;
}

.radio-group > div {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

/* Toast Notification Styling */
.toast {
  visibility: hidden; /* Hidden by default */
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Class to show the toast */
.toast.show {
  visibility: visible;
  animation:
    fadein 0.5s,
    fadeout 0.5s 2.5s;
}

/* Animations */
@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

/* Submit Button Loading State (Optional) */
.btn-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
