/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Segoe UI", sans-serif; }
body { color: #222; background: #f5f7f8; line-height: 1.6; }

.btn {
  background: #006d77; /* teal */
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  border: none;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #005f66;
}

/* Header */
header {
  background: #006d77;   /* deep teal / green-blue accent */
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .logo { font-size: 1.4rem; font-weight: bold; }
nav { display: flex; gap: 1.5rem; }
nav a { color: #ffffff; text-decoration: none; font-weight: 500; transition: 0.3s; }
nav a:hover { color: #83c5be; /* lighter teal for hover */ }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; }

/* Hero */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
              url("pictures/hero-surgery2.jpg") no-repeat center/cover;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;  /* <-- This creates space before the button */
}

.hero .btn {
  display: inline-block;
  background: #83c5be; /* lighter teal accent */
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.hero .btn:hover {
  background: #52b6a9;
}

/* Sections */
.section { padding: 4rem 2rem; max-width: 1100px; margin: auto; }
.section h2 { text-align: center; color: #006d77; margin-bottom: 2rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: 1rem; color: #006d77; }

/* About */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.about img { max-width: 300px; border-radius: 50%; border: 5px solid #006d77; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.about-text { flex: 1; }

/* Appointment Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
}
form input, form textarea {
  padding: 0.8rem;
  border: 1px solid #bcccdc;
  border-radius: 5px;
  width: 100%;
}
form button {
  background: #006d77;
  color: #ffffff;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}


form button:hover { background: #005f66; }
#formMessage { margin-top: 0.5rem; font-weight: bold; color: #006d77; }

/* Contact */
.contact { text-align: center; }
.contact .btn {
  display: inline-block;
  margin-top: 1rem;
  background: #006d77;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
}
.contact .btn:hover { background: #005f66; }

/* Footer */
footer { background: #004d54; color: #ffffff; text-align: center; padding: 1rem; margin-top: 2rem; }

/* Animations */
.animate { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-in-out; }
.animate.show { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  nav { display: none; flex-direction: column; background: #006d77; position: absolute; top: 60px; right: 0; width: 200px; padding: 1rem; }
  nav.active { display: flex; }
  .menu-toggle { display: block; }
  .about { flex-direction: column; text-align: center; }
}

/* QR Code styles */
.qr {
  text-align: center;
  margin-top: 20px;
}

.qr-code {
  width: 150px;
  height: 150px;
  border: 3px solid #000;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.qr-code:hover {
  transform: scale(1.05);
}

/* Arabic (RTL) support */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: "Segoe UI", "Tahoma", "Arial", sans-serif;
}

[dir="rtl"] nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .about-text,
[dir="rtl"] .services,
[dir="rtl"] .contact,
[dir="rtl"] form {
  text-align: right;
}


/* ===== FEEDBACK SECTION FIXED STYLE ===== */
.feedback-section {
  background: #f5f5f5; /* same as rest of page background */
  padding: 60px 20px;
  text-align: center;
  color: #333;
}

.feedback-section h2 {
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.6em; /* perfectly matches appointment section */
  color: #006d77;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 1s forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.feedback-section p {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #555;
}

.feedback-section form {
  max-width: 600px;
  margin: 0 auto;
  background: transparent; /* remove white background */
  box-shadow: none; /* remove box shadow */
  padding: 0; /* make it blend naturally */
}

.feedback-section input,
.feedback-section textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 1rem;
  font-family: "Segoe UI", sans-serif;
  transition: border-color 0.3s;
}

.feedback-section input:focus,
.feedback-section textarea:focus {
  border-color: #006d77;
  outline: none;
}

.feedback-section button {
  width: 100%;
  background-color: #006d77;
  color: #ffffff;
  font-size: 16px;           /* same as appointment button */
  font-weight: bold;          /* make it “fat” like appointment button */
  border: none;
  padding: 12px 25px;         /* same padding as appointment button */
  border-radius: 8px;         /* match appointment button edges */
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.feedback-section button:hover {
  background-color: #005f66;
  transform: scale(1.05);      /* same “opens up” effect */
}
