@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
   --primary: #128c7e;
   /* Fresh Teal */
   --primary-dark: #075e54;
   /* Deep Teal */
   --secondary: #25d366;
   /* Bright Green Accent */
   --accent: #ffb74d;
   /* Warm Orange for CTA */

   --text-dark: #1f2937;
   --text-light: #6b7280;
   --white: #ffffff;

   /* Gradients */
   --gradient-hero: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
   --gradient-btn: linear-gradient(45deg, #128c7e, #075e54);

   --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.08);
   --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);

   --radius: 16px;
   --transition: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   scroll-behavior: smooth;
}

body {
   font-family: 'Poppins', sans-serif;
   color: var(--text-dark);
   background: #f3f4f6;
   line-height: 1.7;
   overflow-x: hidden;
}

/* ================= HEADER ================= */
header {
   background: rgba(255, 255, 255, 0.98);
   backdrop-filter: blur(10px);
   padding: 1rem 5%;
   position: sticky;
   top: 0;
   z-index: 1000;
   display: flex;
   justify-content: space-between;
   align-items: center;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.logo {
   display: flex;
   align-items: center;
   gap: 12px;
   text-decoration: none;
}

.logo i {
   font-size: 2rem;
   color: var(--primary);
   filter: drop-shadow(0 4px 6px rgba(18, 140, 126, 0.3));
}

.logo h1 {
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--primary-dark);
   font-family: 'Montserrat', sans-serif;
   letter-spacing: -0.5px;
}

.navmenu ul {
   list-style: none;
   display: flex;
   gap: 6rem;
   align-items: center;
}

.navmenu a {
   text-decoration: none;
   color: var(--text-dark);
   font-weight: 500;
   position: relative;
   padding-bottom: 5px;
   transition: color 0.3s ease;
   font-size: 1.1rem;
}

.navmenu a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 3px;
   background: var(--primary);
   border-radius: 2px;
   transition: width 0.3s var(--transition);
}

.navmenu a:hover,
.navmenu a.active {
   color: var(--primary);
}

.navmenu a:hover::after,
.navmenu a.active::after {
   width: 100%;
}

.header-right {
   display: flex;
   align-items: center;
   gap: 2.5rem;
}

.auth-group {
   display: flex;
   align-items: center;
   gap: 10px;
}

.auth-link {
   text-decoration: none;
   color: var(--text-dark);
   font-weight: 600;
   font-size: 0.95rem;
   transition: color 0.3s ease;
}

.auth-link:hover {
   color: var(--primary);
}

.auth-separator {
   color: #ccc;
   font-weight: 300;
   font-size: 0.8rem;
}

.cta-btn {
   background: var(--gradient-btn);
   color: white;
   padding: 12px 28px;
   border-radius: 50px;
   text-decoration: none;
   font-weight: 700;
   font-size: 0.95rem;
   box-shadow: 0 4px 15px rgba(18, 140, 126, 0.3);
   transition: all 0.3s var(--transition);
}

.cta-btn:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 25px rgba(18, 140, 126, 0.4);
}

/* ================= HERO SECTION ================= */
.home {
   min-height: 90vh;
   display: flex;
   flex-direction: row-reverse;
   /* Text Left, Image Right */
   align-items: center;
   justify-content: space-between;
   padding: 0 8%;
   background: var(--gradient-hero);
   position: relative;
   overflow: hidden;
   gap: 4rem;
}

.home::after {
   content: '';
   position: absolute;
   top: -50%;
   right: -20%;
   width: 800px;
   height: 800px;
   background: rgba(18, 140, 126, 0.05);
   border-radius: 50%;
   z-index: 0;
}

.home .content {
   flex: 1;
   z-index: 1;
   max-width: 650px;
   text-align: left;
   /* Ensure text aligns left */
}

.home h4 {
   font-family: 'Montserrat', sans-serif;
   font-size: 3.5rem;
   line-height: 1.2;
   margin-bottom: 1.5rem;
   color: var(--primary-dark);
   font-weight: 800;
}

.home p {
   font-size: 1.1rem;
   color: var(--text-light);
   margin-bottom: 2.5rem;
}

.home .image {
   flex: 1;
   display: flex;
   justify-content: center;
   /* Center image in its half */
   position: relative;
   z-index: 1;
}

.home .image img {
   width: 100%;
   max-width: 600px;
   /* Increased size visibility */
   animation: float 6s ease-in-out infinite;
}

@keyframes float {

   0%,
   100% {
      transform: translateY(0);
   }

   50% {
      transform: translateY(-20px);
   }
}

/* ================= PROFESSIONAL SIMPLE HEADINGS ================= */
.heading-container {
   text-align: center;
   margin: 3rem 0 2rem;
   padding: 0 5%;
}

.heading {
   font-size: 3rem;
   color: var(--primary-dark);
   font-weight: 700;
   margin-bottom: 1rem;
   position: relative;
}

.heading span {
   color: var(--primary);
}

.subtitle {
   font-size: 1.1rem;
   color: var(--text-light);
   max-width: 600px;
   margin: 0 auto;
   line-height: 1.6;
}

/* ================= CLEAN PROFESSIONAL CARDS ================= */
.box-container {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 2rem;
   padding: 0 8%;
}

.box {
   background: var(--white);
   border-radius: 20px;
   overflow: hidden;
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
   transition: all 0.4s var(--transition);
   border: 1px solid rgba(0, 0, 0, 0.02);
}

.box:hover {
   transform: translateY(-8px);
   box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.box img {
   width: 100%;
   height: 280px;
   object-fit: cover;
   transition: transform 0.6s ease;
}

.box:hover img {
   transform: scale(1.05);
}

.box .info {
   padding: 1.5rem;
   text-align: left;
}

.box h3 {
   font-size: 1.2rem;
   color: var(--primary-dark);
   margin-bottom: 0.4rem;
   font-weight: 700;
}

.box h4 {
   font-size: 0.85rem;
   color: var(--primary);
   margin-bottom: 1rem;
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 1px;
}



.box .info p {
   font-size: 0.95rem;
   color: var(--text-light);
   line-height: 1.6;
   margin-bottom: 0;
}

/* Services section specific refinements */
.doc_Serv .box img {
   height: 220px;
}

.doc_Serv .box h3 {
   font-size: 1.3rem;
}

/* ================= APPOINTMENT & STATUS ================= */
.appointment {
   margin-top: 3rem;
   padding: 2rem 8%;
}

.appointment .row {
   background: var(--white);
   border-radius: 30px;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
   display: flex;
   overflow: hidden;
   border: 1px solid rgba(0, 0, 0, 0.03);
}

.appointment .image2 {
   flex: 1;
   background: #f0f7f7;
   padding: 4rem;
   display: flex;
   align-items: center;
   justify-content: center;
}

.appointment .image2 img {
   width: 100%;
   max-width: 450px;
}

.form-container {
   flex: 1.2;
   padding: 5rem;
}

.form-container h1 {
   font-size: 2.5rem;
   color: var(--primary-dark);
   margin-bottom: 0.5rem;
   text-align: center;
   font-weight: 800;
}

.form-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1.5rem;
   margin-bottom: 1.5rem;
}

.txt_field {
   margin-bottom: 1.5rem;
   position: relative;
}

.txt_field label {
   display: block;
   font-size: 0.9rem;
   color: var(--text-light);
   margin-bottom: 0.6rem;
   font-weight: 600;
}

.box {
   width: 100%;
   padding: 16px 20px;
   border: 1.5px solid #eee;
   border-radius: 12px;
   font-size: 1rem;
   background: #fafafa;
   transition: 0.3s;
   outline: none;
   color: var(--text-dark);
}

.box:focus {
   border-color: var(--primary);
   background: white;
   box-shadow: 0 5px 15px rgba(18, 140, 126, 0.05);
}

/* Custom Select Styling */
.custom-select {
   position: relative;
}

.custom-select select {
   appearance: none;
   cursor: pointer;
   width: 100%;
   padding: 16px 20px;
   border: 1.5px solid #eee;
   border-radius: 12px;
   font-size: 1rem;
   background: #fafafa;
   outline: none;
   color: var(--text-dark);
}

.custom-select i {
   position: absolute;
   right: 20px;
   top: 50%;
   transform: translateY(-50%);
   pointer-events: none;
   color: var(--primary);
}

/* Schedule Container & Card */
.schedule-container {
   margin-bottom: 2rem;
}

.schedule-card {
   background: #f4fcfb;
   border-left: 4px solid var(--primary);
   padding: 1.5rem;
   border-radius: 12px;
}

.schedule-card h3 {
   font-size: 1rem;
   color: var(--primary-dark);
   margin-bottom: 1rem;
   text-transform: uppercase;
   letter-spacing: 1px;
   font-weight: 700;
}

.schedule-card ul {
   list-style: none;
}

.schedule-card ul li {
   display: flex;
   justify-content: space-between;
   padding: 8px 0;
   border-bottom: 1px dashed rgba(18, 140, 126, 0.1);
   font-size: 0.95rem;
}

.schedule-card ul li:last-child {
   border-bottom: none;
}

.schedule-card .day {
   font-weight: 600;
   color: var(--text-dark);
}

.schedule-card .time {
   color: var(--primary);
}

.no-schedule {
   padding: 1rem;
   color: var(--text-light);
   font-style: italic;
   font-size: 0.9rem;
}

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translateY(10px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.animate-fadeIn {
   animation: fadeIn 0.5s ease forwards;
}

/* Booking Section Specifics */
.booking {
   padding: 8rem 8% 4rem;
   text-align: center;
   background: #f8fbfb;
}

.booking .content {
   background: transparent;
   padding: 0;
   box-shadow: none;
   max-width: 900px;
   margin: 0 auto;
}

.search-box {
   background: var(--white);
   padding: 10px;
   border-radius: 60px;
   display: flex;
   align-items: center;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
   margin-bottom: 4rem;
   border: 1px solid #eee;
}

.search-box i {
   font-size: 1.2rem;
   color: var(--primary);
   margin-left: 20px;
}

.search-box input {
   flex: 1;
   border: none;
   padding: 15px 20px;
   font-size: 1.1rem;
   outline: none;
   background: transparent;
   color: var(--text-dark);
}

.search-box button {
   background: var(--gradient-btn);
   color: white;
   padding: 15px 40px;
   border-radius: 50px;
   border: none;
   font-size: 1rem;
   font-weight: 700;
   cursor: pointer;
   transition: 0.3s;
   box-shadow: 0 4px 15px rgba(18, 140, 126, 0.2);
}

.search-box button:hover {
   transform: translateX(-5px);
   box-shadow: 0 8px 25px rgba(18, 140, 126, 0.3);
}

/* Results Display */
.results-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
   gap: 2rem;
   text-align: left;
}

.status-card {
   background: var(--white);
   border-radius: 20px;
   padding: 2rem;
   box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
   border: 1px solid #f0f0f0;
}

.card-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 1.5rem;
   padding-bottom: 1rem;
   border-bottom: 1px solid #f8f8f8;
}

.appointment-id {
   font-weight: 800;
   color: var(--primary-dark);
   font-size: 1.1rem;
}

.badge {
   padding: 6px 16px;
   border-radius: 30px;
   font-size: 0.8rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.badge.pending {
   background: #fff8e1;
   color: #ffa000;
}

.badge.approved,
.badge.confirmed {
   background: #e8f5e9;
   color: #2e7d32;
}

.badge.cancelled,
.badge.rejected {
   background: #ffebee;
   color: #c62828;
}

.card-body .detail {
   display: flex;
   align-items: center;
   gap: 12px;
   margin-bottom: 12px;
   color: var(--text-light);
   font-size: 0.95rem;
}

.card-body .detail i {
   width: 20px;
   color: var(--primary);
}

.card-body .detail span {
   color: var(--text-dark);
   font-weight: 500;
}

.status-message {
   font-size: 1.2rem;
   color: var(--text-light);
   padding: 3rem;
   background: var(--white);
   border-radius: 20px;
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* ================= ABOUT US ================= */
.about {
   padding: 4rem 8%;
   background: var(--white);
   margin-top: 3rem;
}

.about .heading-container {
   margin: 2.5rem 0 1.5rem;
}

.about .row {
   display: flex;
   align-items: center;
   gap: 3rem;
   flex-wrap: wrap;
}

.about .image {
   flex: 1 1 35rem;
   position: relative;
}

.about .image img {
   width: 100%;
}

.about .content {
   flex: 1 1 35rem;
}

.about .content h3 {
   font-size: 2rem;
   color: var(--primary-dark);
   margin-bottom: 1.5rem;
   font-weight: 700;
}

.about .content p {
   color: var(--text-light);
   font-size: 1.05rem;
   margin-bottom: 1.5rem;
   line-height: 1.7;
}

/* Trust Indicators */
.trust-indicators {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
   margin-bottom: 3rem;
   padding-bottom: 2.5rem;
   border-bottom: 1px solid #eee;
}

.indicator {
   display: flex;
   align-items: center;
   gap: 15px;
}

.indicator i {
   font-size: 1.8rem;
   color: var(--primary);
   background: #f0f7f7;
   width: 50px;
   height: 50px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 12px;
}

.indicator strong {
   display: block;
   font-size: 1.4rem;
   color: var(--primary-dark);
   font-weight: 800;
}

.indicator span {
   font-size: 0.85rem;
   color: var(--text-light);
   font-weight: 600;
}

/* Contact Methods */
.contact-methods {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.method {
   display: flex;
   align-items: center;
   gap: 20px;
   transition: 0.3s;
}

.method:hover {
   transform: translateX(10px);
}

.method .icon-box {
   width: 45px;
   height: 45px;
   border-radius: 50%;
   background: var(--primary);
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1rem;
   box-shadow: 0 5px 15px rgba(18, 140, 126, 0.2);
}

.method .text h6 {
   font-size: 0.9rem;
   color: var(--primary);
   margin: 0;
   text-transform: uppercase;
   letter-spacing: 1px;
   font-weight: 700;
}

.method .text p {
   font-size: 1rem;
   color: var(--text-dark);
   margin: 0;
   font-weight: 500;
}

/* ================= FOOTER ================= */
.footer {
   background: #067e78;
   color: white;
   padding: 6rem 8% 0;
   font-family: 'Montserrat', sans-serif;
}
.footer .grid {
   display: grid;
   grid-template-columns: auto auto auto; /* Wraps tightly around the text */
   justify-content: center; /* Pushes the entire block perfectly to the center */
   gap: 8rem; /* Gives a nice, breathable space between the three columns */
   padding-bottom: 4rem;
}

.footer .box {
   display: flex;
   flex-direction: column;
   background: transparent;
   box-shadow: none;
   border: none;
   /* Explicitly remove inherited border */
   border-radius: 0;
   padding: 0;
}

.footer-logo {
   display: flex;
   align-items: center;
   gap: 12px;
   font-size: 1.8rem;
   font-weight: 700;
   color: white;
   margin-bottom: 2rem;
}

.footer-logo i {
   color: white;
   font-size: 2.22rem;
}

.footer-logo span span {
   color: rgba(255, 255, 255, 0.6);
   font-weight: 400;
}

.footer-desc {
   color: rgba(255, 255, 255, 0.7);
   font-size: 0.95rem;
   line-height: 1.8;
   max-width: 300px;
}

.footer h3 {
   font-size: 1.1rem;
   color: white !important;
   margin-bottom: 2rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.footer a {
   color: white !important;
   text-decoration: none;
   margin-bottom: 1rem;
   transition: 0.3s;
   font-size: 0.95rem;
   display: block;
}

.footer a:hover {
   color: white !important;
   padding-left: 8px;
}

/* Footer Bottom Bar */
.footer-bottom {
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 2.5rem 0;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   flex-wrap: wrap;
   gap: 2rem;
   text-align: center;
}

.copyright {
   color: rgba(255, 255, 255, 0.7);
   font-size: 0.9rem;
   width: 100%;
}


.social-row {
   display: flex;
   gap: 15px;
}

.social-row a {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.1);
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.1rem;
   transition: 0.3s;
   margin-bottom: 0;
}

.social-row a:hover {
   background: white;
   color: #067e78;
   transform: translateY(-5px);
   padding-left: 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
   .home {
      flex-direction: column;
      padding-top: 120px;
      text-align: center;
   }

   .home .content,
   .home .image {
      max-width: 100%;
      justify-content: center;
   }

   .home h4 {
      font-size: 2.5rem;
   }

   .navmenu {
      display: none;
      /* Hide for now on tablet/mobile */
      /* Future: Add hamburger menu implementation */
   }

   .appointment .row {
      flex-direction: column;
   }

   .about .row {
      flex-direction: column-reverse;
   }

   .footer .grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
   }
}

/* ================= BUTTONS ================= */
.btn2 {
   display: block;
   width: 100%;
   background: var(--gradient-btn);
   color: white;
   padding: 16px 30px;
   border-radius: 12px;
   border: none;
   font-size: 1.1rem;
   font-weight: 700;
   cursor: pointer;
   transition: all 0.3s var(--transition);
   box-shadow: 0 4px 15px rgba(18, 140, 126, 0.2);
   text-align: center;
   margin-top: 1rem;
   font-family: 'Montserrat', sans-serif;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.btn2:hover {
   transform: translateY(-3px);
   box-shadow: 0 8px 25px rgba(18, 140, 126, 0.3);
}

.btn2:active {
   transform: translateY(-1px);
}

/* ================= CONTACT SECTION ================= */
.contact {
   padding: 4rem 8%;
   background: #f8fbfb;
}

.contact .row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: start;
}

.contact-info {
   display: flex;
   flex-direction: column;
   gap: 2rem;
}

.info-item {
   display: flex;
   align-items: center;
   gap: 20px;
   padding: 1.5rem;
   background: white;
   border-radius: 15px;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
   transition: 0.3s;
}

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

.icon-box {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   background: var(--primary);
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.5rem;
   flex-shrink: 0;
}

.info-item .text h6 {
   font-size: 1rem;
   color: var(--primary);
   margin: 0 0 0.5rem 0;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.info-item .text p {
   font-size: 1rem;
   color: var(--text-dark);
   margin: 0;
   font-weight: 500;
}

.contact-form {
   background: white;
   padding: 2.5rem;
   border-radius: 20px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
   margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
   width: 100%;
   padding: 15px 20px;
   border: 1.5px solid #eee;
   border-radius: 10px;
   font-size: 1rem;
   background: #fafafa;
   transition: 0.3s;
   outline: none;
   color: var(--text-dark);
   font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
   border-color: var(--primary);
   background: white;
   box-shadow: 0 0 0 4px rgba(18, 140, 126, 0.1);
}

.contact-form textarea {
   resize: vertical;
   min-height: 120px;
}

@media (max-width: 768px) {
   .contact .row {
      grid-template-columns: 1fr;
      gap: 2rem;
   }
   
   .info-item {
      flex-direction: column;
      text-align: center;
      gap: 15px;
   }
}

/* Global image safety and tighter mobile adjustments */
img {
   max-width: 100%;
   height: auto;
   display: block;
}

html, body {
   max-width: 100%;
   overflow-x: hidden;
}

/* Extra mobile tweaks for very small screens */
@media (max-width: 480px) {
   header { padding: 0.75rem 4%; }

   /* Hero */
   .home {
      flex-direction: column;
      padding: 1.5rem 4%;
      gap: 1.25rem;
      min-height: auto;
      align-items: center;
   }

   .home::after {
      width: 320px;
      height: 320px;
      top: -30%;
      right: -40%;
      background: rgba(18, 140, 126, 0.04);
   }

   .home h4 { font-size: 1.8rem; }
   .home p { font-size: 1rem; }

   .home .content { max-width: 100%; padding: 0; text-align: center; }
   .home .image { width: 100%; }
   .home .image img { max-width: 90%; margin: 0 auto; }

   /* Cards and boxes */
   .box img { height: auto; object-fit: contain; }
   .box .info { padding: 1rem; }

   /* Appointment form adjustments */
   .appointment { padding: 1rem 4%; }
   .appointment .row { flex-direction: column; padding: 0; }
   .form-container { padding: 1.25rem; }
   .form-grid { grid-template-columns: 1fr; }

   /* Search box */
   .search-box { padding: 8px; gap: 8px; }
   .search-box input { font-size: 1rem; padding: 10px; }
   .search-box button { padding: 10px 14px; }

   /* Footer and contact */
   .footer { padding: 3rem 4% 2rem; }
   .footer .grid { gap: 1rem; }
   .contact { padding: 1.5rem 4%; }
   .about { padding: 1rem 4%; }

   /* Reduce headings and spacing */
   .heading { font-size: 2rem; }
   .heading-container { margin: 1.5rem 0; }
}