/* Vehicle Transport Popup Styles v1.0 - AAA Move Cars */
/* Namespace: vtp- to avoid conflicts */

/* CSS Variables for easy customization */
:root {
  --vtp-primary: #F48B20;
  --vtp-secondary: #68B3C8;
  --vtp-accent: #A94442;
  --vtp-success: #68B3C8;
  --vtp-bg-dark: #1a1a1a;
  --vtp-bg-light: #ffffff;
  --vtp-text-light: #ffffff;
  --vtp-text-dark: #2c3e50;
  --vtp-border: #e1e8ed;
  --vtp-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Modal Base */
.vtp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vtp-modal.vtp-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vtp-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

/* Phone-sized modal card */
.vtp-modal-card {
  position: relative;
  background: var(--vtp-bg-light);
  border-radius: 16px;
  box-shadow: var(--vtp-shadow);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10000;
}

.vtp-phone-size {
  width: 375px;
  height: 720px;
}

/* Close button - Enhanced modern design with orange theme */
.vtp-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 2px solid rgba(255,152,0,0.2);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: #ff8f00;
  z-index: 10001;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(255,152,0,0.15);
  backdrop-filter: blur(10px);
}

.vtp-close:hover {
  background: linear-gradient(135deg, #ff8f00 0%, #f57c00 100%);
  color: white;
  border-color: rgba(255,143,0,0.4);
  box-shadow: 0 4px 18px rgba(255,143,0,0.35);
  transform: scale(1.08);
}

.vtp-close:active {
  transform: scale(0.95);
  transition: all 0.1s ease;
}

.vtp-close svg {
  transition: all 0.3s ease;
  pointer-events: none;
}

.vtp-close:hover svg {
  transform: rotate(90deg);
}

/* Add a subtle pulse animation with orange theme */
@keyframes vtp-close-pulse {
  0% { box-shadow: 0 2px 10px rgba(255,152,0,0.15); }
  50% { box-shadow: 0 2px 16px rgba(255,152,0,0.25); }
  100% { box-shadow: 0 2px 10px rgba(255,152,0,0.15); }
}

.vtp-close:focus {
  outline: none;
  animation: vtp-close-pulse 2s infinite;
}

/* Custom Alert Modal */
.vtp-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  backdrop-filter: blur(4px);
}

.vtp-alert-modal {
  background: white;
  border-radius: 12px;
  padding: 24px;
  min-width: 300px;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  text-align: center;
  animation: vtp-alert-appear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes vtp-alert-appear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.vtp-alert-message {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.5;
}

.vtp-alert-button {
  background: linear-gradient(135deg, #ff8f00 0%, #f57c00 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255,143,0,0.3);
  min-width: 80px;
}

.vtp-alert-button:hover {
  background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
  box-shadow: 0 6px 16px rgba(255,143,0,0.4);
  transform: translateY(-1px);
}

.vtp-alert-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255,143,0,0.3);
}

/* Confirm dialog specific styles */
.vtp-alert-modal .vtp-alert-message {
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #ff8f00;
}

/* Header */
.vtp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 12px;
  border-bottom: 1px solid var(--vtp-border);
  background: #98958e;
}

.vtp-modal-header h2 {
  color: var(--vtp-text-dark);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  text-align: center;
  order: 2;
  transform: translateY(2px);
  padding-right: 54px;
}

.vtp-modal-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
  order: 1;
  transform: translateY(-2px);
}

.vtp-modal-logo:hover {
  transform: scale(1.05);
}

/* Content area */
.vtp-estimator-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f8f9fa;
}

/* Three-step layout */
.vtp-three-step-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vtp-step-column {
  width: 100%;
}

.vtp-step-card {
  background: var(--vtp-bg-light);
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: visible;
  transition: all 0.3s ease;
  cursor: pointer;
  max-height: 80px;
  padding: 16px;
  position: relative;
}

.vtp-phone-size .vtp-step-card {
  border-radius: 8px;
  max-height: 75px;
  padding: 14px;
}

.vtp-phone-size .vtp-step-card.vtp-active {
  max-height: 450px;
  padding: 16px 16px 24px 16px;
}

/* Specific height for step 2 (Location Details) to accommodate the map */
#vehicleTransportStep2.vtp-active {
  max-height: 480px;
}

.vtp-phone-size #vehicleTransportStep2.vtp-active {
  max-height: 460px;
}

/* Specific height for step 3 (Your Estimate) to show the button */
.vtp-phone-size #vehicleTransportStep3.vtp-active {
  max-height: 480px;
}

.vtp-step-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--vtp-text-dark);
  margin: 0 0 8px 0;
  position: relative;
  padding-left: 32px;
}

.vtp-step-card h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #ccc;
}

.vtp-step-column:nth-child(1) .vtp-step-card h3::before { content: '1'; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: white; background: #999; }
.vtp-step-column:nth-child(2) .vtp-step-card h3::before { content: '2'; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: white; background: #999; }
.vtp-step-column:nth-child(3) .vtp-step-card h3::before { content: '3'; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: white; background: #999; }

.vtp-step-preview {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 0;
  overflow: hidden;
}

/* Enhanced location preview with mileage */
#vehicleTransportLocationPreview {
  font-weight: 500;
  color: var(--vtp-text-dark);
}

#vehicleTransportLocationPreview::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--vtp-primary);
  border-radius: 50%;
  margin: 0 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show indicator when mileage is loaded */
.vtp-step-card:not(.vtp-active) #vehicleTransportLocationPreview[data-has-mileage="true"]::after {
  opacity: 1;
}

/* Better text visibility in collapsed mobile cards */
.vtp-phone-size .vtp-step-preview {
  font-size: 13px;
  line-height: 1.3;
  max-height: 35px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vtp-step-card.vtp-active .vtp-step-preview {
  display: none;
}

/* Inactive states */
.vtp-step-card:not(.vtp-active):not(.vtp-enabled):not(#vehicleTransportStep1) {
  opacity: 0.4;
  pointer-events: none;
}

/* Step 1 is always clickable */
#vehicleTransportStep1:not(.vtp-active) {
  opacity: 0.7;
  cursor: pointer;
}

#vehicleTransportStep1:not(.vtp-active):hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244,139,32,0.2);
  border-color: var(--vtp-primary);
}

.vtp-step-card.vtp-enabled:not(.vtp-active) {
  opacity: 0.7;
  border-color: rgba(255,255,255,0.08);
}

.vtp-step-card.vtp-enabled:not(.vtp-active):hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244,139,32,0.2);
  border-color: var(--vtp-primary);
}

/* Active state */
.vtp-step-card.vtp-active {
  max-height: 460px;
  padding: 24px 24px 28px 24px;
  border-color: var(--vtp-primary);
  box-shadow: 0 8px 25px rgba(244,139,32,0.15);
  transform: translateY(-4px);
}

.vtp-step-card.vtp-active h3 {
  color: var(--vtp-primary);
  font-weight: 700;
}

.vtp-step-card.vtp-active h3::before {
  background: var(--vtp-primary);
  border-color: var(--vtp-primary);
  color: white;
}

.vtp-step-content {
  display: none;
  padding-top: 8px;
}

.vtp-step-card.vtp-active .vtp-step-content {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form elements */
.vtp-form-group {
  margin-bottom: 12px;
}

/* Reduced spacing for step 2 form groups */
#vehicleTransportStep2 .vtp-form-group {
  margin-bottom: 6px;
}

.vtp-form-group label {
  display: block;
  font-weight: 600;
  color: var(--vtp-text-dark);
  margin-bottom: 6px;
  font-size: 14px;
}

.vtp-form-group select,
.vtp-form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--vtp-border);
  border-radius: 8px;
  font-size: 16px;
  background: var(--vtp-bg-light);
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.vtp-form-group select:focus,
.vtp-form-group input:focus {
  outline: none;
  border-color: var(--vtp-primary);
  box-shadow: 0 0 0 3px rgba(244,139,32,0.1);
}

.vtp-form-group select:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Zip Code Inputs Row */
.vtp-zip-inputs-row {
  display: flex;
  gap: 8px;
}

.vtp-zip-inputs-row .vtp-form-group {
  flex: 1;
}

/* Map container */
.vtp-map-container {
  margin: 6px 0;
  padding: 6px;
  background: var(--vtp-bg-light);
  border-radius: 8px;
  border: 1px solid var(--vtp-border);
  text-align: center;
  position: relative;
}

/* Real interactive map */
.vtp-real-map {
  width: 100%;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

/* Map fallback when loading fails */
.vtp-map-fallback {
  width: 100%;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 6px;
  color: #6c757d;
}

.vtp-map-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.vtp-map-text {
  font-weight: 600;
  margin-bottom: 4px;
}

.vtp-map-subtext {
  font-size: 12px;
  opacity: 0.7;
}

/* Route information */
.vtp-route-info {
  margin-top: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid var(--vtp-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vtp-route-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--vtp-text-dark);
  gap: 15px;
}

.vtp-route-summary.vtp-loading {
  justify-content: center;
  color: var(--vtp-primary);
  font-style: italic;
}

.vtp-route-summary.vtp-error {
  justify-content: center;
  color: #dc3545;
}

.vtp-route-distance {
  font-weight: 600;
  color: var(--vtp-primary);
  white-space: nowrap;
}

.vtp-route-duration {
  color: var(--vtp-secondary);
  white-space: nowrap;
}

.vtp-route-provider {
  font-size: 12px;
  opacity: 0.7;
  text-transform: capitalize;
  text-align: right;
  white-space: nowrap;
}

/* Estimate preview */
.vtp-estimate-preview {
  margin-top: 6px;
  padding: 8px;
  background: linear-gradient(135deg, var(--vtp-primary) 0%, #e67e22 100%);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
}

/* Weather Section */
.vtp-weather-section {
  margin: 10px 0;
}

.vtp-weather-button {
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #68B3C8 0%, #5a9fb8 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.vtp-weather-button:hover {
  background: linear-gradient(135deg, #5a9fb8 0%, #68B3C8 100%);
  transform: translateY(-1px);
}

.vtp-weather-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.vtp-weather-info {
  background: var(--vtp-bg-light);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--vtp-border);
}

.vtp-weather-locations {
  display: flex;
  gap: 12px;
}

.vtp-weather-location {
  flex: 1;
  text-align: center;
}

.vtp-weather-location h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
}

.vtp-weather-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vtp-weather-icon {
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f9fa;
}

.vtp-weather-details {
  text-align: left;
}

.vtp-temperature {
  font-size: 18px;
  font-weight: 700;
  color: var(--vtp-primary);
  line-height: 1;
}

.vtp-condition {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

/* Estimate row - Compact vertical layout */
.vtp-estimate-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.vtp-estimate-row > div {
  text-align: center;
}

.vtp-estimate-row strong {
  display: block;
  color: var(--vtp-text-dark);
  font-size: 12px;
  margin-bottom: 2px;
  line-height: 1.2;
}

.vtp-estimate-row div div {
  font-size: 15px;
  font-weight: 600;
  color: var(--vtp-primary);
  line-height: 1.2;
}

/* Slider styling */
.vtp-slider-row {
  margin: 16px 0;
}

input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #A94442 0%, #F48B20 50%, #68B3C8 100%);
  outline: none;
  transition: all 0.3s ease;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vtp-primary);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  margin-top: -6px;
}

input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vtp-primary);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  -moz-appearance: none;
}

/* Dynamic slider colors */
input[type=range].vtp-super-economy {
  background: linear-gradient(90deg, #8B0000 0%, #A94442 100%);
}

input[type=range].vtp-super-economy::-webkit-slider-thumb {
  background: #8B0000;
  box-shadow: 0 0 10px rgba(139,0,0,0.5);
}

input[type=range].vtp-super-economy::-moz-range-thumb {
  background: #8B0000;
  box-shadow: 0 0 10px rgba(139,0,0,0.5);
}

input[type=range].vtp-economy {
  background: linear-gradient(90deg, #A94442 0%, #A94442 50%, #F48B20 100%);
}

input[type=range].vtp-economy::-webkit-slider-thumb {
  background: #A94442;
  box-shadow: 0 0 10px rgba(169,68,66,0.5);
}

input[type=range].vtp-economy::-moz-range-thumb {
  background: #A94442;
  box-shadow: 0 0 10px rgba(169,68,66,0.5);
}

input[type=range].vtp-priority {
  background: linear-gradient(90deg, #F48B20 0%, #68B3C8 50%, #68B3C8 100%);
}

input[type=range].vtp-priority::-webkit-slider-thumb {
  background: #68B3C8;
  box-shadow: 0 0 10px rgba(104,179,200,0.5);
}

input[type=range].vtp-priority::-moz-range-thumb {
  background: #68B3C8;
  box-shadow: 0 0 10px rgba(104,179,200,0.5);
}

input[type=range].vtp-super-priority {
  background: linear-gradient(90deg, #68B3C8 0%, #228B22 100%);
}

input[type=range].vtp-super-priority::-webkit-slider-thumb {
  background: #228B22;
  box-shadow: 0 0 10px rgba(34,139,34,0.5);
}

input[type=range].vtp-super-priority::-moz-range-thumb {
  background: #228B22;
  box-shadow: 0 0 10px rgba(34,139,34,0.5);
}

.vtp-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

/* Final cost display */
.vtp-final-cost {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 12px;
  color: white;
  margin-bottom: 16px;
}

.vtp-final-cost > div:first-child span {
  display: block;
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.vtp-final-cost > div:first-child div {
  font-size: 24px;
  font-weight: 700;
  color: var(--vtp-primary);
}

.vtp-satisfaction {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vtp-satisfaction img {
  width: 32px;
  height: 32px;
}

.vtp-satisfaction div {
  font-size: 12px;
  opacity: 0.9;
}

/* CTA Button */
.vtp-cta-button {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--vtp-primary) 0%, #e67e22 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vtp-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244,139,32,0.3);
  background: linear-gradient(135deg, #e67e22 0%, var(--vtp-primary) 100%);
}

.vtp-cta-button:active {
  transform: translateY(0);
}

/* Responsive design */
@media (max-width: 480px) {
  .vtp-phone-size {
    width: 95vw;
    height: 95vh;
    max-width: 375px;
    max-height: 750px;
  }
  
  .vtp-phone-size .vtp-step-card {
    border-radius: 8px;
    max-height: 50px;
    padding: 10px;
  }
  
  .vtp-phone-size .vtp-step-card.vtp-active {
    max-height: 320px;
    padding: 16px;
  }
  
  .vtp-phone-size .vtp-step-card h3 {
    font-size: 14px;
  }
  
  .vtp-phone-size .vtp-step-card.vtp-active h3 {
    font-size: 16px;
  }
}

/* Map container styling */
.vtp-map-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  background: #f8f9fa;
}

.vtp-map-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid var(--vtp-primary);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0.3;
}

/* Map loading state */
.vtp-map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: #f8f9fa;
  color: var(--vtp-primary);
  font-size: 16px;
  font-weight: 500;
}

.vtp-map-loading::before {
  content: '🗺️';
  margin-right: 10px;
  font-size: 24px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Google Maps overrides */
.vtp-map-container .gm-style-iw {
  max-width: 200px;
}

.vtp-map-container .gm-style-iw-c {
  border-radius: 8px;
}

/* Leaflet map overrides */
.vtp-map-container .leaflet-popup-content-wrapper {
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.vtp-map-container .leaflet-popup-tip {
  background: white;
}

/* Pricing Breakdown Styles */
.vtp-pricing-breakdown {
  margin-top: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--vtp-primary);
}

.vtp-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.vtp-breakdown-toggle {
  background: var(--vtp-primary);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.vtp-breakdown-toggle:hover {
  background: #e67e22;
}

.vtp-breakdown-details {
  font-size: 13px;
  line-height: 1.4;
  display: none; /* Hidden by default */
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  background: white;
  border: 3px solid var(--vtp-primary);
  border-radius: 8px;
  padding: 15px;
  margin: 10px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
}

.vtp-breakdown-close {
  position: absolute;
  top: 5px;
  right: 8px;
  background: var(--vtp-primary);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: white;
  font-weight: bold;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.vtp-breakdown-close:hover {
  background: var(--vtp-accent);
  transform: scale(1.1);
}

.vtp-breakdown-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--vtp-primary);
}

.vtp-breakdown-hide {
  background: var(--vtp-secondary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
}

.vtp-breakdown-hide:hover {
  background: var(--vtp-primary);
}

.vtp-breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid #e9ecef;
}

.vtp-breakdown-item:last-child {
  border-bottom: none;
  font-weight: 600;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--vtp-primary);
  color: var(--vtp-primary);
}

.vtp-breakdown-range {
  color: #6c757d;
  font-size: 12px;
}

.vtp-breakdown-cost {
  font-weight: 500;
}

/* Price estimation indicator - now in step 2 */
.vtp-price-estimating {
  display: none !important; /* Force hide by default */
  text-align: center;
  padding: 6px;
  background: #2c3e50;
  border-radius: 6px;
  margin: 5px 0;
  border: 2px solid #34495e;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
  position: relative;
  z-index: 10;
  color: #ecf0f1;
}

.vtp-price-estimating[style*="block"] {
  display: block !important; /* Force show when needed */
}

.vtp-truck-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 4px;
  animation: truck-move 2s linear infinite;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.1));
}

.vtp-estimating-text {
  color: #ecf0f1;
  font-weight: 700;
  font-size: 12px;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.4);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(23, 162, 184, 0);
  }
}

@keyframes truck-move {
  0%, 100% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
}