/* Dog Feeding Calculator - Modern Slider Design */
/* Integrates with existing DFC functionality */
/* DogFood.mk Brand Colors */

/* CSS Custom Properties for DogFood.mk Brand Colors */
:root {
  --brand-primary: #dca54a;
  --brand-secondary: #d09a40;
  --brand-dark: #0f172a;
  --brand-gray: #4a4a4a;
  --brand-light: #faf5e5;
  --brand-white: #fff;
  --brand-cream: #f0e6c5;
  --brand-black: #141004;
  --brand-dark-gray: #222;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Modern Scrollbar Styling */
/* For Webkit browsers (Chrome, Safari, Edge) */
.calculator-container.overlay-mode::-webkit-scrollbar {
  width: 12px;
}

.calculator-container.overlay-mode::-webkit-scrollbar-track {
  background: rgba(240, 230, 197, 0.3);
  border-radius: 10px;
}

.calculator-container.overlay-mode::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.calculator-container.overlay-mode::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
  box-shadow: 0 0 6px rgba(220, 165, 74, 0.5);
}

/* For Firefox */
.calculator-container.overlay-mode {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) rgba(240, 230, 197, 0.3);
}

/* General body scrollbar (optional - for the entire page) */
body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
  background: var(--brand-secondary);
}

/* Trigger Button - Call to Action */
.dfc-trigger-button {
  padding: 18px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: var(--brand-white);
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(220, 165, 74, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  width: auto !important;
  text-align: center;
}

.dfc-trigger-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 165, 74, 0.6);
  background: linear-gradient(135deg, #E8AF4B 0%, #C89038 100%);
}

.dfc-trigger-button:active {
  transform: translateY(-1px);
}

.dfc-trigger-button svg {
  width: 24px;
  height: 24px;
  animation: bounce 2s infinite;
  pointer-events: none;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Overlay Backdrop */
.dfc-overlay-backdrop {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 9999999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dfc-overlay-backdrop.active {
  display: block;
  opacity: 1;
}

/* Container - Overlay Mode */
.calculator-container {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  background-color: var(--brand-primary);
  background-image: 
    linear-gradient(rgba(220, 165, 74, 0.75), rgba(208, 154, 64, 0.75)),
    url('../images/dog-background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  height: auto;
  display: block;
}

/* Overlay Mode - Fixed Position */
.calculator-container.overlay-mode {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 10000000;
  max-height: 90vh;
  overflow-y: auto;
  display: none !important;
  opacity: 0;
  transition: all 0.3s ease;
  visibility: hidden;
  pointer-events: none;
}

.calculator-container.overlay-mode.active {
  display: block !important;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .calculator-container {
    border-radius: 15px;
    padding: 30px 15px;
  }
  
  .calculator-container.overlay-mode {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 15px;
  }
  
  .dfc-trigger-button {
    padding: 16px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .calculator-container.overlay-mode {
    max-width: 98vw;
    max-height: 98vh;
    border-radius: 10px;
    padding: 20px 10px;
  }
  
  .dfc-trigger-button {
    padding: 14px;
    font-size: 1rem;
  }
}


.highlight {
  color: var(--brand-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  100% {
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

/* Content */
.calculator-content {
  padding: 25px 20px;
}

/* Slider Container */
.slider-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Close Button - Maximum Visibility and Compatibility */
.close-btn,
.calculator-container .close-btn,
.calculator-container > .close-btn,
#dogfood .close-btn,
button.close-btn,
button#close-btn {
  position: fixed !important;
  top: 30px !important;
  right: 30px !important;
  z-index: 10000001 !important;
  background: #ffffff !important;
  border: 2px solid var(--brand-dark) !important;
  border-radius: 50% !important;
  width: 35px !important;
  height: 35px !important;
  min-width: 35px !important;
  min-height: 35px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.close-btn:hover,
.calculator-container .close-btn:hover,
button.close-btn:hover,
button#close-btn:hover {
  background: var(--brand-primary) !important;
  transform: scale(1.15) rotate(90deg) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4) !important;
  border-color: var(--brand-white) !important;
}

.close-btn svg,
.calculator-container .close-btn svg,
button.close-btn svg,
button#close-btn svg {
  color: var(--brand-dark) !important;
  stroke: var(--brand-dark) !important;
  transition: all 0.3s ease !important;
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  pointer-events: none !important;
}

.close-btn:hover svg,
.calculator-container .close-btn:hover svg,
button.close-btn:hover svg,
button#close-btn:hover svg {
  color: var(--brand-white) !important;
  stroke: var(--brand-white) !important;
}

/* Ensure SVG lines are visible */
.close-btn svg line,
.calculator-container .close-btn svg line,
button.close-btn svg line,
button#close-btn svg line {
  stroke-width: 3 !important;
}

/* Override any WordPress or theme styles */
.calculator-container .close-btn *,
#dogfood .close-btn *,
button.close-btn *,
button#close-btn * {
  pointer-events: none !important;
}

/* Mobile specific */
@media (max-width: 768px) {
  .close-btn,
  .calculator-container .close-btn,
  button.close-btn,
  button#close-btn {
    top: 15px !important;
    right: 15px !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
  }
  
  .close-btn svg,
  .calculator-container .close-btn svg,
  button.close-btn svg,
  button#close-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
}

.slider-wrapper {
  overflow: hidden;
  border-radius: 20px;
  background: transparent;
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: auto;
  cursor: grab;
  user-select: none;
}

.slider-track:active {
  cursor: grabbing;
}

.question-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background: transparent;
  position: relative;
  min-height: auto;
  z-index: 3;
}

/* Navigation Controls */
.slider-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Navigation Buttons */
.slide-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 0 20px;
  gap: 15px;
  min-height: 50px;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--brand-white) 0%, rgba(250, 245, 229, 0.8) 100%);
  border: 2px solid var(--brand-primary);
  border-radius: 30px;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(220, 165, 74, 0.15);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 130px;
  white-space: nowrap;
}

.nav-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 165, 74, 0.35);
  border-color: var(--brand-secondary);
}

.nav-button:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(220, 165, 74, 0.25);
}

.nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--brand-cream);
  border-color: var(--brand-cream);
  color: var(--brand-gray);
  box-shadow: none;
  transform: none;
}

.nav-button svg {
  transition: transform 0.4s ease;
  width: 20px;
  height: 20px;
}

.nav-button:hover:not(:disabled) svg {
  transform: scale(1.2);
}

.prev-button {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 229, 0.7) 100%);
  color: var(--brand-primary);
}

.prev-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #F5EDD8 0%, #E8DCC8 100%);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.prev-button:hover:not(:disabled) svg {
  transform: translateX(-3px) scale(1.2);
  animation: bounceLeft 0.6s ease infinite;
}

.next-button {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: var(--brand-white);
  border-color: var(--brand-secondary);
  box-shadow: 0 4px 15px rgba(220, 165, 74, 0.3);
}

.next-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #E8AF4B 0%, #C89038 100%);
  color: var(--brand-white);
  box-shadow: 0 6px 25px rgba(220, 165, 74, 0.45);
  border-color: #C89038;
}

.next-button:hover:not(:disabled) svg {
  transform: translateX(3px) scale(1.2);
  animation: bounceRight 0.6s ease infinite;
}

@keyframes bounceLeft {
  0%, 100% { transform: translateX(-3px) scale(1.2); }
  50% { transform: translateX(-6px) scale(1.2); }
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(3px) scale(1.2); }
  50% { transform: translateX(6px) scale(1.2); }
}

/* Calculator Main Heading */
.calculator-heading {
  text-align: center;
  margin-bottom: 0 !important;
  padding: 0 20px;
}

.calculator-heading h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2B2B2B;
  margin: 0 !important;
  line-height: 1.3;
  animation: fadeInDown 0.6s ease;
}

.calculator-heading h2 .highlight {
  color: var(--brand-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.calculator-heading .subheading {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--brand-white);
  margin: 0;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slider Dots - Updated for Progress Bar */
.slider-dots {
  width: 100%;
  max-width: 500px;
}

/* Slider-specific question styling */
.question-slide .question-section {
  margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(220, 165, 74, 0.2);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 15px;
  opacity: 1;
  transform: none;
  animation: none;
  border-radius: 25px;
  width: 100%;
  max-width: 1000px;
}

/* Question sections */
.question-section {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--brand-light);
  border-radius: 15px;
  border-left: 5px solid var(--brand-primary);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.5s ease forwards;
}

.question-section.editing {
  background: var(--brand-light);
  border-left-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(220, 165, 74, 0.2);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.question-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-top:5px;
}

/* Form elements */
/* Age Cards */
.age-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.age-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding:10px;
  background: var(--brand-white);
  border: 3px solid var(--brand-cream);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  min-height: 140px;
  min-width:150px;
}

.age-card:hover {
  border-color: var(--brand-primary);
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 165, 74, 0.2);
}

.age-card.selected {
  border-color: var(--brand-secondary);
  background: var(--brand-primary);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(208, 154, 64, 0.4);
}

.age-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-secondary);
  color: var(--brand-white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.age-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.age-label {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.age-description {
  color: var(--brand-gray);
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Weight Input */
.weight-input-container {
  margin-top: 20px;
}

.weight-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 300px;
  margin: 0 auto;
}

/* Larger weight input on desktop */
@media (min-width: 768px) {
  .weight-input-group {
    max-width: 450px;
  }
  
  .weight-input {
    font-size: 1.2rem;
    padding: 18px 25px;
  }
}

.weight-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid var(--brand-cream);
  border-radius: 10px;
  font-size: 1.1rem;
  text-align: center;
  background: var(--brand-white);
  color: var(--brand-dark);
}

.weight-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(220, 165, 74, 0.1);
}

.weight-unit-select {
  padding: 15px 20px;
  border: 2px solid var(--brand-cream);
  border-radius: 10px;
  font-size: 1.1rem;
  background: var(--brand-white);
  color: var(--brand-dark);
  cursor: pointer;
}

.weight-unit-select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(220, 165, 74, 0.1);
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

.size-display {
  margin-top: 15px;
  padding: 15px;
  background: var(--brand-light);
  border-radius: 10px;
  border-left: 4px solid var(--brand-primary);
}

.size-info {
  text-align: center;
}

.size-label {
  display: block;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 5px;
}

.size-examples {
  font-size: 0.9rem;
  color: var(--brand-gray);
  font-style: italic;
}

/* Activity Cards */
.activity-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: var(--brand-white);
  border: 3px solid var(--brand-cream);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  min-height: 160px;
}

.activity-card:hover {
  border-color: var(--brand-primary);
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 165, 74, 0.2);
}

.activity-card.selected {
  border-color: var(--brand-secondary);
  background: var(--brand-primary);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(208, 154, 64, 0.4);
}

.activity-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-secondary);
  color: var(--brand-white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.activity-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.activity-label {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.activity-description {
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1rem;
}

.activity-detail {
  color: var(--brand-gray);
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Flavor Cards */
.flavor-cards-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.flavor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: var(--brand-white);
  border: 3px solid var(--brand-cream);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  min-height: 120px;
}

.flavor-card:hover {
  border-color: var(--brand-primary);
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 165, 74, 0.2);
}

.flavor-card.selected {
  border-color: var(--brand-secondary);
  background: var(--brand-primary);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(208, 154, 64, 0.4);
}

.flavor-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--brand-secondary);
  color: var(--brand-white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.flavor-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

.flavor-label {
  font-weight: 600;
  color: var(--brand-dark);
  font-size: 1rem;
}

/* Progress indicator */
.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--brand-cream);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(220, 165, 74, 0.15);
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%);
  background-size: 20px 20px;
  animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
  0% { background-position: 0 0; }
  100% { background-position: 20px 0; }
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 50%, var(--brand-primary) 100%);
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  position: relative;
  box-shadow: 0 2px 8px rgba(220, 165, 74, 0.4);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s infinite;
  border-radius: 6px;
  z-index: 0;
}

.progress-percentage {
  position: relative;
  z-index: 1;
  color: var(--brand-white);
  font-weight: 700;
  font-size: 0.75rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}


/* Progress bar container */
.progress-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0 !important;
  font-size:12px;
  color: black;
  font-weight: 500;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-label > span:first-child {
  margin-right: auto;
}

.progress-text {
  color:black;
  font-weight: 600;
}

/* Results Section */
.dfc-results {
  padding: 40px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Results Slide in Slider */
.results-slide {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.results-slide .question-section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.dfc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.dfc-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--brand-cream);
  border-top: 4px solid var(--brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dfc-loading p {
  color: var(--brand-gray);
  font-size: 1rem;
  margin: 0;
}

/* Product Results */
.dfc-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.dfc-product-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-cream);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dfc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--brand-primary);
}

.dfc-product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--brand-light);
}

.dfc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dfc-product-card:hover .dfc-product-image img {
  transform: scale(1.05);
}

.dfc-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--brand-light);
  color: var(--brand-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

.dfc-product-content {
  padding: 20px;
}

.dfc-product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.dfc-product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.dfc-product-description {
  font-size: 0.9rem;
  color: var(--brand-gray);
  margin: 0 0 16px 0;
  line-height: 1.4;
}
.product-subtitle{
line-height: 1.25;
}
.dfc-product-button {
  width: 100%;
  padding: 12px;
  background: var(--brand-primary);
  color: var(--brand-white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dfc-product-button:hover {
  background: var(--brand-secondary);
  transform: translateY(-1px);
}


/* Responsive design updates */
/* Tablet landscape and smaller desktops (1024px and below) */
@media (max-width: 1024px) {
  .slide-navigation {
    padding: 0 15px;
    gap: 12px;
  }
  
  .nav-button {
    padding: 12px 24px;
    font-size: 0.95rem;
    min-width: 120px;
  }
}

/* Tablets and small screens (768px and below) */
@media (max-width: 768px) {
  .calculator-content {
    padding: 15px 10px;
  }
  
  .calculator-heading {
    padding: 0 10px;
  }
  
  .calculator-heading h2 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .calculator-heading .subheading {
    font-size:18px;
  }
  
  .slide-navigation {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 0 10px;
    min-height: auto;
  }
  
  .nav-button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    min-width: unset;
    border-radius: 15px;
  }
  
  .next-button {
    order: -1;
  }
  
  .prev-button {
    order: 1;
  }

  .slider-dots {
    margin: 0 10px;
    padding: 10px 15px;
    max-width: 100%;
  }
  
  .slider-wrapper {
    margin-top: 15px;
  }
  
  .progress-container {
    margin: 0;
    padding: 0;
  }
  
  .progress-bar {
    height: 14px;
    border-radius: 10px;
  }
  
  .progress-label {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--brand-white);
    gap: 0;
  }
  
  .progress-label > span:first-child,
  .progress-text {
    display: inline;
    font-size: 0.85rem;
  }
  
  .progress-indicators {
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }
  
  .age-cards-container,
  .activity-cards-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .flavor-cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Small mobile devices (600px and below) */
@media (max-width: 600px) {
  .calculator-content {
    padding: 12px 8px;
  }
  
  .calculator-heading {
    padding: 0 8px;
  }
  
  .calculator-heading h2 {
    font-size: 1.8rem;
  }
  
  .calculator-heading .subheading {
    font-size: 16px;
  }
  
  .slide-navigation {
    flex-direction: column;
    gap: 8px;
    padding: 0 8px;
    margin-top: 15px;
  }
  
  .nav-button {
    width: 100%;
    padding: 16px 18px;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    min-width: unset;
    border-radius: 12px;
  }
  
  .slider-dots {
    margin: 0 8px;
    padding: 8px 12px;
  }

}

/* Extra small mobile devices (480px and below) */
@media (max-width: 480px) {
  .calculator-content {
    padding: 10px 5px;
  }
  
  .calculator-heading {
    padding: 0 5px;
  }
  
  .calculator-heading h2 {
    font-size: 1.6rem;
  }
  
  .calculator-heading .subheading {
    font-size: 14px;
  }
  
  .slide-navigation {
    margin-top: 12px;
    gap: 8px;
    padding: 0 5px;
  }
  
  .nav-button {
    padding: 15px 16px;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    border-radius: 10px;
  }
  
  .question-slide {
    min-height: auto;
  }
  
  .slider-dots {
    padding: 8px 10px;
    margin: 0 5px;
  }
  
  .progress-bar {
    height: 16px;
    margin: 0;
    border-radius: 12px;
  }
  
  .progress-percentage {
    font-size: 0.8rem;
  }
  
  .progress-container {
    margin: 0;
    padding: 0;
  }
  
  .progress-label {
    font-size: 13px;
    color: black;
    gap: 0;
  }
  
  .progress-text {
    font-size: 13px;
  }
  
  .age-icon,
  .activity-icon {
    font-size: 2rem;
  }
  
  .age-label,
  .activity-label {
    font-size: 1rem;
  }
  
  .age-description,
  .activity-description {
    font-size: 0.85rem;
  }
  
  .flavor-card {
    padding:8px;
  }
  
  .progress-indicators {
    gap: 6px;
    margin-top: 6px;
  }
  
  .progress-dot {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    margin-bottom: 5px;
  }
}

/* Loading animation */
/* Highlight Required Animation */
.highlight-required {
  animation: pulseHighlight 0.6s ease-in-out 3;
  border: 3px solid #ff9800 !important;
}

@keyframes pulseHighlight {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(255, 152, 0, 0);
  }
}

/* Progress Indicators (dots showing completion status) */
.progress-indicators {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.progress-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin-bottom:5px;
}

.progress-dot.completed {
  background: #4caf50;
  color: var(--brand-white);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
  animation: checkBounce 0.4s ease;
}

.progress-dot.current {
  background: var(--brand-primary);
  border-color: var(--brand-secondary);
  animation: pulse 1.5s ease-in-out infinite;
}

.progress-dot.incomplete {
  background: #ff9800;
  color: var(--brand-white);
  animation: shake 0.5s ease;
}

@keyframes checkBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Focus management */
.calculator-content *:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .age-card,
  .activity-card,
  .flavor-card {
    border-width: 2px;
  }
  
  .age-card:hover,
  .activity-card:hover,
  .flavor-card:hover {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .slider-track,
  .age-card,
  .activity-card,
  .flavor-card,
  .dfc-product-card {
    transition: none;
  }
  
  .age-card:hover,
  .activity-card:hover,
  .flavor-card:hover,
  .dfc-product-card:hover {
    transform: none;
  }
  
  .dfc-spinner {
    animation: none;
  }
}

/* Product Row Styles - Results Section */
.dfc-product-row {
  background: white;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s;
}

.dfc-product-row.selected {
  box-shadow: 0 8px 20px rgba(220, 165, 74, 0.4);
  transform: scale(1.02);
  border: 2px solid var(--brand-primary);
}

/* Product Info Section */
.dfc-product-info {
  flex: 1;
  display: flex;
  gap: 15px;
  align-items: center;
}

.dfc-product-info .dfc-product-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.dfc-product-info .dfc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.dfc-product-image-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.85rem;
}

/* Product Content */
.dfc-product-info .dfc-product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dfc-product-info .dfc-product-title {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.dfc-product-info .dfc-product-description {
  margin: 0 0 8px 0;
  color: #666;
  line-height: 1.4;
  font-size: 0.9rem;
}

.dfc-product-info .dfc-product-price {
  margin-top: auto;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* Bag Options Section */
.dfc-bag-options {
  flex-shrink: 0;
  width: 220px;
  border-left: 2px solid #f0f0f0;
  padding-left: 20px;
}

.dfc-bag-options h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.bag-option {
  margin-bottom: 15px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.bag-option:hover {
  background: rgba(220, 165, 74, 0.05);
}

.bag-option label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.bag-option input[type="radio"] {
  margin-right: 10px;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
}

.bag-option-content {
  flex: 1;
}

.bag-option-display {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.bag-option-total {
  color: #666;
  font-size: 0.85rem;
  margin-top: 2px;
}

.bag-option-price {
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 4px;
}

.bag-option-price-per-kg {
  color: var(--brand-dark-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Products List Container */
.dfc-products-list {
  margin: 20px 0;
}

/* Subscribe Button Section */
.dfc-subscribe-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin:15px 0;
  flex-wrap: wrap;
}

.dfc-subscribe-btn {
  padding: 15px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(184, 149, 106, 0.3);
  min-width: 180px;
  text-align: center;
}

.dfc-subscribe-btn:hover {
  background: var(--brand-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 149, 106, 0.4);
}

.dfc-subscribe-btn:active {
  transform: translateY(0);
}

.dfc-reset-btn,
#reset-btn {
  padding: 15px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(184, 149, 106, 0.3);
}

.dfc-reset-btn:hover,
#reset-btn:hover {
  background: var(--brand-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 149, 106, 0.4);
}

.dfc-reset-btn:active,
#reset-btn:active {
  transform: translateY(0);
}

.dfc-reset-btn svg,
#reset-btn svg {
  width: 18px;
  height: 18px;
}

/* Results Intro Text */
.dfc-results-intro {
  color: #666;
  margin-top: 10px;
  font-size: 0.95rem;
}

/* Responsive adjustments for product rows */
@media (max-width: 768px) {
  
  .dfc-bag-options {
    width: 200px;
  }
  
  /* Stack buttons in column on mobile */
  .dfc-subscribe-section {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 20px;
  }
  
  .dfc-subscribe-btn,
  .dfc-reset-btn {
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }
}

@media (max-width: 600px) {
  .dfc-product-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .dfc-product-info {
    flex-direction: column;
  }
  
  .dfc-product-info .dfc-product-image {
    width: 100%;
    height: 180px;
  }
  
  .dfc-bag-options {
    width: 100%;
    border-left: none;
    border-top: 2px solid #f0f0f0;
    padding-left: 0;
    padding-top: 15px;
  }
}