/* ==========================================================================
   style.css — Application Styling & Mobile-First Component Rules
   Layout structure based on numberplatessolution.online
   Aesthetics and tokens based on indtransport.online
   ========================================================================== */

/* ---------- Layout & Global Containers ---------- */
.page-container{
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- Top Flag Banner Ribbon (advertisement_Test.jpeg) ---------- */
.top-flag-ribbon{
  background: #ffffff;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.top-flag-img{
  height: 40px;
  width: 100%;
  max-width: 1000px;
  object-fit: contain;
  display: inline-block;
}
@media (max-width: 576px){
  .top-flag-img{
    height: 30px;
    object-fit: cover;
  }
}

/* ---------- Top Notice Bar ---------- */
.top-disclaimer-bar{
  background: #0b132b;
  color: #ffffff;
  padding: 6px 16px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-notice-badge{
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.top-notice-text{
  font-size: 12px;
  line-height: 1.35;
}

/* ---------- Mobile-First Header & Navbar ---------- */
.site-header{
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1040;
  width: 100%;
}
.navbar{
  padding: 8px 0;
}
.navbar > .container-fluid{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
}
.navbar-brand{
  min-width: 0;
  flex: 1 1 auto;
  margin-right: 12px;
  overflow: hidden;
  text-decoration: none;
}
.navbar-brand .brand-title{
  font-size: 1.15rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.navbar-toggler{
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  margin-left: auto;
  transition: all var(--t-fast);
}
.navbar-toggler:hover,
.navbar-toggler:focus{
  background: #ffffff;
  box-shadow: var(--shadow-focus);
  outline: none;
}
.navbar-toggler-icon{
  width: 1.2em;
  height: 1.2em;
}

/* Mobile Dropdown Menu Floating Card */
@media (max-width: 991.98px){
  .navbar-brand .brand-badge{
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
  }
  .navbar-brand .brand-title{
    font-size: 0.92rem;
    font-weight: 700;
  }
  .top-disclaimer-bar{
    padding: 6px 12px;
  }
  .top-notice-text{
    font-size: 11px;
  }
  .navbar-collapse{
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(226, 232, 240, 0.95);
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    z-index: 1060;
  }
  .navbar-nav .nav-link{
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink) !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--t-fast);
  }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active{
    background: rgba(29, 78, 216, 0.08);
    color: var(--brand) !important;
  }
  .navbar-nav .nav-item + .nav-item{
    border-top: 1px solid rgba(241, 245, 249, 0.9);
  }
}

/* ---------- Hero Carousel ---------- */
.hero-section{
  position: relative;
  overflow: hidden;
  background: var(--dark-900);
}
.hero-slider .carousel-item{
  min-height: 280px;
  max-height: 440px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-img{
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.hero-overlay{
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  padding: 24px 0;
}
.hero-caption{
  color: #ffffff;
  max-width: 650px;
}
.hero-caption h1{
  color: #ffffff;
  font-size: clamp(22px, 5vw, 38px);
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero-caption p{
  font-size: clamp(14px, 3.5vw, 16px);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

/* ---------- Booking Wizard Layout (matching numberplatessolution.online) ---------- */
.form-wrapper{
  width: 95%;
  max-width: 900px;
  margin: 24px auto 40px;
  background: #eaf6fd;
  border: 1px solid #cbe7f7;
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
@media (max-width: 576px){
  .form-wrapper{
    padding: 20px 15px;
    margin: 16px auto 30px;
    border-radius: 16px;
  }
}

.main-heading{
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.sub-heading{
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
}

/* Processing Area Panel (driven by real AJAX) */
.processing-area{
  display: none;
  width: 100%;
  max-width: 650px;
  margin: 18px auto 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #c8e0ef;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  animation: processingIn 0.3s ease;
}
.processing-area.active{
  display: block;
}
@keyframes processingIn{
  from{ opacity: 0; transform: translateY(-6px); }
  to{ opacity: 1; transform: translateY(0); }
}
.processing-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.processing-status{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.processing-spinner{
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #dbeafe;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin{
  to{ transform: rotate(360deg); }
}
.processing-check{
  display: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.processing-success .processing-check{
  display: inline-flex;
}
.processing-success .processing-spinner{
  display: none;
}
.processing-success .processing-status{
  color: var(--green);
}
.processing-percent{
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
}
.processing-success .processing-percent{
  color: var(--green);
}
.processing-progress{
  width: 100%;
  height: 8px;
  background: #dbe7ef;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.processing-progress-bar{
  width: 0%;
  height: 100%;
  border-radius: 20px;
  background: var(--grad-brand-flat);
  transition: width 0.15s ease-out;
  position: relative;
  overflow: hidden;
}
.processing-progress-bar::after{
  content: "";
  position: absolute;
  top: 0; left: -80px; width: 80px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: shine 1.2s infinite;
}
@keyframes shine{
  0%{ left: -80px; }
  100%{ left: 100%; }
}
.processing-message{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

/* ---------- Summary Table (Confirmation Step) ---------- */
.summary-card{
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.summary-table{
  width: 100%;
  margin-bottom: 0;
}
.summary-table th, .summary-table td{
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-table th{
  width: 40%;
  color: var(--muted);
  font-weight: 600;
}
.summary-table td{
  color: var(--ink);
  font-weight: 700;
}
.summary-table tr:last-child th,
.summary-table tr:last-child td{
  border-bottom: none;
}

/* ---------- Payment Page Styles ---------- */
.payment-card{
  max-width: 540px;
  margin: 30px auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
}
@media (max-width: 576px){
  .payment-card{
    margin: 16px auto;
    padding: 24px 16px;
    border-radius: var(--radius-sm);
  }
}
.qr-wrapper{
  background: #ffffff;
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: inline-block;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
.qr-image{
  max-width: 220px;
  max-height: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.qr-download-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.2px;
  transition: all 0.2s ease-in-out;
  border-width: 1.5px;
}
.qr-download-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15) !important;
}
.upi-id-box{
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 16px 0;
}
.upi-app-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  transition: all var(--t-fast);
  width: 100%;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.upi-app-btn:hover{
  border-color: var(--brand);
  transform: translateY(-2px);
  color: var(--brand);
}

/* ---------- How It Works Timeline ---------- */
.how-step{
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--t-fast);
}
.how-step:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.step-num{
  width: 44px;
  height: 44px;
  background: var(--grad-brand);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 16px;
}

/* ---------- Testimonial Cards & Swiper ---------- */
.testimonial-card{
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.stars{
  color: #f59e0b;
  font-size: 16px;
  margin-bottom: 12px;
}

/* ---------- Accordion FAQ ---------- */
.accordion-custom .accordion-item{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.accordion-custom .accordion-button{
  font-weight: 700;
  font-family: var(--font-head);
  padding: 16px 20px;
  background: #ffffff;
  color: var(--ink);
}
.accordion-custom .accordion-button:not(.collapsed){
  background: var(--blue-50);
  color: var(--brand);
  box-shadow: none;
}
.accordion-custom .accordion-body{
  padding: 16px 20px;
  background: #ffffff;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Floating Action Buttons ---------- */
.floating-actions{
  position: fixed;
  bottom: 20px;
  right: 18px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-float{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform var(--t-fast);
}
.btn-float:hover{
  transform: scale(1.1);
  color: #ffffff;
}
.btn-whatsapp{
  background: #25d366;
}
.btn-call{
  background: var(--brand);
}

/* Mobile Sticky Bottom Apply Bar */
.mobile-bottom-bar{
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
  z-index: 1035;
}
@media (max-width: 768px){
  .mobile-bottom-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  body{
    padding-bottom: 70px;
  }
  .floating-actions{
    bottom: 74px;
  }
}
