/*
 * Pricing Tool CSS File
 * Contains styles for the vehicle pricing beta feature
 */

/* Vehicle Pricing Form Styles */
.pricing-form {
    margin: 0 auto;
    max-width: 600px;
  }
  
  .pricing-form-group {
    margin-bottom: 15px;
    text-align: left;
  }
  
  .pricing-form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--gray-text);
    font-weight: 500;
    font-size: 0.9rem;
  }
  
  .pricing-form-control {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
  }
  
  /* Make dropdown text more readable */
  select.pricing-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
  }
  
  select.pricing-form-control option {
    background-color: #1b1b1b;
    color: white;
  }
  
  .pricing-form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.25);
  }
  
  .pricing-form-row {
    display: flex;
    gap: 15px;
  }
  
  .pricing-form-col {
    flex: 1;
  }
  
  .pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(to right, var(--gold), var(--dark-gold));
    color: black;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
  }
  
  .pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  }
  
  /* Results Styles */
  .pricing-results {
    display: none;
    margin-top: 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  .pricing-results.show {
    display: block;
    opacity: 1;
  }
  
  .vehicle-info-header {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), transparent);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: left;
  }
  
  .vehicle-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
  }
  
  .vehicle-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--gray-text);
  }
  
  .vehicle-detail {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .vehicle-detail i {
    color: var(--gold);
  }
  
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .pricing-card-header {
    background: rgba(255, 215, 0, 0.1);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  }
  
  .pricing-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .pricing-card-body {
    padding: 15px;
  }
  
  .price-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .price-item:last-child {
    border-bottom: none;
  }
  
  .price-label {
    color: var(--gray-text);
    font-size: 0.9rem;
  }
  
  .price-value {
    font-weight: 600;
    font-size: 0.95rem;
  }
  
  .price-value.positive {
    color: #2ecc71;
  }
  
  .price-value.negative {
    color: #e74c3c;
  }
  
  .price-highlight {
    margin: 15px -15px 10px;
    padding: 12px 15px;
    background: rgba(255, 215, 0, 0.1);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  }
  
  .price-final {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
  }
  
  /* Chart Styles - Completely Revamped */
  .chart-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 20px 20px 40px;
    margin-bottom: 30px;
    position: relative;
  }
  
  .chart-title {
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Completely revamped chart layout */
  .bar-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .chart-row {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .chart-label {
    width: 120px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--gray-text);
  }
  
  .chart-bar-container {
    flex: 1;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }
  
  .chart-bar {
    height: 100%;
    width: 0%;
    transition: width 1.5s ease;
  }
  
  .your-vehicle-bar {
    background: linear-gradient(to right, rgba(46, 204, 113, 0.7), rgba(46, 204, 113, 1));
  }
  
  .market-bar {
    background: linear-gradient(to right, rgba(255, 215, 0, 0.7), rgba(255, 215, 0, 1));
  }
  
  .chart-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  }
  
  /* Market Insights */
  .market-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .insight-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
  }
  
  .insight-title {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .insight-title i {
    color: var(--gold);
  }
  
  .insight-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
  }
  
  .insight-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-text);
  }
  
  /* Depreciation Alert */
  .depreciation-alert {
    background: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #ff9800;
    padding: 15px;
    border-radius: 4px;
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
  }
  
  .depreciation-icon {
    font-size: 1.5rem;
    color: #ff9800;
  }
  
  .depreciation-content {
    flex: 1;
  }
  
  .depreciation-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
  }
  
  .depreciation-text {
    font-size: 0.9rem;
    color: var(--gray-text);
  }
  
  /* Action Buttons */
  .pricing-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .back-to-form {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
  }
  
  .back-to-form:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  /* Loading animation for pricing */
  .pricing-loader {
    display: none;
    margin: 30px auto;
    text-align: center;
  }
  
  .pricing-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
  }
  
  .pricing-loader-text {
    color: var(--gold);
    font-size: 0.9rem;
  }
  
  /* Error message styling */
  .pricing-error {
    display: none;
    background: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
    padding: 12px 15px;
    border-radius: 4px;
    text-align: left;
    margin-bottom: 20px;
    color: #e74c3c;
  }
  
  /* Beta badge */
  .beta-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 6px;
  }
  
  /* Tabs styling */
  .tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  }
  
  .tab {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--gray-text);
    background: transparent;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
  }
  
  .tab:hover {
    color: white;
    background: rgba(255, 215, 0, 0.05);
  }
  
  .tab.active {
    color: white;
    border-bottom: 2px solid var(--gold);
    font-weight: 600;
    background: rgba(255, 215, 0, 0.15);
  }
  
  .tab-content {
    display: none;
    padding: 20px 0;
  }
  
  .tab-content.active {
    display: block;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .pricing-form-row {
      flex-direction: column;
      gap: 0;
    }
    
    .pricing-grid {
      grid-template-columns: 1fr;
    }
    
    .market-insights {
      grid-template-columns: 1fr;
    }
    
    .pricing-actions {
      flex-direction: column;
    }
  }
  
  @media (max-width: 500px) {
    .chart-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
      margin-bottom: 15px;
    }
    
    .chart-label {
      width: 100%;
      text-align: left;
    }
    
    .chart-bar-container {
      width: 100%;
    }
  }