/* Valet Deluxe Quote Modal - Dark Theme */
:root {
  --vdq-bg: #0F1114;
  --vdq-surface: #1A1D23;
  --vdq-surface-light: #252932;
  --vdq-text: #FFFFFF;
  --vdq-text-muted: #B8BCC8;
  --vdq-primary: #2F5BFF;
  --vdq-primary-hover: #1E4AE6;
  --vdq-success: #10B981;
  --vdq-warning: #F59E0B;
  --vdq-error: #EF4444;
  --vdq-whatsapp: #25D366;
  --vdq-border: #374151;
  --vdq-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --vdq-radius: 12px;
  --vdq-radius-sm: 8px;
  --vdq-transition: all 0.2s ease;
}

/* Reset and base */
.vdq-hidden { display: none !important; }

.vdq-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Backdrop */
.vdq-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vdq-root:not(.vdq-hidden) .vdq-backdrop {
  opacity: 1;
}

/* Modal container */
.vdq-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--vdq-surface);
  border-radius: var(--vdq-radius);
  box-shadow: var(--vdq-shadow);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vdq-root:not(.vdq-hidden) .vdq-modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.vdq-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--vdq-surface-light);
  border: none;
  border-radius: 50%;
  color: var(--vdq-text-muted);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: var(--vdq-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vdq-close:hover {
  background: var(--vdq-border);
  color: var(--vdq-text);
}

/* Header */
.vdq-head {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--vdq-border);
}

.vdq-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: var(--vdq-text);
}

.vdq-sub {
  margin: 0 0 20px;
  color: var(--vdq-text-muted);
  font-size: 14px;
}

/* Progress indicator */
.vdq-progress {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.vdq-progress li {
  flex: 1;
  padding: 8px 12px;
  background: var(--vdq-surface-light);
  border-radius: var(--vdq-radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--vdq-text-muted);
  text-align: center;
  transition: var(--vdq-transition);
}

.vdq-progress li.is-active {
  background: var(--vdq-primary);
  color: white;
}

/* Form container */
#vdq-form {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Steps */
.vdq-step {
  padding: 24px;
  min-height: 300px;
}

.vdq-step-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--vdq-text);
}

/* Service cards */
.vdq-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vdq-card {
  padding: 20px;
  background: var(--vdq-surface-light);
  border: 2px solid var(--vdq-border);
  border-radius: var(--vdq-radius);
  text-align: left;
  cursor: pointer;
  transition: var(--vdq-transition);
  position: relative;
}

.vdq-card:hover {
  border-color: var(--vdq-primary);
  background: var(--vdq-surface);
}

.vdq-card:focus {
  outline: none;
  border-color: var(--vdq-primary);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.1);
}

.vdq-card.is-selected {
  border-color: var(--vdq-primary);
  background: rgba(47, 91, 255, 0.05);
}

.vdq-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--vdq-text);
}

.vdq-card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--vdq-text-muted);
}

.vdq-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--vdq-primary);
}

/* Form fields */
.vdq-field {
  margin-bottom: 20px;
}

.vdq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vdq-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vdq-text);
}

.vdq-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vdq-text);
}

.vdq-field input,
.vdq-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--vdq-surface-light);
  border: 1px solid var(--vdq-border);
  border-radius: var(--vdq-radius-sm);
  color: var(--vdq-text);
  font-size: 14px;
  transition: var(--vdq-transition);
  box-sizing: border-box;
}

.vdq-field input:focus,
.vdq-field textarea:focus {
  outline: none;
  border-color: var(--vdq-primary);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.1);
}

.vdq-field input::placeholder,
.vdq-field textarea::placeholder {
  color: var(--vdq-text-muted);
}

.vdq-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* Size chips */
.vdq-chips {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.vdq-chip {
  padding: 8px 16px;
  background: var(--vdq-surface-light);
  border: 1px solid var(--vdq-border);
  border-radius: 20px;
  color: var(--vdq-text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: var(--vdq-transition);
}

.vdq-chip:hover {
  border-color: var(--vdq-primary);
  color: var(--vdq-text);
}

.vdq-chip.is-active {
  background: var(--vdq-primary);
  border-color: var(--vdq-primary);
  color: white;
}

/* Consent checkbox */
.vdq-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--vdq-text-muted);
}

.vdq-consent input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

/* Actions */
.vdq-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Buttons */
.vdq-btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--vdq-radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--vdq-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex: 1;
}

.vdq-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.1);
}

.vdq-btn:not(.vdq-btn--ghost):not(.vdq-btn--wa) {
  background: var(--vdq-primary);
  color: white;
}

.vdq-btn:not(.vdq-btn--ghost):not(.vdq-btn--wa):hover {
  background: var(--vdq-primary-hover);
}

.vdq-btn--ghost {
  background: transparent;
  color: var(--vdq-text-muted);
  border: 1px solid var(--vdq-border);
}

.vdq-btn--ghost:hover {
  background: var(--vdq-surface-light);
  color: var(--vdq-text);
}

.vdq-btn--wa {
  background: var(--vdq-whatsapp);
  color: white;
}

.vdq-btn--wa:hover {
  background: #128C7E;
}

/* Footer */
.vdq-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--vdq-border);
  background: var(--vdq-surface-light);
}

.vdq-progressbar {
  height: 4px;
  background: var(--vdq-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.vdq-progressbar span {
  display: block;
  height: 100%;
  background: var(--vdq-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 33.33%;
}

.vdq-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--vdq-text-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .vdq-modal {
    width: 95%;
    max-height: 95vh;
  }
  
  .vdq-head {
    padding: 20px 20px 16px;
  }
  
  .vdq-step {
    padding: 20px;
  }
  
  .vdq-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .vdq-actions {
    flex-direction: column;
  }
  
  .vdq-btn {
    flex: none;
  }
  
  .vdq-chips {
    flex-wrap: wrap;
  }
}

/* Focus trap */
.vdq-modal:focus-within {
  outline: none;
}

/* Success state */
.vdq-success {
  color: var(--vdq-success);
}

.vdq-error {
  color: var(--vdq-error);
}

/* Animation for step transitions */
.vdq-step {
  transition: opacity 0.2s ease;
}

.vdq-step[hidden] {
  display: none;
}
