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

body {
  background: linear-gradient(#18345f, #040507);
  font-family: Georgia, "Times New Roman", Times, serif;
  color: white;
}

h1 {
  background: linear-gradient(#0f2444);
  width: 90%;
  max-width: 500px;
  text-align: center;
  margin: 20px auto;
  border-radius: 10px;
  padding: 15px;
  border: 2px solid #69719f;
  box-shadow: 2px 5px 20px #2963b9;
}

form {
  width: 90%;
  max-width: 500px;
  margin: 0px auto;
}

fieldset {
  border-radius: 10px;
  padding: 25px;
  border: 2px solid #69719f;
  background-color: #0f2444;
  margin-bottom: 20px;
}

legend {
  background-color: #69719f;
  color: black;
  border-radius: 5px;
  padding: 5px 7px;
  font-weight: 500;
  font-size: 16px;
}

table {
  width: 100%;
}

td {
  padding: 12px 8px;
}

label {
  color: #8c8fa0;
  font-size: 15px;
}

input {
  padding: 8px 10px;
  border-radius: 7px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  background-color: #757fb9;
  color: #050505;
  font-weight: 600;
  border: 1px solid #959ed5;
}

input:focus,
select:focus,
textarea:focus {
  background-color: antiquewhite;
  border: 1.5px solid #8c8fa0;
  outline: none;
}

.tooltip {
  background: #c7cdd7;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 12px;
  margin-top: 7px;
  width: 100%;
  text-align: center;
  padding: 5px;
  border-radius: 7px;
  display: none;
}

input:focus + .tooltip,
select:focus + .tooltip,
textarea:focus + .tooltip {
  display: block;
}

input[type="radio"] {
  margin-right: 5px;
  transition: 0.2s ease;
}

input[type="radio"] + label {
  margin-right: 15px;
}

input[type="radio"]:checked {
  transform: scale(1.3);
}

input[type="radio"]:checked + label {
  color: #ffffff;
  font-weight: 700;
}

input[type="submit"],
input[type="reset"],
button {
  background-color: #69719f;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  margin-bottom: 30px;
  box-shadow: 2px 5px 10px #2963b9;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover {
  background-color: #8c8fa0;
  transform: scale(1.05);
  box-shadow: 2px -4px 10px #959ed5;
}

input,
select,
textarea {
  transition: 0.3s ease;
}

input:hover,
select:hover,
textarea:hover {
  box-shadow: 0 0 5px #8c8fa0;
}
