/* ==========================================================================
   ANCELIN.VIDEO - Estimator Styles
   Adapted to brand colors
   ========================================================================== */

#video-estimator {
  --ve-primary: #000000;
  --ve-primary-light: #1f2937;
  --ve-gray-50: #f9fafb;
  --ve-gray-100: #F4F2EC;
  --ve-gray-200: #e5e7eb;
  --ve-gray-300: #d1d5db;
  --ve-gray-500: #6D6D6D;
  --ve-gray-700: #374151;
  --ve-blue: #3b82f6;
  --ve-blue-light: #eff6ff;
  --ve-orange: #FF604D;
  --ve-orange-light: #fff7ed;
  --ve-orange-border: #fed7aa;
  --ve-purple: #8b5cf6;
  --ve-purple-light: #f5f3ff;
  --ve-pink: #ec4899;
  --ve-pink-light: #fdf2f8;
  --ve-pink-border: #fbcfe8;
  --ve-teal: #14b8a6;
  --ve-teal-light: #f0fdfa;
  --ve-green: #22c55e;
  --ve-green-light: #f0fdf4;
  --ve-red: #ef4444;
  --ve-yellow: #fbbf24;
  --ve-yellow-light: #fefce8;
  --ve-yellow-border: #fde047;
  --ve-radius: 12px;
  --ve-radius-sm: 8px;
  --ve-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --ve-shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

#video-estimator.ve-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
}

#video-estimator *,
#video-estimator *::before,
#video-estimator *::after {
  box-sizing: border-box;
}

#video-estimator .ve-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

#video-estimator .ve-section {
  background: #fff;
  border-radius: var(--ve-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--ve-shadow);
  border-left: 4px solid var(--ve-gray-300);
}

#video-estimator .ve-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ve-primary);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#video-estimator .ve-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ve-gray-700);
  margin: 0 0 14px;
}

#video-estimator .ve-section--primary {
  border-left-color: var(--ve-primary);
}

#video-estimator .ve-section--blue {
  border-left-color: var(--ve-blue);
  background: linear-gradient(135deg, #fff 0%, var(--ve-blue-light) 100%);
}

#video-estimator .ve-section--orange {
  border-left-color: var(--ve-orange);
  background: linear-gradient(135deg, #fff 0%, var(--ve-orange-light) 100%);
}

#video-estimator .ve-section--purple {
  border-left-color: var(--ve-purple);
  background: linear-gradient(135deg, #fff 0%, var(--ve-purple-light) 100%);
}

#video-estimator .ve-section--pink {
  border-left-color: var(--ve-pink);
  background: linear-gradient(135deg, #fff 0%, var(--ve-pink-light) 100%);
}

#video-estimator .ve-section--teal {
  border-left-color: var(--ve-teal);
  background: linear-gradient(135deg, #fff 0%, var(--ve-teal-light) 100%);
}

#video-estimator .ve-section--gray {
  border-left-color: var(--ve-gray-500);
}

#video-estimator .ve-grid {
  display: grid;
  gap: 16px;
}

#video-estimator .ve-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

#video-estimator .ve-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

#video-estimator .ve-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#video-estimator .ve-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ve-gray-700);
}

#video-estimator .ve-field input,
#video-estimator .ve-field select {
  padding: 12px 14px;
  border: 1px solid var(--ve-gray-300);
  border-radius: var(--ve-radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

#video-estimator .ve-field input:focus,
#video-estimator .ve-field select:focus {
  outline: none;
  border-color: var(--ve-orange);
  box-shadow: 0 0 0 3px rgba(255, 96, 77, 0.15);
}

#video-estimator .ve-field-hint {
  font-size: 0.8rem;
  color: var(--ve-gray-500);
  font-style: italic;
}

#video-estimator .ve-field--compact {
  gap: 4px;
}

#video-estimator .ve-field--compact input {
  padding: 10px 12px;
}

/* Checkboxes - Service Selection */
#video-estimator .ve-checkboxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

#video-estimator .check-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  border: 2px solid var(--ve-gray-200);
  border-radius: var(--ve-radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: #fff;
}

#video-estimator .check-card:hover {
  border-color: var(--ve-gray-400);
  transform: translateY(-2px);
  box-shadow: var(--ve-shadow-md);
}

#video-estimator .check-card.is-checked {
  border-color: var(--ve-orange);
  background: rgba(255, 96, 77, 0.05);
}

#video-estimator .check-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#video-estimator .check-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

#video-estimator .check-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ve-primary);
  margin-bottom: 4px;
}

#video-estimator .check-desc {
  font-size: 0.85rem;
  color: var(--ve-gray-500);
}

/* Accessories */
#video-estimator .ve-accessories {
  margin-top: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--ve-radius-sm);
  border: 1px dashed var(--ve-orange-border);
}

#video-estimator .ve-accessories h3 {
  margin-bottom: 14px;
}

#video-estimator .ve-accessories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

#video-estimator .ve-accessory {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--ve-gray-200);
  border-radius: var(--ve-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

#video-estimator .ve-accessory:hover {
  border-color: var(--ve-orange);
}

#video-estimator .ve-accessory.is-checked {
  border-color: var(--ve-orange);
  background: var(--ve-orange-light);
}

#video-estimator .ve-accessory input {
  width: 18px;
  height: 18px;
  accent-color: var(--ve-orange);
}

/* Rush Box */
#video-estimator .ve-rush-box {
  margin-top: 20px;
  padding: 18px;
  background: var(--ve-yellow-light);
  border: 1px solid var(--ve-yellow-border);
  border-radius: var(--ve-radius-sm);
}

#video-estimator .ve-rush-ratio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  background: #fff;
  border-radius: var(--ve-radius-sm);
  text-align: center;
}

#video-estimator .ve-rush-ratio-label {
  font-size: 0.85rem;
  color: var(--ve-gray-500);
  margin-bottom: 4px;
}

#video-estimator .ve-rush-ratio-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ve-gray-700);
}

#video-estimator .ve-rush-ratio-hint {
  font-size: 0.75rem;
  color: var(--ve-gray-500);
  margin-top: 4px;
}

/* Options Box */
#video-estimator .ve-options-box {
  margin-top: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--ve-radius-sm);
  border: 1px dashed var(--ve-pink-border);
}

#video-estimator .ve-preprod-info {
  padding: 14px 16px;
  background: var(--ve-green-light);
  border: 1px solid #bbf7d0;
  border-radius: var(--ve-radius-sm);
}

#video-estimator .ve-preprod-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ve-gray-700);
}

#video-estimator .ve-checkbox-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--ve-gray-200);
  border-radius: var(--ve-radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  position: relative;
}

#video-estimator .ve-checkbox-inline:hover {
  border-color: var(--ve-pink);
}

#video-estimator .ve-checkbox-inline.is-checked {
  border-color: var(--ve-pink);
  background: var(--ve-pink-light);
}

#video-estimator .ve-checkbox-inline input {
  width: 18px;
  height: 18px;
  accent-color: var(--ve-pink);
}

#video-estimator .ve-checkbox--discount {
  flex-wrap: wrap;
}

#video-estimator .ve-checkbox--discount.is-checked {
  border-color: var(--ve-green);
  background: var(--ve-green-light);
}

#video-estimator .ve-discount-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--ve-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-left: auto;
}

#video-estimator .ve-info {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--ve-blue-light);
  border-radius: var(--ve-radius-sm);
  font-size: 0.85rem;
  color: var(--ve-gray-700);
}

#video-estimator .ve-warning {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--ve-radius-sm);
  font-size: 0.9rem;
  color: var(--ve-red);
}

/* Aside - Summary */
#video-estimator .ve-aside {
  position: sticky;
  top: 100px;
}

#video-estimator .ve-aside-content {
  background: #fff;
  border-radius: var(--ve-radius);
  padding: 24px;
  box-shadow: var(--ve-shadow-md);
  border: 2px solid var(--ve-primary);
}

#video-estimator .ve-aside h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ve-primary);
  margin: 0 0 18px;
  text-align: center;
}

#video-estimator .ve-summary {
  white-space: pre-wrap;
  background: var(--ve-gray-100);
  border: 1px solid var(--ve-gray-200);
  border-radius: var(--ve-radius-sm);
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  max-height: 45vh;
  overflow: auto;
  line-height: 1.6;
}

#video-estimator .ve-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  background: var(--ve-primary);
  border-radius: var(--ve-radius-sm);
  color: #fff;
}

#video-estimator .ve-total-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

#video-estimator .ve-total-value {
  font-size: 1.6rem;
  font-weight: 700;
}

#video-estimator .ve-cta-zone {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#video-estimator .ve-btn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: var(--ve-radius-sm);
  background: var(--ve-gray-100);
  color: var(--ve-primary);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

#video-estimator .ve-btn:hover {
  background: var(--ve-gray-200);
}

#video-estimator .ve-btn--primary {
  background: var(--ve-orange);
  color: #fff;
}

#video-estimator .ve-btn--primary:hover {
  background: #e5533f;
}

#video-estimator .ve-cta-hint {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ve-primary);
  font-weight: 500;
  padding: 10px;
  background: var(--ve-yellow-light);
  border-radius: var(--ve-radius-sm);
  border: 1px solid var(--ve-yellow-border);
}

#video-estimator .ve-disclaimer {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ve-gray-500);
}

#video-estimator .ve-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
  #video-estimator .ve-layout {
    grid-template-columns: 1fr;
  }
  
  #video-estimator .ve-aside {
    position: static;
  }
  
  #video-estimator .ve-summary {
    max-height: none;
  }
}

@media (max-width: 768px) {
  #video-estimator .ve-grid--2,
  #video-estimator .ve-grid--3 {
    grid-template-columns: 1fr;
  }
  
  #video-estimator .ve-checkboxes {
    grid-template-columns: 1fr;
  }
  
  #video-estimator .ve-accessories-grid {
    grid-template-columns: 1fr;
  }
  
  #video-estimator .ve-section {
    padding: 18px;
  }
}
