@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 95px;
  background-color: #888282;
  padding: 12px 0;
  border-bottom: #000 solid;
}

.nav-bar a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-bar a:hover {
  color: rgb(255, 255, 255);
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
  background: url(imgs/medico.png) no-repeat center center;
  background-size: cover;
  background-color: rgb(235, 235, 235);
  padding: 20px;
}

.form-box {
  width: 900px;
  max-width: 95%;
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  padding: 40px 30px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #000;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px;
}

.inputbox {
  position: relative;
  width: 100%;
  border-bottom: 2px solid #333;
}

.inputbox input, .inputbox textarea {
  width: 100%;
  height: 50px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 0 35px 0 5px;
  color: #000;
  resize: none;
}

.inputbox textarea {
  min-height: 100px;
  height: auto;
  padding-top: 10px;
}

.inputbox label {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 16px;
  font-weight: bold;
  pointer-events: none;
  transition: 0.4s ease;
}

.inputbox input:focus ~ label,
.inputbox input:not(:placeholder-shown) ~ label,
.inputbox textarea:focus ~ label,
.inputbox textarea:not(:placeholder-shown) ~ label {
  top: -8px;
  font-size: 12px;
  color: #000;
}

.inputbox ion-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  font-size: 18px;
}

button {
  grid-column: span 2;
  padding: 12px;
  background-color: #888282;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #666;
}

button:active {
  background-color: #444;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  button {
    grid-column: span 1;
  }
}
