/* =========================================================
   DanyCars — FAQ page (danycars-faq.html)
   ========================================================= */

.faq-section {
  background: #fff;
}

.faq-intro {
  color: #666;
  font-size: 15px;
  line-height: 1.8;
  margin-top: 10px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

/* ---------- Left side card ---------- */
.faq-side-card {
  background: #fbfaf8;
  border: 1px solid #f0ebe3;
  border-radius: 12px;
  padding: 32px 28px;
}

.faq-side-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff8e1;
  color: #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.faq-side-icon svg {
  width: 26px;
  height: 26px;
}

.faq-side-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
  margin-bottom: 14px;
}

.faq-side-card p {
  color: #666;
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.faq-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #ffc107;
  color: #ffc107;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-phone-btn svg {
  width: 18px;
  height: 18px;
}

.faq-phone-btn:hover,
.faq-phone-btn:focus {
  background: #ffc107;
  color: #fff;
  text-decoration: none;
}

.faq-side-photo {
  margin-top: 26px;
  height: 260px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #ece9e4; /* placeholder tone until real photo is added */
}

/* ---------- Accordion ---------- */
.faq-accordion-item {
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.faq-accordion-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
}

.faq-question:focus,
.faq-question:focus-visible {
  outline: none;
}

.faq-accordion-item.is-open .faq-question {
  background: #fff8e1;
}

.faq-number {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #f3e3a6;
  color: #ffc107;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-question-text {
  flex: 1;
  font-size: 16.5px;
  font-weight: 700;
  color: #212529;
}

.faq-toggle-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #ffc107;
  transition: transform 0.25s ease;
}

.faq-toggle-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-toggle-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-accordion-item.is-open .faq-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  margin: 0 24px;
  padding: 14px 0 22px 58px;
  border-top: 1px solid #f3ece1;
  color: #666;
  font-size: 14.5px;
  line-height: 1.7;
}

.faq-accordion-item.is-open .faq-answer {
  max-height: 400px;
}

/* ---------- Trust badges row ---------- */
.faq-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 22px;
  margin-top: 46px;
  padding-top: 36px;
  border-top: 1px solid #f0f0f2;
}

.faq-badge-connector {
  flex: 1 1 40px;
  min-width: 24px;
  height: 0;
  border-top: 2px dashed #f3e3a6;
  margin: 0 10px;
  align-self: center;
}

.faq-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.faq-badge-icon {
  box-sizing: border-box;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-image: linear-gradient(135deg, #ffc107, #ffc107);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0px 8px 16px -6px rgba(255, 193, 7, 0.55);
  transition: transform 0.3s ease;
}

.faq-badge-icon span {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.faq-badge:hover .faq-badge-icon {
  transform: scale(1.1) rotate(-6deg);
}

.faq-badge > span:last-child {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #212529;
  line-height: 1.4;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-side-card {
    max-width: 460px;
  }
  .faq-badges {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    row-gap: 28px;
    column-gap: 0;
  }
  .faq-badge {
    flex: unset;
  }
  .faq-badge-connector {
    width: 28px;
    flex: unset;
    margin: 0 10px;
    justify-self: center;
  }
  .faq-badge-connector:nth-of-type(2) {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .faq-accordion {
    order: 1;
  }
  .faq-side-card {
    order: 2;
    max-width: 100%;
    padding: 26px 22px;
    text-align: center;
  }
  .faq-side-icon {
    margin-left: auto;
    margin-right: auto;
  }
  .faq-question {
    padding: 16px 18px;
    gap: 14px;
  }
  .faq-question-text {
    font-size: 15px;
  }
  .faq-answer-inner {
    margin: 0 18px;
    padding: 12px 0 18px;
  }
  .faq-badges {
    grid-template-columns: 1fr auto 1fr;
    column-gap: 6px;
  }
  .faq-badge {
    gap: 10px;
  }
  .faq-badge-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }
  .faq-badge-icon span {
    font-size: 13px;
  }
  .faq-badge > span:last-child {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
  }
  .faq-badge-connector {
    width: 14px;
    margin: 0 4px;
  }
}
