/**
 * Korg FAQ Accordion Styles (Figma Node 970:3304 & Node 970:3346)
 */

.korg-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Accordion Card */
.korg-faq__item {
  position: relative;
  background: #ffffff;
  border: 1px solid #cecedb;
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question Trigger Header */
.korg-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  outline: none !important;
  user-select: none;
  gap: 24px;
  box-sizing: border-box;
}

.korg-faq__question-wrapper {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.korg-faq__number {
  font-family: "Instrument Sans", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.32px;
  color: #010402;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.korg-faq__question-text {
  font-family: "Instrument Sans", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.32px;
  color: #010402;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Icon / Pill Button */
.korg-faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.korg-faq__circle {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: #010402;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Answer Region */
.korg-faq__answer {
  overflow: hidden;
  height: 0;
  opacity: 0;
  color: #010402;
  font-family: "Instrument Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  cursor: default;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.korg-faq__answer-content {
  padding-top: 16px;
  min-width: 0;
  max-width: 100%;
}

.korg-faq__answer-content p {
  margin: 0 0 14px 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.korg-faq__answer-content p:last-child {
  margin-bottom: 0;
}

.korg-faq__item ul {
  padding-left: 14px;
}

/* =========================================================
   STYLE 1: PROCESS STEPS (Figma Node 970:3304)
   ========================================================= */
.korg-faq.style-process .korg-faq__item:hover,
.korg-faq.style-process .korg-faq__item.is-open {
  background-color: #010402;
  border-color: #cecedb;
}

.korg-faq.style-process .korg-faq__item:hover .korg-faq__number,
.korg-faq.style-process .korg-faq__item.is-open .korg-faq__number {
  color: #ffffff;
}

.korg-faq.style-process .korg-faq__item:hover .korg-faq__question-text,
.korg-faq.style-process .korg-faq__item.is-open .korg-faq__question-text {
  color: #ffffff;
}

.korg-faq.style-process .korg-faq__item:hover .korg-faq__answer,
.korg-faq.style-process .korg-faq__item.is-open .korg-faq__answer {
  color: #ffffff;
}

.korg-faq.style-process .korg-faq__circle .korg-faq__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 24px;
  height: 24px;
  color: #ffffff;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.korg-faq.style-process .korg-faq__circle .korg-faq__eyes {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  font-size: 24px;
  line-height: 1;
  user-select: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.4);
}

.korg-faq.style-process .korg-faq__item:hover .korg-faq__circle,
.korg-faq.style-process .korg-faq__item.is-open .korg-faq__circle,
.korg-faq.style-process .korg-faq__circle.is-open {
  background: #3b5dff;
  transform: scale(1.05);
}

.korg-faq.style-process .korg-faq__item:hover .korg-faq__arrow,
.korg-faq.style-process .korg-faq__item.is-open .korg-faq__arrow,
.korg-faq.style-process .korg-faq__circle.is-open .korg-faq__arrow {
  opacity: 0;
  transform: scale(0.3) rotate(45deg);
}

.korg-faq.style-process .korg-faq__item:hover .korg-faq__eyes,
.korg-faq.style-process .korg-faq__item.is-open .korg-faq__eyes,
.korg-faq.style-process .korg-faq__circle.is-open .korg-faq__eyes {
  opacity: 1;
  transform: scale(1);
}

/* Short delay in both directions: brushing the card edge with the cursor does not flash the hover style */
.korg-faq.style-process .korg-faq__item,
.korg-faq.style-process .korg-faq__number,
.korg-faq.style-process .korg-faq__question-text,
.korg-faq.style-process .korg-faq__answer,
.korg-faq.style-process .korg-faq__circle,
.korg-faq.style-process .korg-faq__circle .korg-faq__arrow,
.korg-faq.style-process .korg-faq__circle .korg-faq__eyes {
  transition-delay: 0.07s;
}

/* The trigger is a <button>: keep the theme's button hover/focus colours and "transition: all" away from it */
.korg-faq .korg-faq__question,
.korg-faq .korg-faq__question:hover,
.korg-faq .korg-faq__question:focus {
  background-color: transparent;
  color: inherit;
  transition: none;
}

/* =========================================================
   STYLE 2: STANDARD FAQ (Figma Node 970:3346)
   ========================================================= */
.korg-faq.style-standard {
  gap: 16px;
}

.korg-faq.style-standard .korg-faq__item {
  padding: 24px 32px;
  background: #ffffff;
  border: 1px solid #cecedb;
  border-radius: 20px;
}

.korg-faq.style-standard .korg-faq__item:hover {
  border-color: #b0b0c4;
}

.korg-faq.style-standard .korg-faq__item.is-open {
  border-color: #cecedb;
}

.korg-faq.style-standard .korg-faq__question-text {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.48px;
  color: #010402;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.korg-faq.style-standard .korg-faq__item:hover .korg-faq__question-text,
.korg-faq.style-standard .korg-faq__item.is-open .korg-faq__question-text {
  color: #010402;
}

.korg-faq.style-standard .korg-faq__answer {
  color: #010402;
}

.korg-faq.style-standard .korg-faq__item:hover .korg-faq__answer,
.korg-faq.style-standard .korg-faq__item.is-open .korg-faq__answer {
  color: #010402;
}

.korg-faq.style-standard .korg-faq__circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #010402;
  border-radius: 100px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.korg-faq.style-standard .korg-faq__arrow-vertical {
  width: 24px;
  height: 24px;
  color: #ffffff;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(180deg);
}

.korg-faq.style-standard .korg-faq__arrow-vertical path {
  stroke: #ffffff;
}

.korg-faq.style-standard .korg-faq__item:hover .korg-faq__circle {
  background: #3b5dff;
}

.korg-faq.style-standard .korg-faq__item.is-open .korg-faq__circle,
.korg-faq.style-standard .korg-faq__circle.is-open {
  background: #3b5dff;
}

.korg-faq.style-standard .korg-faq__item.is-open .korg-faq__arrow-vertical,
.korg-faq.style-standard .korg-faq__circle.is-open .korg-faq__arrow-vertical {
  transform: rotate(0deg);
}

.korg-faq__answer-content {
  max-width: 924px;
}

/* Tags / Chips */
.korg-faq__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.korg-faq__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: "Instrument Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #ffffff;
  background-color: transparent;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Light / Non-showcase tags fallback */
.korg-faq:not(.style-showcase) .korg-faq__tag,
.korg-faq.style-standard .korg-faq__tag {
  border-color: #cecedb;
  color: #010402;
}

.korg-faq__media-wrap {
  margin-top: 16px;
}

.korg-faq__image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* =========================================================
   STYLE 3: SERVICES SHOWCASE (Figma Node 453:20)
   ========================================================= */
.korg-faq.style-showcase {
  gap: 16px;
}

.korg-faq.style-showcase .korg-faq__item {
  position: relative;
  padding: 36px 56px;
  background-color: #ffffff;
  border: 1px solid #cecedb;
  border-radius: 24px;
  box-sizing: border-box;
  overflow: visible;
  z-index: 1;
  cursor: pointer;
  transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.korg-faq.style-showcase .korg-faq__item:hover,
.korg-faq.style-showcase .korg-faq__item.is-open {
  background-color: #010402;
  border-color: #010402;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.korg-faq.style-showcase .korg-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.korg-faq.style-showcase .korg-faq__question-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 460px);
}

.korg-faq.style-showcase .korg-faq__question-text {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #010402;
  margin: 0;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.korg-faq.style-showcase .korg-faq__item:hover .korg-faq__question-text,
.korg-faq.style-showcase .korg-faq__item.is-open .korg-faq__question-text {
  color: #ffffff;
}

/* Tags in Style 3: Hidden on default, smooth reveal on hover/open */
.korg-faq.style-showcase .korg-faq__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  pointer-events: none;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.korg-faq.style-showcase .korg-faq__item:hover .korg-faq__tags,
.korg-faq.style-showcase .korg-faq__item.is-open .korg-faq__tags {
  max-height: 180px;
  opacity: 1;
  margin-top: 24px;
  pointer-events: auto;
}

.korg-faq.style-showcase .korg-faq__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: "Instrument Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #ffffff;
  background-color: transparent;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

/* 56px Action Button */
.korg-faq.style-showcase .korg-faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.korg-faq.style-showcase .korg-faq__circle {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background-color: #010402;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.korg-faq.style-showcase .korg-faq__circle .korg-faq__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 24px;
  height: 24px;
  color: #ffffff;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.korg-faq.style-showcase .korg-faq__circle .korg-faq__eyes {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  font-size: 24px;
  line-height: 1;
  user-select: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.4);
}

.korg-faq.style-showcase .korg-faq__item:hover .korg-faq__circle,
.korg-faq.style-showcase .korg-faq__item.is-open .korg-faq__circle {
  background-color: #3b5dff;
  transform: scale(1.05);
}

.korg-faq.style-showcase .korg-faq__item:hover .korg-faq__arrow,
.korg-faq.style-showcase .korg-faq__item.is-open .korg-faq__arrow {
  opacity: 0;
  transform: scale(0.3) rotate(45deg);
}

.korg-faq.style-showcase .korg-faq__item:hover .korg-faq__eyes,
.korg-faq.style-showcase .korg-faq__item.is-open .korg-faq__eyes {
  opacity: 1;
  transform: scale(1);
}

/* Desktop Floating Mockup Image (Figma Node 453:20) */
@media (min-width: 1001px) {
  .korg-faq.style-showcase .korg-faq__showcase-media {
    position: absolute;
    right: 140px;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg) scale(0.92);
    width: 310px;
    max-width: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s ease;
  }

  .korg-faq.style-showcase .korg-faq__item:hover .korg-faq__showcase-media,
  .korg-faq.style-showcase .korg-faq__item.is-open .korg-faq__showcase-media {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) rotate(-8deg) scale(1);
  }
}

.korg-faq.style-showcase .korg-faq__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   RESPONSIVE STYLES
   ========================================================= */
@media (max-width: 1200px) and (min-width: 1001px) {
  .korg-faq.style-showcase .korg-faq__showcase-media {
    right: 110px;
    width: 250px;
  }

  .korg-faq.style-showcase .korg-faq__question-wrapper {
    max-width: calc(100% - 390px);
  }
}

@media (max-width: 1000px) {
  .korg-faq__item {
    padding: 24px 20px !important;
    border-radius: 20px;
  }

  .korg-faq__question {
    gap: 16px;
    align-items: flex-start;
  }

  .korg-faq__icon {
    margin-top: 2px;
  }

  .korg-faq.style-process .korg-faq__question-text,
  .korg-faq.style-process .korg-faq__number {
    font-size: 22px;
    line-height: 1.25;
  }

  .korg-faq.style-standard .korg-faq__question-text {
    font-size: 18px;
    line-height: 1.3;
  }

  .korg-faq.style-showcase .korg-faq__question-text {
    font-size: 26px;
    line-height: 1.25;
  }

  .korg-faq.style-showcase .korg-faq__question-wrapper {
    max-width: calc(100% - 60px);
  }

  .korg-faq.style-process .korg-faq__circle,
  .korg-faq.style-showcase .korg-faq__circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .korg-faq.style-process .korg-faq__circle .korg-faq__eyes,
  .korg-faq.style-showcase .korg-faq__circle .korg-faq__eyes {
    font-size: 20px;
  }

  .korg-faq.style-standard .korg-faq__circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  /* The rotated mockup reaches the bottom edge of the card - crop it there
     instead of letting it spill into the gap below */
  .korg-faq.style-showcase .korg-faq__item {
    overflow: hidden;
  }

  /* Mobile Mockup Image Centered (Figma Node 467:4541) */
  .korg-faq.style-showcase .korg-faq__showcase-media {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin-top 0.35s ease;
  }

  .korg-faq.style-showcase .korg-faq__item:hover .korg-faq__showcase-media,
  .korg-faq.style-showcase .korg-faq__item.is-open .korg-faq__showcase-media {
    max-height: 320px;
    opacity: 1;
    overflow: visible;
    margin-top: 28px !important;
    margin-bottom: -15px !important;
    pointer-events: auto;
  }

  .korg-faq.style-showcase .korg-faq__image {
    width: 210px !important;
    max-width: 80% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: cover !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4) !important;
    transform: rotate(-6deg) !important;
    margin: 0 auto !important;
    display: block !important;
    transition: transform 0.35s ease;
  }

  .korg-faq.style-showcase .korg-faq__item:hover .korg-faq__image,
  .korg-faq.style-showcase .korg-faq__item.is-open .korg-faq__image {
    transform: rotate(-6deg) scale(1.02) !important;
  }

  .korg-faq__tag {
    height: 26px;
    padding: 0 14px;
    font-size: 11px;
  }
}
