* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px blue;
  }
  50% {
    box-shadow: 0 0 20px cyan;
  }
  100% {
    box-shadow: 0 0 5px blue;
  }
}

body {
  font-family: sans-serif;
  background: linear-gradient(90deg, #c9def4, #f5ccd4, #b8a4c9);
  animation: fadeSlideUp 1s ease-out;
}

h1 {
  background: linear-gradient(90deg, blue, rgba(42, 42, 203, 0.162));
  color: white;
  text-align: center;
  width: 35%;
  margin: 20px auto;
  border-radius: 25px;
  padding: 10px 15px;
  border: 2px solid cyan;
  animation: glow 2.5s infinite ease-in-out;
}

form {
  width: 545px;
  margin: auto;
}

fieldset {
  border-radius: 15px;
  padding: 25px;
  border: 2px solid cyan;
  background: linear-gradient(90deg, #c9def4, #f5ccd4, #b8a4c9);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

fieldset:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

legend {
  background-color: rgb(54, 187, 197);
  color: black;
  border-radius: 5px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 12px;
}

table {
  width: 100%;
}

td {
  padding: 12px 8px;
}

label,
.GENDER {
  color: black;
  font-size: 15px;
  transition: color 0.2s ease;
}

label:hover {
  color: #007bff;
}

input,
select,
textarea {
  padding: 8px 10px;
  border-radius: 10px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: linear-gradient(90deg, #c9def4, #f5ccd4, #b8a4c9);
  color: black;
  font-weight: 600;
  border: 2px solid cyan;
}

input:hover,
select:hover,
textarea:hover {
  transform: scale(1.03);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: rgba(238, 121, 191, 0.596);
  border: 2px solid yellow;
  box-shadow: 0 0 8px rgb(131, 7, 153);
  transform: scale(1.05);
}

.tooltip {
  background-color: cyan;
  font-size: 10px;
  color: black;
  margin-top: 3px;
  width: 40%;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  display: none;
}

input:focus + .tooltip {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

input[type="radio"] {
  transition: transform 0.2s ease;
}

input[type="radio"]:checked {
  transform: scale(1.3);
}

input[type="submit"] {
  display: block;
  background: linear-gradient(90deg, blue, rgb(60, 60, 225));
  color: white;
  margin: 20px auto;
  font-size: 16px;
  padding: 10px 25px;
  border-radius: 20px;
  border: 2px solid cyan;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px cyan;
}

input[type="submit"]:active {
  transform: scale(0.95);
}
.valid,
.invalid {
  height: 20px;
  margin-top: 5px;
  display: none;
}

input[type="email"]:focus:valid + .tooltip + .valid {
  display: inline;
}

input[type="email"]:focus:invalid + .tooltip + .valid + .invalid {
  display: inline;
}
input[type="file"] {
  display: none;
}

.upload-btn {
  display: inline-block;
  background: linear-gradient(90deg, #aa67f292, #2575fc);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid cyan;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.upload-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.upload-btn:active {
  transform: scale(0.95);
}

.file-name {
  margin-left: 10px;
  font-size: 13px;
  color: black;
}
input[type="file"] {
  display: none;
}

.upload-box {
  display: block;
  width: 100%;
  border: 2px dashed #007bff;
  border-radius: 15px;
  padding: 18px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.upload-box:hover {
  background: rgba(0, 123, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.upload-content {
  text-align: center;
}
fieldset {
  border: 2px solid #d9d9d9;
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
}

legend {
  font-size: 18px;
  font-weight: 600;
  padding: 0 12px;
  color: #333;
}

table {
  width: 100%;
}

td {
  padding: 12px 8px;
  vertical-align: middle;
}

label {
  font-weight: 500;
  color: #444;
}

input[type="url"] {
  width: 95%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.8px solid #ccc;
  font-size: 14px;
  transition: 0.3s ease;
}

input[type="url"]::placeholder {
  color: #999;
}

input[type="url"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
  outline: none;
}

input[type="url"]:valid {
  border-color: #28a745;
}

input[type="url"]:invalid:focus {
  border-color: #dc3545;
}
