/* declare our custom property so the browser can animate it */
@property --a {
    syntax: "<angle>";
    inherits: false;
    initial-value: 90deg;
}

/* ========================================
   BAS World Vehicle Seller Form Styles
   ======================================== */

.bas-world-form-container-wrapper {
    /* background-color: #0f62fe; */
    background-color: #1da15e;
    margin: 5px 25px 25px 25px;
    border-radius: 20px;
}

.bas-world-form-container {
    max-width: 1280px;
    margin: auto;
    padding: 20px 20px;
}

/* ========================================
   Two Column Homepage Layout
   ======================================== */

.homepage-two-column {
    display: flex;
    flex-direction: row-reverse; /* Swap columns: form left, text right */
    gap: 40px;
    align-items: flex-start;
}

/* Left Column: Hero Text */
.homepage-hero-text {
    flex: 0 0 40%; /* Fixed width 400px, don't grow or shrink */
    padding: 40px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0 0 30px 0;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #ffffff;
    color: #1da15e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.feature-text {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Right Column: Form */
.homepage-form-column {
    flex: 1; /* Take remaining space */
    min-width: 0; /* Allow flexbox to shrink */
}

/* Responsive Two Column Layout */
@media (max-width: 1024px) {
    .homepage-two-column {
        flex-direction: column;
        gap: 30px;
    }
    
    .homepage-hero-text {
        flex: 1 1 auto;
        text-align: center;
        padding: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-features {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-text {
        font-size: 1rem;
    }
}

@property --a{
    syntax: '<angle>';
    inherits: false;
    initial-value: 90deg;
  }

/* ========================================
   Progress Indicator
   ======================================== */

.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

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

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.progress-step.active .progress-circle {
    background: #4CAF50;
    color: white;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.progress-step.completed .progress-circle {
    background: #4CAF50;
    color: white;
}

.progress-label {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .progress-label {
    color: #4CAF50;
    font-weight: 600;
}

.progress-line {
    width: 100px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px 30px;
}

.progress-step.active ~ .progress-line,
.progress-step.completed ~ .progress-line {
    background: #4CAF50;
}

/* ========================================
   Form Steps
   ======================================== */

.form-step {
    animation: fadeInStep 0.5s ease-in;
}

.form-step.hidden {
    display: none;
}

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

.bas-world-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

.bas-world-form-subtitle {
    font-size: 1.125rem;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.bas-world-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* Form Sections */
.form-section {
    margin-bottom: 5px;
    animation: fadeIn 0.4s ease-in;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section + .form-section {
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

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

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1a;
    margin-bottom: 15px;
}

.image-counter {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-left: 10px;
}

.image-counter.warning {
    background: #fff3cd;
    color: #856404;
}

.image-counter.maxed {
    background: #f8d7da;
    color: #721c24;
}

.section-hint {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    display: none;
    line-height: 1.6;
}

.section-hint.show {
    display: block;
}

.vehicle-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.vehicle-type-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-type-card:hover {
    border-color: #4CAF50;
    background: #f5fdf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.vehicle-type-card.selected {
    border-color: #4CAF50;
    background: #e8f5e9;
}

/* Icon styling now handled by bas-world-icons.css */

.vehicle-type-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1a;
    margin: 0;
}

/* Step 2: Image Upload */
.upload-area-wrapper {
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #c0c0c0;
    border-radius: 8px;
    padding: 15px 0px 0px 0px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #4CAF50;
    background: #f5fdf6;
}

.upload-area.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.upload-area.disabled:hover {
    border-color: #c0c0c0;
    background: #fafafa;
}

.upload-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 0.875rem;
    color: #999;
}

.upload-tip {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 20px;
}

#imageInput {
    display: none;
}

/* Uploaded Images Preview */
.uploaded-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f0f0f0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #d32f2f;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background: #d32f2f;
    color: white;
}

/* OpenAI Analysis Display */
.openai-analysis {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.openai-analysis h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1a;
    margin-bottom: 10px;
}

.openai-analysis pre {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-primary:disabled {
    background: #d0d0d0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Disabled form fields */
.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-full {
    width: 100%;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Messages */
.form-message {
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.5;
    border: 2px solid;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border-color: #4CAF50;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #d32f2f;
}

.form-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

/* ========================================
   AI Loading Animation - White Box with Glow
   ======================================== */

   .rainbow-border-step {
    position: relative;
   }

   .rainbow-border {
    /* give border & glow the same gradient & animation */
    /* the gradient border */
    /* the "glow" */
  }
  .rainbow-border::before, .rainbow-border::after {
    content: "";
    display: block;
    position: absolute;
    inset: -0.25rem;
    border-radius: 1.1rem;
    --a: 0deg;
    background-image: conic-gradient(from var(--a) at 50% 50% in oklch longer hue, oklch(70% 0.3 0) 0%, oklch(70% 0.3 0) 100%);
    animation: animatedBgAngle 5s linear;
    animation-iteration-count: infinite;
  }
  .rainbow-border::before {
    z-index: -1;
  }
  .rainbow-border::after {
    z-index: -2;
    filter: blur(25px);
    opacity: 0.35;
  }
  
  /*
  vivid color gradient in oklab color space
  for modern browsers
  */
  @supports not (background-image: conic-gradient(from 0deg at 50% 50% in oklch longer hue, oklch(70% 0.3 0) 0%, oklch(70% 0.3 0) 100%)) {
    .rainbow-border::before, .rainbow-border::after {
      /* fallback gradient for very old browsers */
      background-image: linear-gradient(var(--a), red 0%, #ff9a00 10%, #d0de21 20%, #4fdc4a 30%, #3fdad8 40%, #2fc9e2 50%, #1c7fee 60%, #5f15f2 70%, #ba0cf8 80%, #fb07d9 90%, red 100%);
      /* fallback gradient for older browsers */
      background-image: conic-gradient(from var(--a) at 50% 50%, red 0%, #ff9a00 10%, #d0de21 20%, #4fdc4a 30%, #3fdad8 40%, #2fc9e2 50%, #1c7fee 60%, #5f15f2 70%, #ba0cf8 80%, #fb07d9 90%, red 100%);
    }
  }

/*
we can animate our custom property because we specified
its type at the top with the @property syntax 
*/
@keyframes animatedBgAngle {
    from {
      --a:0deg;
    }
    to {
      --a:360deg;
    }
  }



/* Image Deck Slideshow - Optimized for 60fps smooth animation */
.ai-image-deck {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 250px;
    margin: 0 auto 40px;
    perspective: 1200px;
    /* Enable GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.ai-deck-image {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    
    /* GPU-accelerated properties only */
    transform: translateX(-50%) translateZ(0);
    opacity: 0;
    
    /* Optimize for animations */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    
    /* Smooth animation */
    animation: deckSlide 3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.ai-deck-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevent image flickering */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Staggered animation delays for smooth transitions */
.ai-deck-image:nth-child(1) {
    animation-delay: 0s;
    z-index: 10;
}

.ai-deck-image:nth-child(2) {
    animation-delay: 2s;
    z-index: 9;
}

.ai-deck-image:nth-child(3) {
    animation-delay: 4s;
    z-index: 8;
}

.ai-deck-image:nth-child(4) {
    animation-delay: 6s;
    z-index: 7;
}

.ai-deck-image:nth-child(5) {
    animation-delay: 8;
    z-index: 6;
}

.ai-deck-image:nth-child(6) {
    animation-delay: 10s;
    z-index: 5;
}

.ai-deck-image:nth-child(7) {
    animation-delay: 12s;
    z-index: 4;
}

.ai-deck-image:nth-child(8) {
    animation-delay: 14s;
    z-index: 3;
}

.ai-deck-image:nth-child(9) {
    animation-delay: 16s;
    z-index: 2;
}

.ai-deck-image:nth-child(10) {
    animation-delay: 18s;
    z-index: 1;
}

/* Ultra-smooth slide animation with GPU acceleration */
@keyframes deckSlide {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.ai-loading-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1d1d1a;
    margin-bottom: 12px;
    text-align: center;
}

.ai-loading-subtitle {
    font-size: 1.125rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.ai-loading-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ai-loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f62fe 0%, #0f62fe 100%);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.ai-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ========================================
   AI Email Section (shown during analysis)
   ======================================== */

.ai-email-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.ai-email-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.ai-email-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 30px;
}

.ai-email-section .form-field {
    max-width: 500px;
    margin: 0 auto 20px;
    text-align: left;
}

.ai-email-section .form-field label {
    text-align: left;
}

.ai-email-section .form-field input {
    width: 100%;
}

.ai-status-message {
    margin-top: 5px;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ai-status-message .status-icon {
    font-size: 1.25rem;
    display: inline-block;
}

.ai-status-message.success {
    color: #4CAF50;
}

.ai-status-message.success .status-icon {
    color: #4CAF50;
}

.ai-status-message.warning {
    color: #ff9800;
}

.ai-status-message.warning .status-icon {
    color: #ff9800;
}

.ai-status-message.error {
    color: #f44336;
}

.ai-status-message.error .status-icon {
    color: #f44336;
}

/* ========================================
   Form Fields
   ======================================== */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-weight: 600;
    color: #1d1d1a;
    margin-bottom: 10px;
    font-size: 1rem;
    display: block;
}

.form-field label .required {
    color: #d32f2f;
    margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 14px 18px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 1.0625rem;
    font-family: inherit; /* Inherits Titillium Web from body */
    font-weight: 400;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: #fafafa;
    width: 100%;
    color: #1d1d1a;
    box-sizing: border-box;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    background: #fff;
    border-color: #b0b0b0;
}

.form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 22px;
    padding-right: 50px;
    cursor: pointer;
}

.form-field select option {
    padding: 12px;
    background: white;
    color: #1d1d1a;
    font-size: 1rem;
}

.form-field select option:first-child {
    color: #757575;
}

.form-field select:invalid {
    color: #757575;
}

.form-field select:valid {
    color: #1d1d1a;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

/* Error/Invalid field styling */
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
    border-color: #d32f2f;
    background: #fff5f5;
}

.form-field.invalid input:focus,
.form-field.invalid select:focus,
.form-field.invalid textarea:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.form-field .field-error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 6px;
    display: none;
}

.form-field.invalid .field-error-message {
    display: block;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* Specifieke styling voor date inputs */
.form-field input[type="date"] {
    position: relative;
    font-family: inherit;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Specifieke styling voor number inputs */
.form-field input[type="number"] {
    -moz-appearance: textfield;
}

.form-field input[type="number"]::-webkit-inner-spin-button,
.form-field input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-with-unit {
    position: relative;
}

.input-with-unit input {
    padding-right: 60px;
}

.input-unit {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #1d1d1a;
    font-weight: 600;
    font-size: 1rem;
    pointer-events: none;
    background: transparent;
}

/* Form Actions */
.form-actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    font-size: 1.125rem;
    padding: 16px 40px;
}

/* ========================================
   Estimated Price Section
   ======================================== */

.estimated-price-section {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    text-align: center;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#resultPage .estimated-price-section {
    margin-top: 0;
    margin-bottom: 30px;
}

.estimated-price-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1a;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estimated-price-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 4rem;
    font-weight: 800;
    color: #000000;
    line-height: 1;
}

.price-currency {
    font-size: 3rem;
    font-weight: 700;
}

.price-amount {
    position: relative;
}

.price-amount.blurred {
    color: transparent;
    text-shadow: 0 0 25px rgba(15, 98, 254, 0.8);
    user-select: none;
    filter: blur(12px);
    -webkit-filter: blur(12px);
    cursor: not-allowed;
    animation: priceGenerating 2s ease-in-out infinite;
    position: relative;
}

.price-amount.blurred::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -100%;
    width: 100%;
    height: 120%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes priceGenerating {
    0%, 100% {
        text-shadow: 0 0 25px rgba(15, 98, 254, 0.8);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 35px rgba(15, 98, 254, 1), 0 0 15px rgba(15, 98, 254, 0.6);
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.estimated-price-hint {
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.show-more-link {
    color: #155724;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.show-more-link:hover {
    color: #157e2e;
    text-decoration: underline;
    transform: translateX(3px);
}

/* ========================================
   Additional Details Section
   ======================================== */

.additional-details-section {
    margin-top: 30px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.additional-details-section.hidden {
    display: none;
}

.additional-details-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d1d1a;
    margin-bottom: 8px;
}

.additional-details-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .bas-world-form {
        padding: 30px 20px;
    }

    .bas-world-form-title {
        font-size: 2rem;
    }

    .vehicle-types-grid {
        grid-template-columns: 1fr 1fr;
    }

    .uploaded-images {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .form-section {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.05rem;
    }
    
    .form-progress {
        flex-wrap: wrap;
    }
    
    .progress-line {
        width: 60px;
    }
    
    .progress-label {
        font-size: 0.75rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-image-deck {
        height: 280px;
        max-width: 100%;
    }
    
    .ai-loading-container {
        padding: 40px 20px;
    }
    
    .ai-loading-title {
        font-size: 1.5rem;
    }
    
    .ai-loading-subtitle {
        font-size: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .estimated-price-section {
        margin-top: 40px;
        padding: 30px 20px;
    }
    
    .estimated-price-title {
        font-size: 1.25rem;
    }
    
    .estimated-price-value {
        font-size: 3rem;
    }
    
    .price-currency {
        font-size: 2rem;
    }
    
    .estimated-price-hint {
        font-size: 0.9rem;
    }
    
    .additional-details-section {
        margin-top: 20px;
        padding: 20px;
    }
    
    .additional-details-title {
        font-size: 1.1rem;
    }
    
    .additional-details-subtitle {
        font-size: 0.875rem;
    }
}

/* ========================================
   Why Sell with BAS World Section
   ======================================== */

.why-sell-section {
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 40px;
}

.why-sell-container {
    text-align: center;
}

.why-sell-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.why-sell-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin: 0 0 50px 0;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
}

.step-card {
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 0;
    text-align: left;
    transition: none;
    overflow: visible;
    position: relative;
}

.step-card:hover {
    transform: none;
    box-shadow: none;
}

.step-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #e0e0e0;
    margin-bottom: 20px;
    border-radius: 16px;
    position: relative;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.step-badge {
    position: static;
    width: 45px;
    height: 45px;
    background: #0f62fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}

.step-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1d1d1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.step-description {
    font-size: 1rem;
    color: #6b6b6b;
    line-height: 1.6;
    margin: 0;
}

/* Legacy class names for backwards compatibility */
.step-number {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1d1d1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* How It Works Section */
.how-it-works-section {
    /* max-width: 1280px; */
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 60px 40px;
    margin: 5px 25px 25px 25px;
}

.how-it-works-container {
    text-align: center;
    max-width: 1280px;
    margin: 0 auto;
}

.how-it-works-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.how-it-works-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin: 0 0 50px 0;
    line-height: 1.6;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 auto;
}

.how-it-works-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: left;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.how-it-works-card:hover {
    border-color: #4CAF50;
    background: #f5fdf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.how-it-works-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e0e0e0;
    margin-bottom: 20px;
    border-radius: 8px;
}

.how-it-works-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.how-it-works-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1d1d1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.how-it-works-number {
    display: inline-block;
    color: #1d1d1a;
    font-weight: 700;
}

.how-it-works-description {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Trustpilot Section */
.trustpilot-section {
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 40px;
    background: #ffffff;
    border-radius: 12px;
    padding: 60px 40px;
}

.trustpilot-container {
    text-align: center;
}

.trustpilot-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.trustpilot-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.trustpilot-widget {
    margin: 0 auto;
}

/* FAQ Section */
.faq-section {
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 40px;
    background: #ffffff;
    border-radius: 12px;
    padding: 60px 40px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-align: center;
}

.faq-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin: 0 0 50px 0;
    line-height: 1.6;
    text-align: center;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item.active {
    background: #ffffff;
    border-color: #0f62fe;
    box-shadow: 0 4px 12px rgba(15, 98, 254, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-family: 'Titillium Web', sans-serif;
}

.faq-question:hover {
    background: rgba(15, 98, 254, 0.05);
}

.faq-item.active .faq-question {
    background: none;
}

.faq-question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1a;
    line-height: 1.5;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #0f62fe;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer-content {
    padding: 0 24px 24px 24px;
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-answer-content p {
    margin: 0 0 10px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Steps */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-sell-title {
        font-size: 2rem;
    }
    
    .why-sell-subtitle {
        font-size: 1.125rem;
    }
    
    .step-image {
        height: 280px;
    }
    
    .how-it-works-section {
        padding: 30px 30px;
    }
    
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .how-it-works-title {
        font-size: 2rem;
    }
    
    .how-it-works-subtitle {
        font-size: 1.125rem;
    }
    
    .how-it-works-image {
        height: 180px;
    }
    
    .trustpilot-section {
        padding: 50px 30px;
    }
    
    .trustpilot-title {
        font-size: 2rem;
    }
    
    .trustpilot-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .why-sell-section {
        margin: 40px auto;
        padding: 0 25px;
    }
    
    .why-sell-title {
        font-size: 1.75rem;
    }
    
    .why-sell-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .steps-grid {
        gap: 35px;
    }
    
    .step-image {
        height: 240px;
        border-radius: 12px;
    }
    
    .step-image img {
        border-radius: 12px;
    }
    
    .step-badge {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .step-number {
        font-size: 1.25rem;
    }
    
    .step-description {
        font-size: 0.9375rem;
    }
    
    .how-it-works-section {
        margin: 40px auto;
        padding: 25px 25px;
        border-radius: 8px;
    } 
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .how-it-works-title {
        font-size: 1.75rem;
    }
    
    .how-it-works-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .how-it-works-card {
        padding: 25px 20px;
    }
    
    .how-it-works-image {
        height: 180px;
    }
    
    .how-it-works-step-title {
        font-size: 1rem;
    }
    
    .how-it-works-description {
        font-size: 0.875rem;
    }
    
    .trustpilot-section {
        margin: 40px auto;
        padding: 40px 25px;
    }
    
    .trustpilot-title {
        font-size: 1.75rem;
    }
    
    .trustpilot-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .faq-section {
        margin: 40px auto;
        padding: 40px 25px;
    }
    
    .faq-title {
        font-size: 1.75rem;
    }
    
    .faq-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .faq-item {
        margin-bottom: 12px;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 16px 20px;
    }
}

