/**
 * AutoVision Initiative - Custom Styles
 * Enhances Tailwind CSS with custom properties and animations
 */

/* Base Styles */
* {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.font-hero {
  font-family: 'Poppins', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: #ffffff;
  scroll-behavior: smooth;
}

/* Shared Form Styles */
.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #24324a;
  margin-bottom: 0.45rem;
}

.form-input {
  width: 100%;
  border: 1px solid #d8dfea;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: #0a1c33;
  background: #fefefe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #9aa7bf;
}

.form-input:focus {
  outline: none;
  border-color: #00b4ff;
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.18);
}

.form-file {
  border: 1px dashed #cdd6e5;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  background: #f9fbff;
}

.form-file input {
  width: 100%;
  color: #0d1b2a;
}

.form-file input::file-selector-button {
  margin-right: 1rem;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.25rem;
  background: #e8f6ff;
  color: #0571a6;
  font-weight: 600;
  cursor: pointer;
}

.form-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #03c6ff 0%, #009fe0 100%);
  box-shadow: 0 14px 35px rgba(0, 151, 228, 0.35);
}

.form-hero-icon svg {
  width: 34px;
  height: 34px;
  color: #ffffff;
}

.form-note {
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  border: 1px solid rgba(12, 41, 81, 0.08);
}

.form-note.info {
  background: #f0f7ff;
  color: #0c2b51;
}

.form-note.warning {
  background: #fff8e8;
  color: #6a4a00;
}

/* Custom Border Radius */
.rounded-2xl {
  border-radius: 1rem;
}

/* Smooth Transitions */
a, button {
  transition: all 0.3s ease;
}

/* Image Hover Effects */
img {
  transition: transform 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #FF9900;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e68a00;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-md {
    backdrop-filter: blur(10px);
  }
}

/* Focus Styles for Accessibility */
a:focus, button:focus {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}
/* Prefer :focus-visible for better UX */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  header, footer {
    display: none;
  }
}

/* Hide scrollbar utility for horizontal sliders */
.hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar { /* Chrome, Safari */
  display: none;
}

/* Hero background slider */
.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite ease-in-out;
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  5%, 30% {
    opacity: 1;
    transform: scale(1.02);
  }
  35% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none !important;
    opacity: 1 !important;
  }
  .hero-slide:nth-child(n+2) {
    display: none;
  }
}

/* Smart Glasses Carousel */

.glasses-carousel-wrapper {
  position: relative;
  overflow: hidden;
}


.glasses-carousel-track {
  display: flex;
  will-change: transform;
  gap: 1rem;
  padding: 0.5rem 0;
}

.glasses-card {
  flex: 0 0 calc(100% - 0.5rem);
}

@media (min-width: 640px) {
  .glasses-card {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 1024px) {
  .glasses-card {
    flex-basis: calc((100% - 2rem) / 3);
  }
}


.glasses-card-inner {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(3, 23, 54, 0.12);
  overflow: hidden;
  border: 1px solid #eff0f3;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.glasses-card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}




.glasses-card-body {
  padding: 1.25rem;
  text-align: center;
}

.glasses-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: #01112A;
  margin-bottom: 0.85rem;
}

.glasses-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #00B4FF;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 180, 255, 0.35);
}

.glasses-card-cta:hover {
  transform: translateY(-2px);
  background: #05a4eb;
}

.glasses-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #0b2845;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glasses-arrow:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* Programs Highlight Cards */
.program-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 18px 35px rgba(9, 31, 73, 0.08);
  border: 1px solid #f0f1f5;
}

.program-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #03c6ff 0%, #00a4e6 100%);
  box-shadow: 0 12px 25px rgba(0, 166, 230, 0.35);
}

.program-icon img {
  width: 32px;
  height: 32px;
}

.program-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0e1b2f;
  margin-bottom: 0.75rem;
}

.program-card p {
  font-size: 0.95rem;
  color: #4a5b73;
  line-height: 1.6;
}

/* Eligibility Page */
.eligibility-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(5, 13, 27, 0.08);
  border: 1px solid #e8ecf4;
}

.eligibility-card--dark {
  background: linear-gradient(135deg, #07122a 0%, #0b2649 50%, #0f365f 100%);
  color: #ffffff;
  border: none;
}

.eligibility-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eligibility-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: inherit;
}

.eligibility-card-subtitle {
  font-size: 0.9rem;
  color: #5b6a85;
}

.eligibility-card--dark .eligibility-card-subtitle {
  color: #c9d7f5;
}

.eligibility-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, #03c6ff 0%, #009fe0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(0, 159, 224, 0.35);
}

.eligibility-icon svg {
  width: 28px;
  height: 28px;
}

.eligibility-bullet {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid #e5edf7;
}

.eligibility-bullet span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00b4ff;
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.eligibility-bullet h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0e1b2f;
  margin-bottom: 0.35rem;
}

.eligibility-bullet p {
  font-size: 0.92rem;
  color: #516079;
  line-height: 1.6;
}

.eligibility-card--dark .eligibility-bullet {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.eligibility-card--dark .eligibility-bullet h3,
.eligibility-card--dark .eligibility-bullet p {
  color: #ffffff;
}

.eligibility-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.eligibility-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

.eligibility-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00d4ff;
}

.eligibility-note {
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 176, 41, 0.15), rgba(249, 115, 22, 0.12));
  color: #ffe3bf;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 176, 41, 0.25);
}

/* Gallery Page */
.gallery-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.gallery-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  color: #0a1628;
}

.gallery-hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.gallery-hero p {
  color: #4b5568;
  line-height: 1.6;
}

.gallery-hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8ba2c6;
  margin-bottom: 0.85rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #ebeff5;
  box-shadow: 0 18px 40px rgba(7, 17, 43, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.gallery-card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-card-body {
  padding: 1.6rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: #0f1e33;
}

.gallery-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0c1c31;
}

.gallery-card-subtitle {
  font-size: 0.95rem;
  color: #51627d;
  line-height: 1.55;
}

.gallery-card-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #94a7c6;
  margin-top: 0.2rem;
}

.gallery-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-card-features li {
  font-size: 0.92rem;
  color: #2f3f58;
  padding-left: 1.4rem;
  position: relative;
}

.gallery-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00b4ff;
}

.gallery-card-cta {
  margin-top: 0.65rem;
  width: 100%;
  text-align: center;
  border-radius: 999px;
  background: #ffb029;
  color: #041126;
  font-weight: 600;
  padding: 0.75rem 1rem;
  box-shadow: 0 14px 30px rgba(255, 176, 41, 0.35);
}

.gallery-card-cta:hover {
  background: #ff9f00;
  transform: translateY(-1px);
}

.gallery-help-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: inset 0 0 0 1px #e4ecf5;
}

@media (min-width: 768px) {
  .gallery-help-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.gallery-help-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: #7b8dab;
  margin-bottom: 0.4rem;
}

.gallery-help-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f1e33;
  max-width: 620px;
  line-height: 1.45;
}

.gallery-help-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00b4ff, #0090ff);
  color: #ffffff;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 18px 35px rgba(0, 144, 255, 0.35);
}

.gallery-help-cta:hover {
  opacity: 0.95;
}

/* Appointment Page */
.appointment-page {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.apmt-hero {
  position: relative;
  background: #0D1B2A;
  padding: 4rem 1.5rem 3rem;
}

.apmt-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.25;
  pointer-events: none;
}

.apmt-hero-grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  z-index: 1;
}

@media (min-width: 1024px) {
  .apmt-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: flex-start;
  }
}

.apmt-hero-left {
  color: #e8f1ff;
}

.apmt-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 176, 41, 0.1);
  color: #ffb029;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.apmt-hero-left h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
}

.apmt-hero-left h1 span {
  color: #ffb029;
}

.apmt-tagline {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #a6b8d7;
}

.apmt-description {
  margin-top: 1rem;
  color: #cfd7ea;
  line-height: 1.7;
}

.apmt-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.apmt-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  background: rgba(5, 22, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.apmt-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 176, 41, 0.15);
  color: #ffb029;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.apmt-feature-icon svg {
  width: 18px;
  height: 18px;
}

.apmt-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.apmt-stats h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffb029;
}

.apmt-stats p {
  color: #a5b5cf;
  margin-top: 0.25rem;
}

.apmt-form-card {
  background: #ffffff;
  color: #01132d;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(2, 8, 20, 0.45);
}

.apmt-form-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.apmt-form-card p {
  color: #4d5d78;
  margin-bottom: 1.5rem;
}

.apmt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.apmt-form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .apmt-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.apmt-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #1a2842;
}

.apmt-field--full {
  grid-column: span 2;
}

@media (max-width: 639px) {
  .apmt-field--full {
    grid-column: span 1;
  }
}

.apmt-field input,
.apmt-field select,
.apmt-field textarea {
  border: 1px solid #d9e1ef;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: #0a1d33;
  background: #f9fbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apmt-field textarea {
  resize: vertical;
  min-height: 120px;
}

.apmt-field input:focus,
.apmt-field select:focus,
.apmt-field textarea:focus {
  outline: none;
  border-color: #00b4ff;
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.2);
}

.apmt-submit {
  border: none;
  border-radius: 999px;
  background: #ffb029;
  color: #041126;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(255, 176, 41, 0.4);
}

.apmt-submit:hover {
  background: #ff9f00;
}

.apmt-form-note {
  margin-top: -0.25rem;
  font-size: 0.85rem;
  color: #6b7a92;
}

.apmt-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #0c1f36;
}

.apmt-showcase {
  background: #ffffff;
  padding: 4rem 0;
}

.apmt-showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .apmt-showcase-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
    gap: 0;
  }

  .apmt-showcase-media {
    border-radius: 28px 0 0 28px;
  }

  .apmt-showcase-card {
    border-radius: 0 28px 28px 0;
  }
}

.apmt-showcase-inner > * {
  min-height: 100%;
}

.apmt-showcase-media {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.apmt-showcase-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.apmt-showcase-card {
  background: #ffffff;
  color: #0d1a2d;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(7, 17, 43, 0.15);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.apmt-pill--light {
  background: rgba(0, 17, 42, 0.05);
  color: #021127;
  letter-spacing: 0.2em;
}

.apmt-showcase-card h2 {
  margin-top: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.apmt-showcase-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.apmt-showcase-card li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.apmt-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 176, 41, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.apmt-showcase-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.apmt-btn-primary,
.apmt-btn-ghost {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.apmt-btn-primary {
  background: #ffb029;
  color: #041126;
  box-shadow: 0 15px 30px rgba(255, 176, 41, 0.35);
}

.apmt-btn-primary:hover {
  background: #ff9f00;
}

.apmt-btn-ghost {
  background: #edf1f7;
  color: #03142a;
}

.apmt-cta {
  padding: 0 1.5rem 3.5rem;
  background: #0D1B2A;
}

.apmt-cta-card {
  max-width: 960px;
  margin: 0 auto;
  background: transparent;
  border-radius: 32px;
  padding: 2.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.apmt-cta-card h2 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.apmt-cta-card p {
  color: #a6bbd8;
  margin-bottom: 1.5rem;
}

.apmt-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
