
/* OVERLAY */
.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* FORM CARD */
.appointment-form {
  width: 100%;
  max-width: 450px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 18px;
  animation: popScale .4s ease;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
}

/* POP ANIMATION */
@keyframes popScale {
  from {
    transform: scale(.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* HEADER */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-header h3 {
  margin: 0;
  font-weight: 700;
  color: #0d47a1;
}

.close-btn {
  font-size: 26px;
  cursor: pointer;
}

/* INPUT BOX */
.input-box {
  position: relative;
  margin-bottom: 18px;
}

.input-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #1976d2;
}

.input-box input,
.input-box select {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
  background: transparent;
}

/* FLOATING LABEL */
.input-box label {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  transition: .3s;
  background: white;
  padding: 0 5px;
}

/* LABEL ANIMATION */
.input-box input:focus + label,
.input-box input:valid + label,
.input-box select:focus + label,
.input-box select:valid + label {
  top: -6px;
  font-size: 12px;
  color: #1976d2;
}

/* SUBMIT */
.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg,#1976d2,#0d47a1);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 8px 15px rgba(0,0,0,.2);
}

/* MOBILE */
@media(max-width:480px){
  .appointment-form {
    margin: 15px;
    padding: 22px;
  }
}
