/* ==========================================================
   JIVHALA HEALTHCARE – MAIN STYLESHEET
   ========================================================== */

/* ---------- Base & Typography ---------- */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #faf7f2;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif-heading,
.font-playfair {
  font-family: 'Playfair Display', serif;
}

.font-sans-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ---------- Utility / Helper Classes ---------- */
html {
  scroll-behavior: smooth;
}
::selection {
  background-color: #ccfbf1;
  color: #134e4a;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseSlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.animate-fade-up,
.animate-welcome,
.animate-fade-in,
.animate-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}
.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}
.animate-pulse-slow {
  animation: pulseSlow 4s infinite ease-in-out;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ---------- Header & Navigation ---------- */
.dropdown-group {
  position: relative;
}
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.dropdown-group:hover .dropdown-menu,
.dropdown-group:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-service-details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.mobile-service-details summary::-webkit-details-marker {
  display: none;
}
.mobile-service-details summary::marker {
  content: "";
}
.mobile-service-details[open] .chevron-icon {
  transform: rotate(180deg);
}
.chevron-icon {
  transition: transform 0.25s ease;
}

.flag-india {
  display: inline-flex;
  flex-direction: column;
  width: 20px;
  height: 14px;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.flag-india .saffron {
  height: 33.33%;
  background: #FF9933;
}
.flag-india .white {
  height: 33.33%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flag-india .white .chakra {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid #1e3a8a;
}
.flag-india .green {
  height: 33.33%;
  background: #128807;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

#mobile-menu {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Book Now Page (Multi-step Form) ---------- */
.step-line {
  transition: all 0.3s ease;
}
.step-dot {
  transition: all 0.3s ease;
}
.step-dot.active,
.step-dot.completed {
  background-color: #00898a;
  color: #fff;
  border-color: #00898a;
}
.step-label.active,
.step-label.completed {
  color: #00898a;
  font-weight: 700;
}
.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}
.form-step.active {
  display: block;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #00898a;
  box-shadow: 0 0 0 3px rgba(0, 137, 138, 0.15);
}

summary::-webkit-details-marker,
summary::marker {
  display: none;
  content: "";
}

/* ==========================================================
   BOOK NOW PAGE – ADDITIONAL STYLES
   ========================================================== */

/* ---------- Payment Summary Card ---------- */
.payment-summary-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6f7f5 100%);
    border: 1px solid #99f6e4;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.payment-summary-card .divider {
    border-color: #ccfbf1;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.payment-summary-row.total {
    font-size: 1rem;
    font-weight: 700;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid #ccfbf1;
}

.payment-summary-row .label {
    color: #475569;
}

.payment-summary-row .value {
    color: #0f172a;
    font-weight: 600;
}

.payment-summary-row .value.highlight {
    color: #0d9488;
    font-weight: 700;
}

/* ---------- On-Call Procedure Cards ---------- */
.procedure-card {
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #ffffff;
    position: relative;
}

.procedure-card:hover {
    border-color: #14b8a6;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
}

.procedure-card.selected {
    border-color: #0d9488;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.procedure-card .badge-popular {
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    background: #0d9488;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.75rem;
    border-radius: 9999px;
}

.procedure-card .price-tag {
    display: inline-block;
    font-weight: 700;
    color: #0d9488;
    font-size: 0.875rem;
}

.procedure-card .price-tag.advanced {
    color: #e11d48;
}

.procedure-card .checkbox-circle {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.procedure-card.selected .checkbox-circle {
    border-color: #0d9488;
    background: #0d9488;
}

.procedure-card.selected .checkbox-circle::after {
    content: "✓";
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ---------- Booking Summary Sidebar ---------- */
.booking-summary-sidebar {
    position: sticky;
    top: 6rem;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.booking-summary-sidebar .item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.booking-summary-sidebar .item-row:last-child {
    border-bottom: none;
}

.booking-summary-sidebar .empty-state {
    color: #94a3b8;
    font-size: 0.75rem;
    text-align: center;
    padding: 1rem 0;
}

/* ---------- Progress Bar ---------- */
.progress-bar-container {
    width: 100%;
    height: 0.375rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0%;
}

/* ---------- Activation Fee Details ---------- */
.fee-details-toggle {
    cursor: pointer;
    color: #0d9488;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    padding: 0;
}

.fee-details-toggle:hover {
    text-decoration: underline;
}

.fee-details-content {
    display: none;
    font-size: 0.75rem;
    color: #475569;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #e2e8f0;
}

.fee-details-content.open {
    display: block;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 640px) {
    .procedure-card {
        padding: 0.75rem;
    }
    
    .payment-summary-card {
        padding: 1rem;
    }
    
    .booking-summary-sidebar {
        position: static;
        margin-top: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .booking-summary-sidebar {
        position: sticky;
        top: 6rem;
    }
}