/* ==========================================================================
   INDIAN POWER TRANS - COMPONENTS STYLESHEET
   Product cards, Spec tabs, Quote Configurator, Modals, Badges, AOS Fallbacks
   ========================================================================== */

/* Product Card */
.product-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-slate-100);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 102, 204, 0.2);
}

.product-card-image {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--color-navy-dark);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(11, 25, 44, 0.85);
  color: var(--color-brand-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.product-card-text {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.55;
}

.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-slate-100);
}

.spec-pill {
  font-size: 0.78rem;
  background: var(--color-slate-100);
  color: var(--color-navy-main);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Feature Box */
.feature-box {
  background: var(--color-white);
  padding: 2.25rem 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--color-slate-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-brand-blue);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: rgba(0, 102, 204, 0.08);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition-normal);
}

.feature-box:hover .feature-icon {
  background: var(--color-brand-blue);
  color: var(--color-white);
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

/* Quote Wizard Form */
.quote-wizard {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-slate-100);
  padding: 2.5rem;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-slate-100);
  z-index: 1;
}

.wizard-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-white);
  padding: 0 0.5rem;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-slate-100);
  color: var(--color-slate-600);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.wizard-step-item.active .step-number {
  background: var(--color-brand-blue);
  color: var(--color-white);
  box-shadow: 0 0 15px rgba(0, 102, 204, 0.4);
}

.wizard-step-item.completed .step-number {
  background: var(--color-success);
  color: var(--color-white);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-slate-600);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-slate-300);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-slate-800);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.75);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--color-white);
  border-radius: 12px;
  width: 100%;
  max-width: 550px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-slate-600);
}

/* Tabs */
.tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--color-slate-100);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.85rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-slate-600);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-brand-blue);
}

.tab-btn.active {
  color: var(--color-brand-blue);
  border-bottom-color: var(--color-brand-blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Fallback Scroll Animation Utility if AOS library is loading */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
