/* GLOBALS */

html, body {
  width: 100%;
  overflow-x: hidden; /* prevents horizontal scroll caused by overflow */
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
}

h2 {
  font-size: 2rem;
  color: #0a0a0a;
  text-align: center;
  margin-bottom: 40px;
}

.container {
  width: 90%;
  margin: auto;
}

/* HEADER */
.header {
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
  width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #0a0a0a;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f26f23;
}

.nav-btn {
  background: #f26f23;        /* Brand orange background */
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;                /* White text */
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: #0a0a0a;        /* Black on hover */
  color: #fff;                /* Keep white text */
}


/* ===== MOBILE RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
  .header-content {
    justify-content: center;  /* Center the logo */
  }

  nav {
    display: none; /* Hide all nav links */
  }

  .logo {
    height: 55px;
  }

  .header {
    padding: 10px 0;
  }
}

/* BANNER */
.banner {
  background: linear-gradient(rgba(10,10,10,0.4), rgba(10,10,10,0.4)), url('landing-page-assets/physiotherapybanner.jpg') center no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  background-color: rgba(51, 51, 51, 0.6);
  padding: 40px;
  border-radius: 12px;
  color: #fff;
  max-width: 700px;
}

.overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-btn {
  background: #f26f23;
  color: #fff;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: 0.3s ease;
}

.cta-btn:hover {
  background: #d85e1f;
  transform: translateY(-2px);
}

/* SERVICES */
/* === OUR CORE TREATMENTS HEADER (with subtle background highlight) === */
.section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.header-bg {
  display: inline-block;
  position: relative;
  z-index: 2; /* ensure this stays above ::before background shapes */
  background: linear-gradient(90deg, rgba(242,111,35,0.1) 0%, rgba(242,111,35,0.15) 100%);
  border-radius: 12px;
  padding: 40px 30px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.header-bg::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 20px;
  background: rgba(255,255,255,0.6);
  filter: blur(20px);
  z-index: -1;
  opacity: 0.3;
}
.services::before,
.services::after {
  z-index: 0;
}

.section-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
  position: relative;
}

.section-subtext {
  font-size: 1.05rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.header-accent {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
}

.accent-line {
  width: 70px;
  height: 3px;
  background: #f26f23;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.accent-dot {
  width: 10px;
  height: 10px;
  background: #f26f23;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

/* On hover / scroll-in feel */
.section-header:hover .accent-line {
  width: 90px;
}

.section-header:hover .accent-dot {
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .section-subtext {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .header-bg {
    padding: 30px 20px;
  }
}


/* Optional: Subtle background accent */
.services {
  background: linear-gradient(180deg, #fff 0%, #fafafa 60%, #fff 100%);
  padding: 100px 5%;
  position: relative;
  overflow: visible; /* allow inner box shadow to show */
  z-index: 0; /* keep background shapes below */
}

/* Decorative orange shapes */
.services::before,
.services::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0; /* stay behind everything */
}

.services::before {
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(242,111,35,0.1) 0%, transparent 70%);
}

.services::after {
  bottom: -120px;
  left: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(242,111,35,0.08) 0%, transparent 70%);
}

/* ===== SECTION HEADER FIX ===== */
.section-header {
  position: relative;
  z-index: 2; /* sit above .services background */
  text-align: center;
  margin-bottom: 70px;
}

/* HEADER BACKGROUND BLOCK */
.header-bg {
  position: relative;
  display: block;
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgba(242, 111, 35, 0.12) 0%,
    rgba(242, 111, 35, 0.18) 100%
  );
  border-radius: 10px;
  padding: 60px 60px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  max-width: 95%; /* previously 800–850px — now almost full width */
  margin: 0 auto;
}

/* subtle glow around it */
.header-bg::before {
  content: "";
  position: absolute;
  inset: -25px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(25px);
  z-index: -1;
  opacity: 0.4;
}

/* Headline styling */
.header-bg h2 {
  font-size: 2.6rem;
  color: #0a0a0a;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

.header-bg p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Orange accent line */
.section-accent {
  display: block;
  width: 100px;
  height: 4px;
  background: #f26f23;
  border-radius: 3px;
  margin: 30px auto 0;
  z-index: 4;
  position: relative;
}

/* Responsive tuning */
@media (max-width: 1024px) {
  .header-bg {
    padding: 40px 25px;
    max-width: 100%;
    border-radius: 8px;
  }

  .header-bg h2 {
    font-size: 2rem;
  }

  .header-bg p {
    font-size: 0.95rem;
    max-width: 100%;
  }
}


/* Decorative orange line under heading */
.section-accent {
  display: inline-block;
  width: 80px;
  height: 4px;
  background: #f26f23;
  border-radius: 2px;
  margin-top: 25px;
  z-index: 4;
  position: relative;
}


/* Each treatment block */
.treatment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 100px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.treatment:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease;
}

/* Alternate layout */
.treatment.reverse {
  flex-direction: row-reverse;
}

/* Treatment image */
.treatment-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.08),
    0 10px 25px rgba(0, 0, 0, 0.10);
  transition: all 0.4s ease;
}

.treatment-image img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.treatment:hover .treatment-image img {
  transform: scale(1.06);
  filter: brightness(0.95);
}


.treatment:hover .treatment-image {
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.12),
    0 20px 45px rgba(0, 0, 0, 0.10);
}

/* Treatment text box */
.treatment-text {
  flex: 1.2;
  background: #fff;
  padding: 17px 40px;
  border-left: 5px solid #f26f23;
  border-radius: 18px;
  /* Enhanced multi-layer shadow for richer depth */
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  position: relative;
}

.treatment.reverse .treatment-text {
  border-left: none;
  border-right: 5px solid #f26f23;
}

.treatment:hover .treatment-text {
  transform: translateY(-6px);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.10);
}


.treatment-text:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* Text hierarchy */
.treatment-title {
  color: #0a0a0a;
  font-size: 1.7rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.treatment-subtitle {
  color: #f26f23;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.treatment-desc {
  color: #444;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}
/* ===== GOAL SECTION UPGRADE ===== */

.goal-box {
  position: relative;
  background: #fff;
  border-radius: 0 0 10px 10px;
  padding: 12px 16px 14px;
  margin: 6px auto 12px auto;
  width: 95%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* contain the animated line */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.goal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0; /* start invisible */
  background: #f26f23;
  transition: width 0.4s ease-in-out;
}

/* Animate the line on hover */
.goal-box:hover::before {
  width: 100%; /* fills from left to right */
}

.goal-box:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}


.goal-box:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}


/* Header inside goal box */
.goal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.goal-icon {
  font-size: 1.2rem;
  color: #f26f23;
  transform: scale(1.1);
}

.goal-title {
  font-size: 1rem;
  color: #0a0a0a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}

/* Description */
.goal-desc {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}


/* Make sure this fits perfectly inside mobile layout too */
@media (max-width: 1024px) {
  .goal-box {
    padding: 10px 14px 12px;
  }

  .goal-title {
    font-size: 0.95rem;
  }

  .goal-desc {
    font-size: 0.9rem;
  }
}

/* Book Appointment Button */
.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f26f23;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(242,111,35,0.3);
  margin-top: 0; /* ensures it sits close to goal-box */
}


.book-btn:hover {
  background: #0a0a0a;
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.book-btn::after {
  content: "→";
  font-weight: bold;
  transition: transform 0.3s ease;
}
.book-btn:hover::after {
  transform: translateX(4px);
}

/* Subtle divider between treatments */
.treatment:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ddd, transparent);
}

/* Responsive Layout */
@media (max-width: 1024px) {
  .treatment {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .treatment.reverse {
    flex-direction: column;
  }
  .treatment-text {
    box-shadow:
      0 4px 10px rgba(0, 0, 0, 0.06),
      0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 30px 25px;
  }

  .book-btn {
    margin-top: 4px;
  }
}


/* REVIEWS */
/* REVIEWS SECTION */
.reviews {
  background: linear-gradient(135deg, #f26f23 0%, #ff7e3e 35%, #0a0a0a 100%);
  color: #fff;
  padding: 90px 5%;
  position: relative;
}

.reviews-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.reviews h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: #fff;
  letter-spacing: 1px;
}

.review-intro {
  font-size: 1.05rem;
  color: #f5f5f5;
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Review Cards */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.review-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 25px 20px;
  text-align: left;
  color: #fff;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: "“";
  font-size: 3rem;
  color: rgba(255,255,255,0.25);
  position: absolute;
  top: 10px;
  left: 15px;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.15);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.review-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.review-header h4 {
  font-size: 1.1rem;
  margin: 0;
  color: #fff;
}

.stars {
  color: #ffd700;
  font-size: 1rem;
}

.review-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 10px;
  color: #fdfdfd;
}

/* View All Button */
.view-all-btn {
  display: inline-block;
  margin-top: 50px;
  background-color: #fff;
  color: #0a0a0a;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: #0a0a0a;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .reviews {
    padding: 60px 5%;
  }

  .review-card {
    padding: 20px;
  }

  .reviews h2 {
    font-size: 1.8rem;
  }

  .review-intro {
    font-size: 0.95rem;
  }
}

/* GALLERY */
/* OUR FACILITIES SECTION */
.gallery {
  padding: 90px 5%;
  background: #fafafa;
  text-align: center;
  position: relative;
}

.gallery-container {
  max-width: 1200px;
  margin: auto;
}

.gallery h2 {
  font-size: 2.3rem;
  color: #0a0a0a;
  margin-bottom: 15px;
  font-weight: 700;
}

.gallery-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* === 3 IMAGES PER ROW === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  object-fit: contain;
  animation: fadeIn 0.3s ease;
  border: 3px solid #f26f23;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.close-btn:hover {
  color: #f26f23;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* === RESPONSIVE FIX === */
@media (max-width: 768px) {
  .lightbox img {
    max-width: 95%;
    max-height: 75%;
  }

  .close-btn {
    top: 15px;
    right: 20px;
  }
}


/* === ANIMATION === */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* === RESPONSIVE LAYOUT === */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablet */
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }

  .gallery-item img {
    height: 200px;
  }

  .lightbox iframe {
    width: 90%;
    height: 70%;
  }

  .close-btn {
    top: 15px;
    right: 25px;
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery-item img {
    height: 180px;
  }

  .lightbox iframe {
    width: 90%;
    height: 70%;
  }

  .close-btn {
    top: 15px;
    right: 25px;
  }
}


/* CONTACT */
/* VISIT US SECTION */
.contact {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #333 100%);
  color: #fff;
  padding: 11px 5%;
  position: relative;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 320px;
}

.contact h2 {
  font-size: 2.3rem;
  color: #f26f23;
  margin-bottom: 15px;
}

.contact-intro {
  font-size: 1.05rem;
  color: #f2f2f2;
  line-height: 1.6;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.detail-item:hover {
  background: rgba(242, 111, 35, 0.1);
  transform: translateX(5px);
}

.icon {
  font-size: 1.6rem;
  color: #f26f23;
}

.detail-item h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.detail-item p {
  margin: 5px 0 0;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

.detail-item a {
  color: #f26f23;
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-item a:hover {
  color: #fff;
}

/* Directions Button */
.map-btn {
  display: inline-block;
  background: #f26f23;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.map-btn:hover {
  background: #d85e1f;
  transform: translateY(-2px);
}

/* Map Side */
.contact-map {
  flex: 1.2;
  min-width: 350px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.contact-map iframe:hover {
  transform: scale(1.02);
}

/* Responsive Layout */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-details {
    align-items: center;
  }

  .detail-item {
    text-align: left;
    width: 100%;
  }

  .contact-map {
    margin-top: 40px;
  }

  .contact-map iframe {
    height: 300px;
  }
}

/* BOOK YOUR APPOINTMENT SECTION — CLEAN LIGHT THEME */
.appointment {
  background: #f9f9f9;
  color: #333;
  padding: 80px 5%;
}

.appointment-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
}

/* LEFT TEXT BLOCK */
.appointment-text {
  flex: 1;
  min-width: 280px;
}

.appointment-text h2 {
  font-size: 2.3rem;
  color: #0a0a0a;
  margin-bottom: 15px;
}

.appointment-text p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits li {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 8px;
}

/* RIGHT FORM BLOCK */
.appointment-form {
  flex: 1;
  width: 100%;
  max-width: 500px; /* prevent too wide on desktop */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 40px;
  transition: all 0.3s ease;
}

.appointment-form:hover {
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

/* FORM FIELDS */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

input, textarea {
  width: 100%;
  padding: 14px 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid #ccc;
  font-size: 1rem;
  outline: none;
  color: #333;
  transition: all 0.3s ease;
}

textarea {
  resize: none;
  height: 80px;
}

input:focus, textarea:focus {
  border-color: #f26f23;
}

label {
  position: absolute;
  top: 14px;
  left: 10px;
  color: #888;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  pointer-events: none;
}

input:focus + label,
textarea:focus + label,
input:valid + label,
textarea:valid + label {
  top: -10px;
  left: 5px;
  font-size: 0.8rem;
  color: #f26f23;
  background: #fff;
  padding: 0 5px;
}

/* SUBMIT BUTTON */
.submit-btn {
  width: 100%;
  background: #f26f23;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #d85e1f;
  transform: translateY(-2px);
}

/* THANK YOU MESSAGE */
.thank-you {
  display: none;
  margin-top: 20px;
  font-size: 1rem;
  color: green;
  text-align: center;
}

/* ===== RESPONSIVE FIX ===== */
@media (max-width: 900px) {
  .appointment-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 0 15px; /* Prevents side overflow */
  }

  .appointment-text {
    margin-bottom: 30px;
  }

  .appointment-form {
    width: 100%;
    max-width: 100%;
    padding: 25px;
    box-sizing: border-box;
  }

  .form-group {
    width: 100%;
  }

  input, textarea {
    font-size: 0.95rem;
  }

  label {
    font-size: 0.9rem;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .appointment {
    padding: 60px 5%;
  }

  .appointment-form {
    padding: 20px;
  }

  .appointment-text h2 {
    font-size: 1.8rem;
  }

  .appointment-text p {
    font-size: 0.95rem;
  }
}



/* FOOTER */
.footer {
  text-align: center;
  padding: 20px 5%;
  background: #333;
  color: #fff;
  position: relative;
}

.footer-accent {
  height: 4px;
  background: #f26f23;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .overlay h1 { font-size: 1.8rem; }
  nav ul { gap: 15px; }
  .card img { height: 180px; }
}


input[type="date"] {
  color: #333;
  font-size: 1rem;
  padding: 14px 10px;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  outline: none;
  width: 100%;
  appearance: none;
}

input[type="date"]:focus {
  border-color: #f26f23;
}

/* Hide default dd/mm/yy placeholder */
input[type="date"]::before {
  color: transparent;
  content: attr(placeholder);
}

/* Floating label behavior */
input[type="date"]:focus + label,
input[type="date"]:not(:placeholder-shown) + label,
input[type="date"]:valid + label {
  top: -10px;
  left: 5px;
  font-size: 0.8rem;
  color: #707070;
  background: #fff;
  padding: 0 4px;
}

/* Calendar icon alignment and color */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(45%) sepia(80%) saturate(800%) hue-rotate(360deg);
  opacity: 0.7;
  cursor: pointer;
}
