/* ==========================================================================
   VERITAS CAR SERVICES — INTERACTIVE COMPONENTS & MOTION STYLES
   Preloader, Custom Cursor, Before/After Slider, Modal, Lightbox, Grain
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FILM GRAIN OVERLAY
   -------------------------------------------------------------------------- */
.film-grain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. TECHNICAL PRELOADER (With Official Icon)
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050505;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 90%;
}

.preloader-icon-wrap {
  width: 72px;
  height: 72px;
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.5));
  animation: preloader-pulse 2.2s infinite ease-in-out;
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.4)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.8)); }
}

.preloader-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.preloader-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red-bright);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.preloader-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
  min-height: 1.2em;
}

.preloader-bar-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  margin-bottom: 0.85rem;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  box-shadow: 0 0 12px var(--red-bright);
  transition: width 0.15s ease-out;
}

.preloader-counter {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-silver);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   3. DESKTOP CUSTOM CURSOR (Red Ring)
   -------------------------------------------------------------------------- */
.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.15s ease-out;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: block;
  }
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--red-bright);
  box-shadow: 0 0 8px var(--red-bright);
}

.custom-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(239, 68, 68, 0.65);
  background: rgba(220, 38, 38, 0.03);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s,
              background-color 0.25s;
}

.custom-cursor-ring.active {
  width: 58px;
  height: 58px;
  border-color: var(--red-bright);
  background: rgba(220, 38, 38, 0.12);
}

/* --------------------------------------------------------------------------
   4. MODAL DIALOGS (Booking Confirmation & Lightbox)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #111111;
  border: 1px solid var(--red-border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: translateY(25px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--red-glow-subtle);
}

.modal-backdrop.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--red-primary);
  color: #fff;
  border-color: var(--red-primary);
}

.modal-icon-header {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid var(--red-border-bright);
  color: var(--red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-silver);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-summary-box {
  background: #080808;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-silver);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-summary-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

.modal-summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-summary-label {
  color: var(--text-muted);
}

.modal-summary-val {
  color: var(--text-white);
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
  max-width: 900px;
  padding: 1rem;
  background: #080808;
}

.lightbox-image-wrap {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  padding: 1rem 0.5rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-white);
}

/* --------------------------------------------------------------------------
   5. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: #151515;
  border: 1px solid var(--red-border);
  border-left: 4px solid var(--red-primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.4rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   6. SCROLL TO TOP FLOATING BUTTON
   -------------------------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--red-glow);
}

/* --------------------------------------------------------------------------
   7. FEEDBACK CTA SECTION (ON HOME PAGE)
   -------------------------------------------------------------------------- */
.feedback-cta-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 50%, rgba(220, 38, 38, 0.08) 0%, #080808 70%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  text-align: center;
  overflow: hidden;
}

.feedback-cta-box {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.feedback-stars-preview {
  display: inline-flex;
  gap: 0.35rem;
  color: #fbbf24;
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   8. PUBLIC FEEDBACK PAGE & INTERACTIVE STAR RATING WIDGET
   -------------------------------------------------------------------------- */
.feedback-page-main {
  padding-top: var(--nav-height);
  position: relative;
  z-index: 10;
}

.feedback-hero-section {
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
  text-align: center;
  position: relative;
}

.feedback-form-section {
  padding: 2rem 0 clamp(4rem, 8vw, 7rem);
}

.feedback-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

.feedback-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}

/* Interactive Star Rating Selector */
.star-rating-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
  direction: ltr;
}

.star-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.star-btn svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.5;
  transition: all 0.2s ease;
}

.star-btn:hover,
.star-btn.hovered,
.star-btn.active {
  transform: scale(1.15);
}

.star-btn.active svg,
.star-btn.hovered svg {
  fill: #fbbf24;
  stroke: #fbbf24;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.star-rating-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-silver);
  margin-left: 0.75rem;
  font-weight: 700;
}

/* Reviews Feed Grid */
.reviews-section {
  padding: 3rem 0 clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--border-subtle);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.review-stars-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.review-star {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.review-star svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
}

.review-star.filled svg {
  fill: #fbbf24;
  stroke: #fbbf24;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

.review-badge-verified {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  white-space: nowrap;
}

.review-author-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.review-author-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.review-date-service {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.review-service-pill {
  color: var(--text-silver);
  font-size: 0.72rem;
}

.review-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-silver);
  line-height: 1.6;
  font-style: italic;
}

.feedback-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 580px;
  margin: 2rem auto;
}

.feedback-empty-state svg {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.feedback-empty-state h3 {
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.feedback-empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

