/* =========================================================
   FRONTEND STYLES (Grouped by Component)
   Project: FMMC-bookme Landing Page
   Theme: Green / Medical
========================================================= */

/* =========================================================
   1) GLOBAL / TOKENS / BASE
========================================================= */
:root {
    --primary-color: #198754;
    --primary-dark: #146c43;
    --primary-light: #e8f5ee;
    --secondary-color: #f4fdf8;
    --accent-color: #20c997;
    --text-color: #495057;

    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-soft: 0 12px 35px rgba(25, 135, 84, 0.12);
    --shadow-strong: 0 30px 60px rgba(25, 135, 84, 0.15);
    --transition: 220ms ease;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Optional: improve focus accessibility (keyboard users) */
:focus-visible {
    outline: 3px solid rgba(32, 201, 151, 0.35);
    outline-offset: 3px;
    border-radius: 10px;
}

/* =========================================================
   2) ANIMATIONS (Reusable)
========================================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(50px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.animate-slide-in { animation: slideIn 0.5s ease forwards; }

/* Fade-in reveal utility */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.show { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   3) SECTION SCROLL OFFSETS
========================================================= */
#home,
#booking { scroll-margin-top: 100px; }

#doctors,
#about,
#gallery,
#faq { scroll-margin-top: 50px; }

/* =========================================================
   4) NAVIGATION BAR
========================================================= */
.main-nav-links .nav-link{
    position: relative;
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.main-nav-links .nav-link::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;            
    width: 100%;
    height: 3px;            
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.main-nav-links .nav-link:hover{
    color: var(--primary-color) !important;
}

.main-nav-links .nav-link:hover::after{
    transform: scaleX(1);
}

/* =========================================================
   5) BOOKING SECTION
========================================================= */

/* Container */
.booking-container {
    max-width: 1100px;
    margin: 80px auto;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    position: relative;
}

/* Decorative blob */
.booking-container::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(25, 135, 84, 0.08);
    border-radius: 50%;
    top: -60px;
    right: -60px;
}

/* Header */
.booking-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}
.booking-header h2 { font-weight: 800; }

/* Steps */
.booking-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 42px;
    padding: 28px 18px 42px;
    background: var(--primary-light);
    position: relative;
}

/* Each step */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-right: 0;
}

/* Step circle */
.step-number {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

/* Active/completed */
.step.active .step-number {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.08);
}
.step.completed .step-number {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Labels */
.step-title {
    font-size: 13px;
    text-align: center;
    color: #6c757d;
    margin-top: 8px;
    transition: color var(--transition), font-weight var(--transition);
}
.step.active .step-title {
    color: var(--primary-color);
    font-weight: 800;
}
.step.completed .step-title { color: #28a745; }

/* Progress bar (IMPROVED: centered below steps) */
.progress-bar-steps {
    position: absolute;
    left: 10%;
    width: 80%;
    bottom: 20px;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 0;
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar-steps .progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease;
}

/* Content */
.booking-content {
    padding: 15px;
    min-height: 400px;
}
.booking-step {
    display: none;
    animation: fadeIn 0.5s ease;
}
.booking-step.active { display: block; }

/* Footer */
.booking-footer {
    padding: 18px 20px;
    border-top: 1px solid #e3e6f0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Buttons  */
#next-step {
    background: var(--primary-color);
    border: none;
    color: #fff;
    transition: transform var(--transition), background var(--transition);
}
#next-step:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Cards used in booking (categories/services/doctors) */
.category-card,
.service-card,
.doctor-card {
    cursor: pointer;
    border-radius: var(--radius-lg);
    border: 1px solid #e9ecef;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
    background: #fff;
}

.category-card:hover,
.service-card:hover,
.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.category-card.selected,
.service-card.selected,
.doctor-card.selected {
    border: 2px solid var(--primary-color);
    background: var(--primary-light);
}

/* Icon helper */
.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Time slots */
.time-slot {
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.time-slot:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}
.time-slot.selected {
    background: var(--primary-color);
    color: #fff;
}
.time-slot.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

/* Calendar */
.calendar-day {
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    border-radius: 10px; 
}
.calendar-day:hover:not(.disabled) {
    background-color: rgba(25, 135, 84, 0.12); 
}
.calendar-day.selected {
    background-color: var(--primary-color);
    color: #fff;
}
.calendar-day.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

/* Booking summary rows */
.summary-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e3e6f0;
}

/* =========================================================
   6) DOCTORS SECTION (Cards share styles above)
========================================================= */
/* You can add doctors-only styles here later if needed. */

/* =========================================================
   7) ABOUT US SECTION
========================================================= */
/* About uses .fade-in utilities. Add About-specific styling here if you want
   e.g. cards consistent radius/shadow across page. */

/* =========================================================
   8) GALLERY SECTION
========================================================= */
.c-item { height: 480px; }
.c-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   9) RESPONSIVE
========================================================= */
@media (max-width: 576px) {
  /* improvement: prevent steps from squeezing on small screens */
  .booking-steps {
    gap: 18px;
    padding: 20px 10px 42px;
  }
  .step-title { font-size: 12px; }
  .step-number { width: 42px; height: 42px; }
  .progress-bar-steps { left: 6%; width: 88%; }
}

@media (min-width: 720px) {
    .booking-content {
        padding: 30px;
        min-height: 400px;
    }
}