/* Custom Product Page Styles */

/* Accordion Styles */
.accordion-button {
  background-color: #f8f9fa;
  color: #000;
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background-color: #dc3545;
  color: #ffffff;
}

.accordion:focus {
  outline: none;
  box-shadow: none;
  --bs-accordion-btn-focus-box-shadow: none;
}

.accordion-item {
  border: 1px solid #dc3545;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.accordion-body {
  background-color: #ffffff;
}

/* Heading Styles */
.about-finnaco-wrap1 h1 {
  font-size: 40px;
  line-height: 38px;
  color: #444 !important;
  font-weight: 500;
}

@media only screen and (max-width: 480px) {
  .about-finnaco-wrap1 h2 {
    font-size: 28px;
  }
}

.prod-data h2 {
  font-size: 28px !important;
  text-align: left !important;
}

/* Form Protection & Feedback */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  opacity: 0;
  pointer-events: none;
}

.recaptcha-info {
  font-size: 11px;
  color: #666;
  margin-top: 8px;
  text-align: center;
}

.loading {
  display: none;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 3px;
  display: none;
}

input[type="submit"]:disabled {
  background-color: #cccccc !important;
  cursor: not-allowed !important;
}

/* Enquiry Form Button */
#inq-form-meta button[type="submit"] {
  background-color: #4caf50;
}

#inq-form-meta button[type="submit"]:hover {
  background-color: #45a049;
}

/* Floating Action Button */
.float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 23px;
  left: 21px;
  background-color: #1b4889;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}

.my-float {
  margin-top: 10px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* FAQ Styles */
.faq-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
  font-family: Arial, sans-serif;
}

.faq-title {
  text-align: center;
  color: #d81c21;
  font-weight: bold;
  margin-bottom: 40px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px 20px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  position: relative;
  padding-right: 30px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question {
  color: #d81c21;
}

.faq-item.open .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-top 0.3s ease;
  font-size: 16px;
  color: #333;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-top: 10px;
}

/* Review Card Styles */
.review-card {
  width: 350px !important;
}

.review-avatar {
  background: #d81c21 !important;
}

.certificates-section {
  padding: 2rem;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1.5rem;
}

.certificate-card {
  width: 320px;
  text-align: center;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover,
.certificate-card:focus-within {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.img-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.img-wrapper img {
  display: block;
  width: 100%;
  height: 400px;
  transition: transform 0.3s ease;
}

.certificate-card:hover .img-wrapper img,
.certificate-card:focus-within .img-wrapper img {
  transform: scale(1.02);
}

.cert-name {
  padding: 1rem;
  font-size: 1.1rem;
  color: #333;
}

/* Make responsive */
@media (max-width: 600px) {
  .certificate-card {
    width: calc(100% - 2rem);
  }
}
