/* ==========================================================================
   SUNNY VIBES FITNESS | INTERACTIVE COMPONENTS & MODALS (THEMED)
   ========================================================================== */

/* ==========================================================================
   1. MACRO & FITNESS CALCULATOR COMPONENT
   ========================================================================== */
.calculator-section {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
}

.calc-card-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.calc-card-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--sunset-orange));
}

.calc-form-pane {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-pane-title {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.calc-pane-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Units Switcher */
.unit-toggle-group {
  display: inline-flex;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  width: fit-content;
}

.unit-btn {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.unit-btn.active {
  background: var(--teal);
  color: var(--text-dark);
  box-shadow: 0 2px 10px var(--teal-glow);
}

/* Form Row & Groups */
.calc-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}

.calc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}

.calc-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 12px var(--teal-glow);
}

.calc-unit-text {
  position: absolute;
  right: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}

/* Goal Selector Cards */
.goal-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.goal-card-radio {
  display: none;
}

.goal-card-label {
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.goal-card-label:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.goal-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.goal-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.goal-card-radio:checked + .goal-card-label {
  border-color: var(--teal);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.goal-card-radio:checked + .goal-card-label .goal-title {
  color: var(--teal);
}

/* Activity Selector */
.calc-select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.calc-select:focus {
  border-color: var(--teal);
}

/* Results Display Pane */
.calc-results-pane {
  background: linear-gradient(145deg, rgba(13, 19, 34, 0.95) 0%, rgba(18, 27, 47, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.results-header {
  text-align: center;
  margin-bottom: 20px;
}

.results-badge-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.calorie-target-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.calorie-number {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  text-shadow: 0 0 25px var(--teal-glow);
}

.calorie-unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.tdee-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Macros Progress Stack */
.macros-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.macro-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.macro-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.macro-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.macro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.macro-dot.protein { background: var(--teal); }
.macro-dot.carbs { background: var(--coral); }
.macro-dot.fats { background: var(--sunset-orange); }

.macro-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.macro-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.macro-fill.protein { background: var(--teal); box-shadow: 0 0 10px var(--teal-glow); }
.macro-fill.carbs { background: var(--coral); box-shadow: 0 0 10px var(--coral-glow); }
.macro-fill.fats { background: var(--sunset-orange); box-shadow: 0 0 10px rgba(255, 138, 0, 0.35); }

/* Quick Metrics Row */
.quick-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
}

.metric-pill-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-pill-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   2. INTERACTIVE BEFORE / AFTER TRANSFORMATION SLIDER
   ========================================================================== */
.transformations-section {
  padding: 100px 0;
  position: relative;
}

.transform-showcase-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ba-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  cursor: ew-resize;
  background: #000;
}

.ba-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--teal);
}

.ba-overlay-layer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--coral) 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
  z-index: 10;
  pointer-events: none;
  font-size: 1.1rem;
}

.ba-badge {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.ba-badge.before {
  left: 16px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.ba-badge.after {
  right: 16px;
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid var(--teal);
  color: var(--teal);
}

.transform-details-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.client-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.stat-box-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 4px;
}

.stat-box-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quote-highlight {
  border-left: 3px solid var(--coral);
  padding-left: 18px;
  font-size: 1.05rem;
  color: var(--text-main);
  font-style: italic;
  line-height: 1.6;
}

/* ==========================================================================
   3. MULTI-STEP CONSULTATION BOOKING MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-window {
  width: 100%;
  max-width: 620px;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 229, 255, 0.15);
  position: relative;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.open .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--coral);
  color: #FFFFFF;
}

.modal-header {
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--border-light);
}

.modal-step-indicator {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.step-bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.step-bar.active {
  background: linear-gradient(90deg, var(--teal), var(--coral));
  box-shadow: 0 0 8px var(--teal-glow);
}

.modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  flex-grow: 1;
}

.wizard-step {
  display: none;
  animation: fadeInStep 0.3s ease forwards;
}

.wizard-step.active {
  display: block;
}

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

.modal-footer {
  padding: 18px 32px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Chip Selectors in Modal */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip-option {
  padding: 10px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.chip-option:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.chip-option.selected {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--teal);
  color: var(--teal);
}

.booking-field-group {
  margin-bottom: 20px;
}

.booking-field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-field-group input,
.booking-field-group select,
.booking-field-group textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.booking-field-group input:focus,
.booking-field-group select:focus,
.booking-field-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 10px var(--teal-glow);
}

/* Success State in Modal */
.booking-success-view {
  text-align: center;
  padding: 30px 10px;
}

.success-icon-circle {
  width: 72px;
  height: 72px;
  background: rgba(0, 229, 255, 0.15);
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 2.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px var(--teal-glow);
  animation: scaleBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleBounce {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   4. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 229, 255, 0.2);
  color: var(--text-main);
  font-size: 0.92rem;
  pointer-events: auto;
  animation: toastSlide 0.35s ease forwards;
  max-width: 360px;
}

@keyframes toastSlide {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.hide {
  animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastFadeOut {
  to { transform: translateX(100%); opacity: 0; }
}

.toast-icon {
  color: var(--teal);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(7, 10, 18, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-drawer.open {
  transform: translateY(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

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

.mobile-links a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.mobile-links a:hover {
  color: var(--teal);
  padding-left: 8px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .calc-card-container {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  
  .transform-showcase-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .goal-cards-grid {
    grid-template-columns: 1fr;
  }
}
