/* ==========================================================================
   COLOR PALETTE & VARIABLES
   ========================================================================== */
:root {
  /* Brand Logo Navy Blue */
  --logo-blue: #2B3990;
  --logo-blue-hover: #1e2968;

  /* Theme Palette */
  --primary-pink: #E91E63;
  --secondary-pink: #FF4DA6;
  --light-pink: #FFC1DE;
  --soft-pink: #FFE6F1;
  --charcoal: #111111;
  --medium-gray: #6B7280;
  --input-border: #E5E7EB;
  --white: #FFFFFF;
  --footer-bg: #09122C;
  --error-red: #E91E63;

  --font-main: 'Poppins', sans-serif;
  --shadow-popup: 0 24px 60px rgba(17, 17, 17, 0.22);
  --radius-card: 26px;
  --radius-input: 12px;
  --radius-pill: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background-color: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--soft-pink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.navbar {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.nav-logo:hover .logo-image {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--logo-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--logo-blue);
  border-radius: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Appointment Button on Navbar */
.btn-appointment {
  background-color: var(--logo-blue);
  color: var(--white);
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43, 57, 144, 0.28);
  transition: var(--transition);
}

.btn-appointment .btn-icon {
  font-size: 1rem;
  color: var(--light-pink);
}

.btn-appointment:hover {
  background-color: var(--logo-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 57, 144, 0.38);
}

/* Hamburger Button (Transforms to 'X') */
.hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--soft-pink);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: var(--transition);
}

.hamburger-btn .bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--logo-blue);
  border-radius: 3px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger-btn.active {
  background: var(--light-pink);
}

.hamburger-btn.active .bar-1 {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active .bar-3 {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   APPOINTMENT POPUP MODAL
   ========================================================================== */
.modal-backdrop-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-backdrop-overlay.show {
  opacity: 1;
  visibility: visible;
}

.appointment-card {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-card);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-popup);
  position: relative;
  transform: scale(0.9) translateY(18px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop-overlay.show .appointment-card {
  transform: scale(1) translateY(0);
}

/* Close Button (X) */
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--soft-pink);
  color: var(--primary-pink);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--light-pink);
  transform: rotate(90deg) scale(1.08);
}

/* Modal Header */
.modal-header {
  margin-bottom: 22px;
}

.header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.calendar-title-icon {
  font-size: 1.4rem;
  color: var(--primary-pink);
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-pink);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--medium-gray);
  font-weight: 400;
}

/* Form Styles */
.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.92rem;
  color: var(--charcoal);
  background-color: var(--white);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-input);
  outline: none;
  transition: all 0.2s ease;
}

.form-control::placeholder {
  color: #9CA3AF;
  font-size: 0.9rem;
}

.form-control:focus {
  border-color: var(--logo-blue);
  box-shadow: 0 0 0 3.5px rgba(43, 57, 144, 0.14);
}

/* Validation States */
.form-control.is-invalid {
  border-color: var(--error-red) !important;
  background-color: #fff9fb;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12) !important;
}

.form-control.is-valid {
  border-color: #10B981;
}

.error-text {
  font-size: 0.76rem;
  color: var(--error-red);
  font-weight: 500;
  min-height: 16px;
  line-height: 1.2;
  display: none;
  margin-top: 2px;
}

.error-text.show {
  display: block;
  animation: fadeInError 0.2s ease;
}

@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dropdown */
.select-container {
  position: relative;
  width: 100%;
}

.select-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}

.dropdown-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--medium-gray);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Date */
.date-control {
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.88rem;
  color: #4B5563;
}

/* Submit Button */
.submit-booking-btn {
  width: 100%;
  background-color: var(--logo-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  box-shadow: 0 8px 22px rgba(43, 57, 144, 0.28);
  transition: all 0.25s ease;
}

.submit-booking-btn .submit-icon {
  font-size: 1.05rem;
  color: var(--light-pink);
}

.submit-booking-btn:hover {
  background-color: var(--logo-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(43, 57, 144, 0.38);
}

/* Success Confirmation Screen */
.success-screen {
  text-align: center;
  padding: 20px 10px;
  animation: fadeInSuccess 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon-wrap {
  font-size: 3.5rem;
  color: #10B981;
  margin-bottom: 12px;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--logo-blue);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.success-subdesc {
  font-size: 0.85rem;
  color: var(--medium-gray);
  margin-bottom: 20px;
}

.redirecting-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-pink);
  color: var(--primary-pink);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--footer-bg);
  color: #D1D5DB;
  padding: 65px 24px 24px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr;
  gap: 40px;
  padding-bottom: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-description {
  font-size: 0.9rem;
  color: #9CA3AF;
  line-height: 1.65;
  margin-bottom: 22px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-pink);
  transform: translateY(-3px);
}

.footer-heading {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2.5px;
  background-color: var(--primary-pink);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a i {
  font-size: 0.7rem;
  color: var(--secondary-pink);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-links a:hover i {
  color: var(--primary-pink);
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #9CA3AF;
  line-height: 1.5;
}

.footer-contact i {
  font-size: 1rem;
  color: var(--secondary-pink);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  max-width: 1300px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--medium-gray);
}

/* ==========================================================================
   RESPONSIVE (Mobile View)
   ========================================================================== */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .logo-image {
    height: 42px;
  }

  /* Appointment Button: Switches to ICON ONLY on Mobile */
  .btn-appointment {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
  }

  .btn-appointment .btn-text {
    display: none;
  }

  .btn-appointment .btn-icon {
    font-size: 1.15rem;
    color: var(--white);
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.35s ease-in-out;
  }

  .nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--soft-pink);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .appointment-card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }
}


/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-pink));
    color: var(--white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.6);
}

.scroll-top-btn:active {
    transform: scale(0.95);
}

/* ===== WHATSAPP FLOATING ICON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 80px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 24px;
        bottom: 70px;
        right: 15px;
    }
}

/* Base — pink icon (all four classes, comma-separated) */
.card-icon .icon-m,
.card-icon .icon-f,
.card-icon .icon-o,
.card-icon .icon-g {
    width: 70%;
    height: 70%;
    object-fit: contain;
    align-self: center;
    display: block;
    transition: var(--transition);
}

/* Hover → swap to white SVG + scale */
.speciality-card:hover .card-icon .icon-m {
    content: url('/assets/MA.svg');
    transform: scale(1.1) rotate(5deg);
}

.speciality-card:hover .card-icon .icon-f {
    content: url('/assets/FA.svg');
    transform: scale(1.1) rotate(5deg);
}

.speciality-card:hover .card-icon .icon-o {
    content: url('/assets/OA.svg');
    transform: scale(1.1) rotate(5deg);
}

.speciality-card:hover .card-icon .icon-g {
    content: url('/assets/GA.svg');
    transform: scale(1.1) rotate(5deg);
}