/* =========================================
   SERVIZUP FAQ SECTION
========================================= */

 
.faq-section {
  padding: 100px 0;
  background: #f4f8fd;
}

/* =========================================
   FAQ LAYOUT
========================================= */

.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  align-items: start;
}


/* =========================================
   FAQ INTRO
========================================= */

.faq-intro {
  position: sticky;
  top: 100px;
}

.faq-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  margin-bottom: 18px;

  border-radius: 50px;
  background: rgba(47, 127, 224, 0.08);

  color: #2F7FE0;
  font-size: 13px;
  font-weight: 700;
}

.faq-intro h2 {
  margin: 0 0 18px;

  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;

  color: #172033;
}

.faq-intro p {
  max-width: 390px;
  margin: 0 0 28px;

  font-size: 16px;
  line-height: 1.8;

  color: #687386;
}


/* =========================================
   FAQ LIST
========================================= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* =========================================
   FAQ CARD
========================================= */

.faq-list details {
  position: relative;

  background: #ffffff;

  border: 1px solid #e7ebf1;
  border-radius: 16px;

  overflow: hidden;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}


/* Hover */

.faq-list details:hover {
  border-color: rgba(47, 127, 224, 0.35);

  box-shadow:
    0 8px 28px rgba(31, 64, 104, 0.08);

  transform: translateY(-2px);
}


/* Open */

.faq-list details[open] {
  border-color: rgba(47, 127, 224, 0.45);

  box-shadow:
    0 10px 35px rgba(31, 64, 104, 0.09);
}


/* =========================================
   FAQ QUESTION
========================================= */

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 22px 24px;

  cursor: pointer;

  list-style: none;

  color: #172033;

  font-size: 16px;
  font-weight: 700;

  transition: color 0.2s ease;
}


/* Remove default arrow */

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  display: none;
}


/* Question hover */

.faq-list summary:hover {
  color: #2F7FE0;
}


/* =========================================
   PLUS ICON
========================================= */

.faq-icon {
  flex-shrink: 0;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #f1f6fd;

  color: #2F7FE0;

  font-size: 24px;
  font-weight: 400;
  line-height: 1;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}


/* Open icon */

.faq-list details[open] .faq-icon {
  transform: rotate(45deg);

  background: #2F7FE0;
  color: #ffffff;
}


/* =========================================
   FAQ ANSWER
========================================= */

.faq-answer {
  padding: 0 24px 24px;
}

.faq-answer p {
  margin: 0;

  padding-top: 4px;

  border-top: 1px solid #edf0f4;

  padding-top: 18px;

  color: #687386;

  font-size: 15px;
  line-height: 1.8;
}


/* =========================================
   BUTTON
========================================= */

.faq-intro .button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.faq-intro .button span {
  font-size: 20px;

  transition: transform 0.2s ease;
}

.faq-intro .button:hover span {
  transform: translateX(4px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  .faq-section {
    padding: 80px 0;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .faq-intro {
    position: static;
  }

  .faq-intro p {
    max-width: 600px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .faq-section {
    padding: 65px 0;
  }

  .faq-layout {
    gap: 32px;
  }

  .faq-intro h2 {
    font-size: 32px;
  }

  .faq-intro p {
    font-size: 15px;
    line-height: 1.7;
  }

  .faq-list {
    gap: 10px;
  }

  .faq-list details {
    border-radius: 13px;
  }

  .faq-list summary {
    padding: 18px 17px;

    font-size: 15px;

    gap: 12px;
  }

  .faq-icon {
    width: 30px;
    height: 30px;

    font-size: 21px;
  }

  .faq-answer {
    padding: 0 17px 19px;
  }

  .faq-answer p {
    font-size: 14px;
    line-height: 1.75;
    padding-top: 15px;
  }

}