/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #58181f;      /* Dark wine/burgundy from flyer */
  --color-primary-dark: #3d1015; /* Deeper wine color */
  --color-primary-light: #802f37;/* Lighter burgundy for hover */
  --color-bg-light: #fbf9f5;     /* Parchment-like background */
  --color-bg-dark: #f2e9db;      /* Slightly darker textured cream */
  --color-text-dark: #2c2421;    /* Deep charcoal/brown for text */
  --color-text-muted: #6e605a;   /* Muted brown */
  --font-title: 'Cinzel', serif;
  --font-accent: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  /* Premium paper texture background using SVG grain and warm radial gradients */
  background-image: 
    radial-gradient(circle at center, rgba(251, 249, 245, 0.9) 0%, rgba(242, 233, 219, 0.75) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

/* Custom Typography */
.font-title {
  font-family: var(--font-title);
  letter-spacing: 0.18em;
}

.font-accent {
  font-family: var(--font-accent);
}

/* Flyer Ornamental Layout styling */
.flyer-border-double {
  border: 4px double rgba(88, 24, 31, 0.25);
  padding: 1.5rem;
  background-color: rgba(251, 249, 245, 0.95);
  box-shadow: inset 0 0 40px rgba(88, 24, 31, 0.03);
}

.flyer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.flyer-divider::before,
.flyer-divider::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  background: linear-gradient(to right, transparent, rgba(88, 24, 31, 0.25), transparent);
}

.price-box {
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 10px rgba(88, 24, 31, 0.15);
  border-radius: 2px;
}

/* Stepper (Wizard) styling */
.step-container {
  display: none;
}

.step-container.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

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

.step-node {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-title);
  border: 2px solid rgba(88, 24, 31, 0.15);
  background-color: var(--color-bg-light);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.step-node.active .step-number {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(88, 24, 31, 0.25);
}

.step-node.completed .step-number {
  border-color: var(--color-primary);
  background-color: var(--color-bg-light);
  color: var(--color-primary);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.step-node.active .step-label {
  color: var(--color-primary);
  font-weight: 700;
}

.step-line {
  position: absolute;
  top: 19px;
  height: 2px;
  background-color: rgba(88, 24, 31, 0.12);
  z-index: 1;
  transition: background-color 0.3s ease;
}

.step-line.fill {
  background-color: var(--color-primary);
}

/* Elegant Inputs for Delivery Form */
.rustic-input {
  background-color: rgba(251, 249, 245, 0.8);
  border: 1px solid rgba(88, 24, 31, 0.2);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: all 0.3s ease;
}

.rustic-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(88, 24, 31, 0.08);
}

.rustic-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* Radio buttons card styling */
.method-card {
  border: 1px solid rgba(88, 24, 31, 0.15);
  background-color: rgba(251, 249, 245, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.method-card:hover {
  background-color: rgba(251, 249, 245, 0.9);
  border-color: var(--color-primary);
}

.method-card.selected {
  background-color: rgba(88, 24, 31, 0.04);
  border-color: var(--color-primary);
  box-shadow: inset 0 0 10px rgba(88, 24, 31, 0.02);
}

/* Custom button states */
.btn-wine {
  background-color: var(--color-primary);
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.btn-wine:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 24, 31, 0.25);
}

.btn-wine:active {
  transform: translateY(0);
}

.btn-wine-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  transition: all 0.3s ease;
  background-color: transparent;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.btn-wine-outline:hover {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(88, 24, 31, 0.15);
}

/* Counter controls for varieties */
.counter-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(88, 24, 31, 0.25);
  color: var(--color-primary);
  background-color: transparent;
  transition: all 0.2s ease;
  font-weight: bold;
}

.counter-btn:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.counter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: transparent;
  color: var(--color-text-muted);
  border-color: rgba(88, 24, 31, 0.1);
}

/* Divider pattern */
.pattern-divider {
  height: 8px;
  background-image: radial-gradient(circle, var(--color-primary) 1.5px, transparent 1.5px);
  background-size: 12px 8px;
  opacity: 0.25;
  width: 100%;
}

/* Responsive layout adjustments */
@media (min-width: 1024px) {
  .sticky-column {
    position: sticky;
    top: 2rem;
  }
}
