/* Custom Global Enhancements for Accessibility, Mobile FAB, and Focus States */

/* Skip to content link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: #313D90;
  color: #ffffff !important;
  padding: 10px 18px;
  z-index: 99999;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s ease;
  font-size: 14px;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #E99522;
}

/* Visible focus outline for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #E99522 !important;
  outline-offset: 2px !important;
}

/* Floating Action Buttons for Mobile */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.fab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.fab-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.fab-whatsapp {
  background-color: #25D366;
  color: #ffffff;
}

.fab-call {
  background-color: #313D90;
  color: #ffffff;
}

.fab-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Mobile adjustments (screen width 360px and up) */
@media (max-width: 640px) {
  .floating-actions {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  .fab-btn {
    width: 48px;
    height: 48px;
  }
  .fab-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* Product Specifications Table */
.specs-table-container {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.specs-table th, .specs-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #edf2f7;
}
.specs-table th {
  background: #f7fafc;
  color: #2d3748;
  font-weight: 700;
  width: 35%;
}
.specs-table td {
  color: #4a5568;
}
.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* Available Forms Badges */
.available-forms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 24px;
}
.form-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #f0f4f8;
  color: #313d90;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.form-badge:hover {
  background: #313d90;
  color: #ffffff;
  border-color: #313d90;
}
.form-badge.current {
  background: #313d90;
  color: #ffffff;
  border-color: #313d90;
}

/* FAQ Accordion */
.faq-accordion {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] {
  border-color: #cbd5e1;
}
.faq-question {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
  color: #2d3748;
  cursor: pointer;
  background: #ffffff;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question:hover {
  color: #313d90;
}
.faq-answer {
  padding: 12px 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a5568;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

/* Related Products Grid */
.related-products-section {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 2px solid #e2e8f0;
}
.related-products-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2d3748;
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.related-product-card {
  display: block;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-product-card:hover {
  transform: translateY(-2px);
  border-color: #313d90;
  box-shadow: 0 4px 12px rgba(49, 61, 144, 0.08);
}
.related-product-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 6px;
}
.related-product-card p {
  font-size: 12px;
  color: #718096;
  line-height: 1.4;
  margin: 0;
}

/* Print Styles */
@media print {
  .floating-actions,
  #navbar,
  .top-logo-bar,
  .carousel-toggle-container,
  .carousel-btn,
  .cta-zone {
    display: none !important;
  }
}

