* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f9fbfd;
  color: #222;
}

nav {
  background: #0077b6;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #caf0f8;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

/* Hero */
.hero {
  background: url('img/clinic.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  background-blend-mode: overlay;
  background-color: rgba(0, 119, 182, 0.5);
}

.hero h1 {
  font-size: 2.8em;
}

.hero p {
  margin: 10px 0 20px;
  font-size: 1.1em;
}

.btn {
  display: inline-block;
  background: #00b4d8;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #0096c7;
}

/* Departments */
.departments {
  padding: 60px 20px;
  text-align: center;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.dept-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dept-card i {
  font-size: 2em;
  color: #0077b6;
  margin-bottom: 10px;
}

/* Slots */
.slots {
  background: #e6f7ff;
  padding: 50px 20px;
  text-align: center;
}

.slot-item {
  background: #fff;
  margin: 10px auto;
  max-width: 400px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Appointment form */
.appointment {
  max-width: 450px;
  margin: 60px auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.appointment h2 {
  text-align: center;
  margin-bottom: 20px;
}

form input, form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.success {
  text-align: center;
  color: green;
  margin-top: 10px;
}

/* Footer */
footer {
  background: #023e8a;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.socials a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.2em;
  transition: 0.3s;
}

.socials a:hover {
  color: #00b4d8;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #0077b6;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    text-align: center;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-icon {
    display: block;
  }

  .hero h1 {
    font-size: 2em;
  }
}
/* === Appointment Page === */
.appointment-section {
  text-align: center;
  padding: 4rem 2rem;
}

.appointment-form {
  background: #fff;
  max-width: 550px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  text-align: left;
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
}

input, select {
  width: 100%;
  padding: 0.7rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  outline: none;
}

.time-slots {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.time-slots label {
  background: #f0f4ff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-slots input {
  margin-right: 0.3rem;
}

.time-slots label:hover {
  background: #d8e4ff;
}

.confirmation-message {
  background: #f0fff0;
  border: 1px solid #cce5cc;
  padding: 2rem;
  max-width: 500px;
  margin: 2rem auto;
  border-radius: 1rem;
  text-align: center;
}

.confirmation-message i {
  color: green;
  font-size: 3rem;
  margin-bottom: 1rem;
}
.today-appointments {
  text-align: center;
  background: #f8fcff;
  padding: 3rem 1rem;
  border-top: 2px solid #e0eaff;
}

.today-appointments h2 {
  color: #0073e6;
  margin-bottom: 1rem;
}

.today-appointments p {
  font-size: 1.1rem;
  margin: 0.4rem 0;
}
.availability {
  background: #f9f9f9;
  padding: 2rem;
  border-top: 1px solid #eee;
}

.availability h2 {
  text-align: center;
  color: #0073e6;
  margin-bottom: 1.5rem;
}

.dept-item {
  display: flex;
  justify-content: space-between;
  background: white;
  padding: 1rem;
  margin: 0.4rem auto;
  max-width: 500px;
  border-radius: 8px;
  border: 1px solid #e0eaff;
}

.dept-item.full {
  background: #ffecec;
  border-color: #ffaaaa;
  color: #c00;
  font-weight: 600;
}
#confirmationMessage {
  text-align: center;
  background: #f6fbff;
  border: 1px solid #d8ecff;
  padding: 2rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  animation: fadeIn 0.5s ease-in-out;
}

#confirmationMessage.hidden {
  display: none;
}

.view-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: #007bff;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.view-btn:hover {
  background: #0056b3;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.view-ticket {
  text-align: center;
  margin-top: 1.5rem;
}

.view-ticket p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #007bff;
  border: 2px solid #007bff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #007bff;
  color: #fff;
}
.check-appointment {
  background: #f8f9fa;
  padding: 3rem 1rem;
  text-align: center;
  border-top: 1px solid #ddd;
}

.check-appointment h2 {
  color: #007bff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.check-appointment form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.check-appointment input {
  padding: 0.8rem 1rem;
  width: 100%;
  border: 2px solid #007bff;
  border-radius: 8px;
  font-size: 1rem;
}

.check-appointment button {
  padding: 0.8rem 1.5rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.check-appointment button:hover {
  background: #0056b3;
}

#appointmentDetails {
  margin-top: 1.5rem;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#details {
  text-align: left;
  font-size: 1rem;
  color: #333;
}
/* CONTACT PAGE */
.contact-section {
  padding: 3rem 1rem;
  text-align: center;
  background: #f8f9fa;
}

.contact-section h2 {
  color: #007bff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-section p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #007bff;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-form button {
  padding: 0.8rem 1.5rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #0056b3;
}

.clinic-info {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.clinic-info h3 {
  color: #007bff;
  margin-bottom: 1rem;
}

.clinic-info p {
  color: #333;
  margin-bottom: 0.5rem;
}

.clinic-info .socials a {
  color: #007bff;
  font-size: 1.3rem;
  margin-right: 10px;
  transition: color 0.3s;
}

.clinic-info .socials a:hover {
  color: #0056b3;
}
form button[type="submit"] {
  display: block;
  margin: 1.5rem auto; /* centers horizontally */
  background-color: #007bff;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

form button[type="submit"]:hover {
  background-color: #0056b3;
}
