/* Vehicle Request Form (scoped) */

/* Animations */
@keyframes vform-slideIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vform-fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes vform-scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Scope & Base */
.vform, .vform * { box-sizing: border-box; }
.vform { overflow-x: hidden; color: var(--text); font-family: 'NeueMontreal', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
.vform button { font-family: inherit; }

/* Card */
.vform .form-card {
  background: linear-gradient(135deg, rgba(40,40,40,0.8) 0%, rgba(20,20,20,0.9) 50%, rgba(0,0,0,0.95) 100%);
  background-image: 
    repeating-linear-gradient(to right, rgba(255,255,255,0.02) 0 1px, rgba(255,255,255,0) 1px 120px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.01) 0 1px, rgba(255,255,255,0) 1px 200px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  padding: 40px;
  margin: 8px auto;
  animation: vform-slideIn 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

/* Add the same subtle effects as scan-card */
.vform .form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 280px at 0% 0%, rgba(255,255,255,0.05), rgba(255,255,255,0) 60%),
    radial-gradient(800px 280px at 100% 100%, rgba(255,255,255,0.05), rgba(255,255,255,0) 60%);
  pointer-events: none;
  z-index: 1;
}

.vform .form-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 1;
}

/* Ensure form content is above the overlay effects */
.vform .form-card > * {
  position: relative;
  z-index: 2;
}

/* Headings */
.vform h1 { color: var(--text); margin-bottom: 10px; font-size: 28px; text-align: center; }
.vform .subtitle { text-align: center; color: var(--muted); margin-bottom: 30px; font-size: 14px; }

/* Fields */
.vform .form-group { margin-bottom: 25px; }
.vform label { display: block; margin-bottom: 8px; color: var(--text); font-weight: 600; font-size: 14px; }
.vform input[type="text"],
.vform textarea { width: 100%; background: #0d0d0d; border: 1px solid var(--border); color: var(--text); padding: 12px 14px; border-radius: 10px; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; font-family: inherit; }
.vform input[type="text"]:focus,
.vform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(209,176,107,0.2); }
.vform textarea { resize: vertical; min-height: 100px; }

/* Slider - Compact input-like design */
.vform .slider-container { 
  position: relative;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.vform .slider-container:hover { border-color: var(--accent); }
.vform .slider-container:focus-within { 
  border-color: var(--accent); 
  box-shadow: 0 0 0 3px rgba(209,176,107,0.2); 
}
.vform .slider-value { 
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-weight: 500;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  user-select: none;
  pointer-events: none;
  z-index: 10;
}

.vform .slider-value::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.vform .slider-container:hover .slider-value,
.vform .slider-container:focus-within .slider-value,
.vform .slider-container.active .slider-value {
  opacity: 1;
  visibility: visible;
}
.vform input[type="range"] { 
  width: 100%; 
  height: 6px; 
  border-radius: 3px; 
  background: var(--border); 
  outline: none; 
  appearance: none; 
  -webkit-appearance: none;
  cursor: pointer;
}
.vform input[type="range"]::-webkit-slider-thumb { 
  appearance: none; 
  -webkit-appearance: none; 
  width: 18px; 
  height: 18px; 
  border-radius: 50%; 
  background: var(--accent); 
  cursor: pointer; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.3); 
  transition: all .3s ease; 
}
.vform input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.vform input[type="range"]::-moz-range-thumb { 
  width: 18px; 
  height: 18px; 
  border-radius: 50%; 
  background: var(--accent); 
  cursor: pointer; 
  border: none; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.3); 
}

/* Picker input */
.vform .picker-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: all .3s ease; background: #0d0d0d; }
.vform .picker-input:hover { border-color: var(--accent); }
.vform .picker-input.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(209,176,107,0.2); }
.vform .picker-input svg { width: 20px; height: 20px; color: var(--muted); }
.vform .picker-input span { flex: 1; color: var(--text); }
.vform .picker-input span.placeholder { color: var(--muted); }

/* Picker modal */
.vform .picker-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 10000; justify-content: center; align-items: center; animation: vform-fadeIn .3s ease; }
.vform .picker-modal.active { display: flex; }
.vform .picker-content { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 15px; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); max-width: min(420px, 92vw); width: 100%; animation: vform-scaleIn .3s ease; }
.vform .picker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.vform .picker-header h3 { color: var(--text); font-size: 20px; }
.vform .close-btn { background: none; border: none; font-size: 28px; color: var(--muted); cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all .3s ease; }
.vform .close-btn:hover { background: var(--border); color: var(--text); }

/* Calendar */
.vform .calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.vform .calendar-nav button { background: var(--border); color: var(--text); border: none; padding: 8px 15px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all .3s ease; }
.vform .calendar-nav button:hover { background: var(--accent); color: #1a1a1a; transform: translateY(-2px); }
.vform .calendar-nav span { font-weight: 600; color: var(--text); font-size: 16px; }
.vform .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; width: 100%; }
.vform .calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; transition: all .3s ease; font-size: 14px; font-weight: 500; min-width: 36px; min-height: 36px; }
.vform .calendar-day.header { aspect-ratio: auto; min-height: auto; padding: 6px 0; color: var(--muted); font-weight: 700; cursor: default; }
.vform .calendar-day.empty { cursor: default; }
.vform .calendar-day.selectable { color: var(--text); background: var(--border); }
.vform .calendar-day.selectable:hover { background: var(--accent); color: #1a1a1a; transform: scale(1.1); }
.vform .calendar-day.selected { background: var(--accent); color: #1a1a1a; }
.vform .calendar-day.today { border: 2px solid var(--accent); }

/* Time picker */
.vform .time-picker-grid { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.vform .time-column { text-align: center; }
.vform .time-column label { display: block; margin-bottom: 10px; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.vform .time-selector { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vform .time-selector button { background: var(--border); color: var(--text); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: all .3s ease; display: flex; align-items: center; justify-content: center; }
.vform .time-selector button:hover { background: var(--accent); color: #1a1a1a; transform: scale(1.1); }
.vform .time-display { background: #0d0d0d; border: 1px solid var(--border); border-radius: 10px; padding: 15px 20px; font-size: 24px; font-weight: 700; color: var(--text); min-width: 70px; text-align: center; }
.vform .time-period { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.vform .period-btn { padding: 10px 25px; border: 1px solid var(--border); background: var(--bg-soft); border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted); transition: all .3s ease; }
.vform .period-btn.active { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }
.vform .period-btn:hover:not(.active) { border-color: var(--accent); }
.vform .confirm-btn { width: 100%; padding: 12px; background: var(--accent); color: #1a1a1a; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all .3s ease; }
.vform .confirm-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(209,176,107,0.2); }

/* Submit */
.vform .submit-btn { width: 100%; padding: 15px; background: var(--accent); color: #1a1a1a; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all .3s ease; margin-top: 10px; text-transform: uppercase; letter-spacing: 1px; }
.vform .submit-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(209,176,107,0.2); }
.vform .submit-btn:active { transform: translateY(-1px); }

/* Grid */
.vform .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) {
  .vform .form-card { padding: 25px; }
  .vform .form-row { grid-template-columns: 1fr; gap: 25px; }
  .vform h1 { font-size: 24px; }
}

/* Success */
.vform .success-message { display: none; background: var(--border); color: var(--text); padding: 15px; border-radius: 10px; margin-bottom: 20px; text-align: center; animation: vform-slideIn .5s ease; }
.vform .success-message.show { display: block; }

/* Progress */
.vform .progress-container { margin-bottom: 30px; }
.vform .progress-steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 30px; }
.vform .progress-steps::before { content: ''; position: absolute; top: 20px; left: 25%; width: 50%; height: 3px; background: var(--border); z-index: 0; }
.vform .progress-step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; flex: 1; }
.vform .step-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; margin-bottom: 8px; transition: all .3s ease; }
.vform .progress-step.active .step-circle { background: var(--accent); color: #1a1a1a; }
.vform .progress-step.completed .step-circle { background: var(--accent); color: #1a1a1a; }
.vform .step-label { font-size: 12px; color: var(--muted); font-weight: 600; text-align: center; }
.vform .progress-step.active .step-label { color: var(--text); }
.vform .progress-line { position: absolute; top: 20px; left: 25%; width: 0%; height: 3px; background: var(--accent); z-index: 0; transition: width .3s ease; }
.vform .progress-line.step-2 { width: 50%; }

/* Form steps */
.vform .form-step { display: none; }
.vform .form-step.active { display: block; animation: vform-fadeIn .5s ease; }
.vform .form-navigation { display: flex; gap: 15px; margin-top: 20px; }
.vform .nav-btn { flex: 1; padding: 12px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all .3s ease; }
.vform .nav-btn:hover { background: var(--border); }
.vform .nav-btn.next-btn, .vform .nav-btn.submit-btn-step { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }
.vform .nav-btn.next-btn:hover, .vform .nav-btn.submit-btn-step:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(209,176,107,0.2); }

/* Logo */
.vform .logo-container { text-align: center; margin-bottom: 20px; place-items: center; }
.vform .logo-image { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #333; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform .3s ease; }
.vform .logo-image:hover { transform: scale(1.05); }

/* Vehicle Method Modal */
.vehicle-method-modal {
  display: none;
  padding: 20px;
}

.vehicle-method-card {
  padding: 20px;
  text-align: center;
}

.vehicle-method-card p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.vehicle-method-modal .contact-method-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vehicle-method-modal .contact-method-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.vehicle-method-modal .contact-method-btn:hover {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.vehicle-method-modal .contact-method-btn .method-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vehicle-method-modal .whatsapp-btn .method-icon {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
}

.vehicle-method-modal .email-btn .method-icon {
  background: linear-gradient(135deg, #1f1f1f, #151515);
  border: 1px solid var(--border);
  color: var(--text);
}

.vehicle-method-modal .contact-method-btn .method-text h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}

.vehicle-method-modal .contact-method-btn .method-text p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .vform .progress-steps::before { left: 20%; width: 60%; }
  .vform .step-label { font-size: 10px; }
  .vform .step-circle { width: 35px; height: 35px; font-size: 16px; }
  .vform .logo-image { width: 100px; height: 100px; }
  
  .vehicle-method-card {
    padding: 20px 15px;
  }
  
  .vehicle-method-modal .contact-method-btn {
    padding: 16px;
    gap: 16px;
  }
  
  .vehicle-method-modal .contact-method-btn .method-icon {
    width: 40px;
    height: 40px;
  }
  
  .vehicle-method-modal .contact-method-btn .method-text h4 {
    font-size: 16px;
  }
  
  .vehicle-method-modal .contact-method-btn .method-text p {
    font-size: 13px;
  }
  
  /* Mobile form improvements */
  .vform .form-card {
    padding: 24px;
    margin: 4px;
  }
  
  .vform input[type="text"],
  .vform textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 14px;
  }
  
  .vform .nav-btn {
    min-height: 48px; /* Better touch target */
    font-size: 16px;
  }
  
  .vform .picker-input {
    min-height: 48px;
    padding: 12px 14px;
  }
  
  .vform .contact-method-btn {
    min-height: 60px;
  }
}
