.container {
 display: flex;
  width: 90%;
  max-width: 1000px;
  height: 90vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  position: fixed;
  margin: auto;
  transition: all 0.3s ease;
  z-index: 5;
  left: 0;
  margin: auto;
  right: 0;
  top: 50px;

}
#appointmentContainer{
    display: none;
}

/* Initially hidden */
#appointmentContainer {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  /* Centering flex container */
  
}

/* When shown */
#appointmentContainer.show {
  display: flex;
  opacity: 1;
  animation: fadeInScale 0.4s ease forwards;
}

/* Animation for fade + scale */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.overlay{
    display: none;
    background: #00000075;
  height: 626%;
  width: 100%;
  position: absolute;
  z-index: 4;
   animation: fadeInin 0.4s ease forwards;

}

@keyframes fadeInin {
  0% {
    opacity: 0;
   
  }
  100% {
    opacity: 1;
    
  }
}
.left {
  flex: 1;
  background: url('../IMG/beautiful-young-female-doctor-looking-camera-office_1301-7807.png') no-repeat center center/cover;
  position: relative;
}

.left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 123, 255, 0.7), rgba(0, 194, 255, 0.7));
}

.right {
  flex: 1;
  background: #fff;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #555;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #007bff;
}

.right h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 12px;
  border: none;
  border-bottom: 2px solid #ccc;
  font-size: 16px;
  transition: border-color 0.3s;
  background: transparent;
}

input:focus,
select:focus {
  outline: none;
  border-color: #007bff;
}

button[type='submit'] {
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  background: linear-gradient(to right, #007bff, #00c2ff);
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type='submit']:hover {
  background: linear-gradient(to right, #006ae0, #00b0e6);
}

/* Tablet and below */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
    position: fixed;
  top: 20%;
  }

  .left {
    height: 250px;
    width: 100%;
  }

  .right {
    padding: 40px 20px;
  }

  .close-btn {
    top: 10px;
    right: 10px;
    font-size: 20px;
  }

  .right h2 {
    font-size: 24px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .right {
    padding: 30px 15px;
  }

  .right h2 {
    font-size: 22px;
  }

  input,
  select {
    font-size: 14px;
    padding: 10px;
  }

  button[type='submit'] {
    font-size: 14px;
    padding: 10px;
  }
}
