/* ==========================================================================
   Template: AI Skills Training
   ========================================================================== */

.page-heading {
  min-height: 760px;
  align-items: flex-start;
}

section .page-heading:after {
  opacity: none;
  background: none;
}

.heading-title h1 {
  color: #fff;
  font-size: 64px;
  font-weight: 500;
  line-height: 56px;
}

section .heading-title p {
  margin: 24px 0 0 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 32px;
}

.reviews {
  position: relative;
  margin: -120px auto 0;
  padding: 48px 64px;
  max-width: 1200px;
  background: #fbfafc;
  border-radius: 20px;
}

.reviews h2 {
  margin: 0;
  color: #000;
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px; /* 120% */
}

.reviews p {
  color: #000;
  margin: 36px 0 0;
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 48px; /* 150% */
}

.CarouselWidget__header .header__inner {
  margin-top: 16px;
}

.CarouselWidget-prefix .R-XLG .R-ReviewsList .R-ReviewsList__item {
  flex-basis: 33%;
}

.first-section,
.second-section {
  padding: 80px 0 0 0;
  max-width: 1200px;
  margin: 0 auto;
}

.first-section__hero {
  display: flex;
  gap: 100px;
  align-items: flex-start;
}

.first-section__text {
  flex: 0 0 calc(5 / 12 * 100%);
}

.first-section__image {
  flex: 1 1 0;
}

.first-section__image img {
  display: block;
  width: 100%;
  height: auto;
}

.second-section .image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.first-section h2,
.second-section h2,
.faqs-section h2 {
  color: #000;
  font-size: 48px;
  font-weight: 400;
  line-height: 120%; /* 57.6px */
  margin: 0 0 20px;
}

.faqs-section h2 {
  color: #212121;
  font-size: 64px;
  font-weight: 700;
  line-height: 120%; /* 57.6px */
  margin: 0 0 20px;
}

.first-section p,
.second-section p {
  color: #000;
  font-weight: 400;
  font-size: 20px;
  line-height: 140%; /* 28px */
  margin: 0 0 35px;
}

.first-section .why-choose h2 {
  margin: 80px 0 0;
}

.why-choose-items-wrapper {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-choose-cs-course {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.why-choose-cs-course img {
  width: 70px;
  height: 70px;
}

.why-choose-cs-course h3 {
  margin: 0 0 18px;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: 120%; /* 24px */
}

.why-choose-cs-course p {
  margin: 0;
  color: #000;
  font-size: 16px;
  line-height: 120%;
  font-weight: 300;
}

ul.cs-bullets li {
  padding-left: 50px;
  background: url(../img/landings/arrow.png) no-repeat left center;
  color: #000;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px; /* 160% */
  margin-bottom: 20px;
}

ul.cs-bullets li:last-of-type {
  margin-bottom: 0;
}

.first-section .book-cta {
  margin-top: 40px;
}

.book-cta {
  display: inline-block;
  background: #98498d;
  color: #fff;
  padding: 8px 32px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.4px;
}

.book-cta:hover {
  color: #fff;
}

.first-section .book-banner,
.second-section .book-banner {
  margin-top: 80px;
  border-radius: 4px;
  background: #98498d;
  padding: 48px;
  text-align: center;
  margin-right: 0;
  margin-left: 0;
}

.first-section .book-banner p {
  color: #fff;
  text-align: center;
  font-size: 28px;
  font-weight: 400;
  line-height: 120%; /* 33.6px */
  margin: 0 0 40px;
}

.first-section .book-banner a {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 12px 36px;
  color: #98498d;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.4px;
}

.course-unit-content {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: flex-start;
  color: #000;
  font-size: 16px;
  line-height: 120%;
  font-weight: 400;
}

.course-unit-content:last-of-type {
  margin-bottom: 0;
}

.course-unit-content h4 {
  margin: 0;
  color: #98498d;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  padding-top: 4px;
}

.course-unit-content p {
  margin: 0;
  font-size: 16px;
}

.second-section .course-content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 46px;
}

.second-section .book-banner {
  padding: 48px 48px 120px;
}

.second-section .book-banner h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 40px;
  line-height: normal;
}

.second-section .book-banner p {
  color: #fff;
  font-size: 20px;
  line-height: normal;
  margin: 0;
}

.book-banner-cta {
  position: relative;
  margin: -96px auto 0;
  padding: 48px 64px;
  max-width: 920px;
  background: #fbfafc;
  border-radius: 20px;
  text-align: center;
}

.book-banner-cta a {
  margin-bottom: 36px;
}

.book-banner-cta p {
  color: #000;
  font-size: 20px;
  line-height: 120%; /* 24px */
}

.faqs-section {
  background: #fbfafc;
  display: flex;
  flex-direction: column;
  margin: 64px auto;
  padding: 80px 0;
}

.faqs-section h2 {
  margin: 0 0 40px;
}

.faqs-container {
  display: flex;
  gap: 80px;
}

.faqs-container .questions-wrapper {
  display: flex;
  flex-direction: column;
  width: 350px;
}

.faqs-container a {
  color: #000;
  font-size: 24px;
  font-weight: 400;
  line-height: 31.2px; /* 130% */
  letter-spacing: 0.48px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.faqs-container a.active-faq {
  color: #98498d;
}

.faqs-container a:first-of-type {
  padding-top: 0;
}

.faqs-container a:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.faqs-container .answers {
  width: 100%;
}

.faqs-container .answers p {
  color: #4b4b4b;
  font-size: 16px;
  font-weight: 400;
  line-height: 32px; /* 200% */
}

/* ── NEW: Accordion FAQ layout ── */
.ai-faqs-accordion {
  max-width: 800px;
}

.ai-faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.ai-faq-item:first-child {
  border-top: 1px solid #e5e5e5;
}

.ai-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  color: #000;
  font-size: 24px;
  font-weight: 400;
  line-height: 31.2px;
  letter-spacing: 0.48px;
  cursor: pointer;
  text-decoration: none;
}

.ai-faq-question:hover,
.ai-faq-question:focus {
  color: #000;
  text-decoration: none;
}

.ai-faq-item.active .ai-faq-question {
  color: #98498d;
}

.ai-faq-icon {
  font-size: 28px;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
}

.ai-faq-item.active .ai-faq-icon {
  transform: rotate(45deg);
}

.ai-faq-answer {
  display: none;
  padding: 0 0 24px;
}

.ai-faq-answer p {
  color: #4b4b4b;
  font-size: 16px;
  font-weight: 400;
  line-height: 32px;
  margin: 0;
}

#form-contact {
  margin-bottom: 64px;
}

#form-contact:before {
  background: none;
}

#form-contact .form-container > h2 {
  margin: 0;
  color: #000;
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  line-height: 200%;
}

#form-contact .form-container > p {
  font-weight: 400;
  font-size: 20px;
  line-height: 160%;
  letter-spacing: 0%;
  text-align: center;
}

section #form-contact .form-container {
  box-shadow: none;
  max-width: 992px;
  padding: 0;
}

#form-contact form {
  margin: 0;
}

.form-wrapper {
  margin: 48px 0;
  border-radius: 16px;
  border: 1px solid #98498d;
  background: #fff;
  padding: 60px 160px;
}

.gform_required_legend,
.gform_wrapper .gfield_required,
.gform_wrapper.gravity-theme .gfield_required .gfield_required_custom,
.gform_wrapper.gravity-theme .gfield_required,
.partial_entry_warning {
  display: none;
}

.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="number"],
.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="tel"] {
  border: 1px solid var(--Grey-Grey-700, #85898d);
  border-radius: 8px;
}

.gform_wrapper.gravity-theme input[type="checkbox"] {
  width: fit-content;
  margin: 0 15px 0 0;
}

.gform_wrapper.gravity-theme .ginput_container.ginput_container_consent {
  display: flex;
}

.gform_wrapper.gravity-theme .ginput_complex label,
.gform_wrapper.gravity-theme .gfield_label {
  color: #000;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  padding-top: 24px;
  margin-bottom: 8px;
}

.gform_wrapper .gform_validation_errors {
  margin-top: 32px;
  margin-bottom: 0;
}

.gform_wrapper .gfield_validation_message {
  border: 0;
  padding: 16px 0 0;
  background: none;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.form-footer .secure-checkout i {
  margin: 0 15px 0 0;
}

.form-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-footer img {
  height: 60px;
}

/* ==========================================================================
   Responsive: Mobile (max-width: 767px)
   ========================================================================== */

@media screen and (max-width: 767px) {
  .page-heading {
    min-height: 420px;
  }

  section .page-heading .container {
    width: 100%;
  }
  
  section .page-heading .bg img {
    object-position: 100%;
  }

  .heading-title h1 {
    font-size: 28px;
    line-height: 36px;
  }

  section .heading-title p {
    font-size: 16px;
    line-height: 22px;
  }

  .reviews {
    padding: 48px 0;
    margin: -64px 15px 0;
  }

  .reviews h2 {
    padding: 0 24px;
    font-size: 26px;
    line-height: 36px;
  }

  .reviews p {
    padding: 0 24px;
    font-size: 24px;
    line-height: normal;
  }

  .CarouselWidget-prefix .R-MD .R-ReviewsList-container {
    padding: 0 24px;
  }

  .CarouselWidget-prefix .R-XLG .R-ReviewsList .R-ReviewsList__item {
    flex-basis: 100%;
    padding: 0;
  }

  .CarouselWidget-prefix
    .CarouselWidget
    .R-ReviewsList-container
    .R-ReviewsList__controlButton {
    width: 24px;
  }

  .CarouselWidget-prefix
    .CarouselWidget
    .R-ReviewsList
    .R-ReviewsList__item
    .item__inner {
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
  }

  .first-section,
  .second-section {
    padding-top: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .first-section__hero {
    flex-direction: column-reverse;
    gap: 0;
  }

  .first-section__text,
  .first-section__image {
    flex: none;
    width: 100%;
  }

  .first-section__image {
    margin: 0 -15px;
    width: calc(100% + 30px);
  }

  .first-section__image img {
    width: 100%;
    height: auto;
  }

  .first-section h2,
  .second-section h2,
  .faqs-section h2,
  #form-contact h2 {
    font-size: 32px;
    line-height: 120%;
  }

  .first-section h2 {
    margin-top: 64px;
  }

  .first-section p,
  .second-section p {
    font-size: 16px;
  }

  .book-cta {
    width: 100%;
    padding: 12px 0;
    text-align: center;
  }

  .first-section .why-choose h2 {
    margin: 60px 0 0;
    font-weight: 600;
  }

  .why-choose-items-wrapper {
    grid-template-columns: none;
  }

  .first-section .book-banner,
  .second-section .book-banner {
    padding: 36px 20px;
    margin-left: 0;
    margin-right: 0;
  }

  .first-section .book-banner p {
    font-size: 24px;
    margin: 0 0 35px;
  }

  .first-section .book-banner a {
    width: 100%;
    padding: 12px 0;
    font-size: 20px;
    font-weight: 600;
  }

  .second-section h2 {
    margin-top: 48px;
  }

  .second-section .course-content-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .second-section .course-content-wrapper .image-wrapper {
    margin: 0 -15px;
    width: calc(100% + 30px);
  }

  .second-section .course-content-wrapper .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
  }

  .second-section .cs-opportunities {
    margin-top: 0;
  }

  .second-section .cs-opportunities ul.cs-bullets li {
    padding: 0 0 0 40px;
  }

  .second-section .book-banner h3 {
    font-size: 32px;
  }

  .book-banner-cta {
    margin: 0;
    padding: 15px;
    background: #fff;
  }

  .book-banner-cta a {
    font-size: 16px;
  }

  .second-section .second-section-title br,
  .second-section .second-section-subtitle br {
    display: none;
  }

  .faqs-section {
    flex-direction: column;
    gap: 40px;
    padding: 0;
    margin: 0;
  }

  .faqs-section .container {
    margin: 0;
  }

  .faqs-section .row {
    padding: 0;
  }

  .faqs-section h2 {
    margin: 48px 0 20px;
  }

  .faqs-container + .panel-group {
    margin-top: 32px;
  }

  .faqs-container + .panel-group .panel {
    border: none;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: none;
    background: none;
    border-radius: 0;
  }

  .faqs-container + .panel-group .panel a.collapsed .panel-heading {
    padding-left: 0;
    background: url(../img/landings/accordion-icon.png) 98% no-repeat;
    background-size: 13px;
    padding-right: 50px;
  }

  .faqs-container + .panel-group .panel a:not(.collapsed) .panel-heading {
    color: #545051;
    font-size: 18px;
    line-height: 28px;
    padding-left: 0;
    background: url(../img/landings/accordion-icon.png) 98% no-repeat;
    background-size: 13px;
  }

  .faqs-container + .panel-group .panel-heading p {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.48px;
  }

  .faqs-container + .panel-group .panel a.collapsed .panel-heading p {
    color: #000;
  }

  .faqs-container + .panel-group .panel a:not(.collapsed) .panel-heading p {
    color: #98498d;
  }

  .faqs-container + .panel-body {
    padding: 0 0 16px 0;
    color: #434343;
    font-size: 15px;
    font-weight: 400;
    line-height: 23px; /* 153.333% */
  }

  .form-container {
    padding: 0 !important;
  }

  .form-wrapper {
    margin: 48px 0 0;
    padding: 48px 24px 32px;
  }

  .progressbar_2_steps li {
    font-size: 12px;
    line-height: 15px;
  }

  .progressbar_2_steps .activefirstpage .progressbar-number,
  .progressbar_2_steps .activefirstpagesbg .progressbar-number {
    margin-left: 0 !important;
  }

  .form-footer {
    align-items: center;
    flex-direction: column;
    gap: 16px;
  }

  #form-contact .form-container > h2 {
    font-size: 32px;
  }

  #form-contact .form-container > p {
    font-weight: 400;
    font-size: 24px;
    color: #000;
    line-height: 120%;
    letter-spacing: 0px;
    text-align: center;
  }
}

/* ==========================================================================
   Confirmation message after form submit
   ========================================================================== */

.gform_confirmation_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 220px;
}

/* Animated check circle */
.confirmation-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #98498d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.confirmation-check svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.4s 0.3s ease forwards;
}

.gform_confirmation_wrapper .gform_confirmation_message {
  color: #000;
  font-size: 20px;
  font-weight: 500;
  line-height: 160%;
  max-width: 480px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.4s 0.5s ease forwards;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
