/* =============================================================================
   Unified contact section — homepage two-card layout on all pages
   Purple band · white left panel · portfolio carousel · WhatsApp / Calendly
   Applies to .ff-contact-section on home and service pages.
   ============================================================================= */

.frameflow-light .ff-contact-section {
  --ff-indigo: #13072D;
  --ff-purple: #432692;
  background: linear-gradient(180deg, #211247 0%, #342060 45%, #432692 100%) !important;
  padding-top: clamp(48px, 6vw, 72px) !important;
  padding-bottom: clamp(48px, 6vw, 72px) !important;
}

.frameflow-light .ff-contact-section .ff-contact-visual__panel {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  border: 1px solid rgba(90, 72, 140, 0.1) !important;
  border-radius: 24px;
  box-shadow: 0 16px 48px -20px rgba(19, 7, 45, 0.45) !important;
  padding: clamp(24px, 3vw, 40px) !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.frameflow-light .ff-contact-section .ff-contact-visual__panel::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

.frameflow-light .ff-contact-section .ff-contact-visual__title {
  color: var(--ff-indigo) !important;
  -webkit-text-fill-color: var(--ff-indigo) !important;
  background: none !important;
  background-image: none !important;
  font-family: "Inter", sans-serif !important;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.frameflow-light .ff-contact-section .ff-contact-visual__desc {
  color: #232323 !important;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.frameflow-light .ff-contact-section .ff-contact-visual .heading-sub {
  color: var(--ff-purple) !important;
}

.frameflow-light .ff-contact-section .ff-contact-portfolio {
  margin-top: 24px;
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__label {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ff-purple);
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__all {
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-purple);
}

.frameflow-light .ff-contact-section .ff-contact-portfolio-swiper {
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
}

.frameflow-light .ff-contact-section .ff-contact-portfolio-swiper .swiper-slide {
  height: auto;
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__slide {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 16 / 10;
  width: 100%;
  text-decoration: none;
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__slide:hover img {
  transform: scale(1.03);
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(19, 7, 45, 0) 0%, rgba(19, 7, 45, 0.82) 100%);
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__caption strong {
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__dots {
  margin-top: 14px;
  position: relative;
  bottom: auto;
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__dots .swiper-pagination-bullet {
  background: rgba(67, 38, 146, 0.25);
  opacity: 1;
}

.frameflow-light .ff-contact-section .ff-contact-portfolio__dots .swiper-pagination-bullet-active {
  background: var(--ff-purple);
}

.frameflow-light .ff-contact-section .ff-contact-form-wrap {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  border: 1px solid rgba(90, 72, 140, 0.1) !important;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px) !important;
  box-shadow: 0 16px 48px -20px rgba(19, 7, 45, 0.45) !important;
}

.frameflow-light .ff-contact-section .ff-contact-visual__channels {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.frameflow-light .ff-contact-section .ff-contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(67, 38, 146, 0.06) !important;
  border: 1px solid rgba(67, 38, 146, 0.12) !important;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.frameflow-light .ff-contact-section .ff-contact-channel .icon,
.frameflow-light .ff-contact-section .ff-contact-channel__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff !important;
  border: 1px solid rgba(67, 38, 146, 0.08);
  padding: 7px;
  box-shadow: 0 2px 8px -4px rgba(19, 7, 45, 0.12);
}

.frameflow-light .ff-contact-section .ff-contact-channel__icon img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.frameflow-light .ff-contact-section .ff-contact-channel__icon--whatsapp,
.frameflow-light .ff-contact-section .ff-contact-channel__icon--calendly {
  background: #fff !important;
}

.frameflow-light .ff-contact-section .ff-contact-channel__label {
  color: rgba(35, 35, 35, 0.55) !important;
}

.frameflow-light .ff-contact-section .ff-contact-channel__value {
  color: var(--ff-indigo) !important;
  font-weight: 600;
}

.frameflow-light .ff-contact-section .ff-contact-channel:hover {
  background: rgba(67, 38, 146, 0.1) !important;
  border-color: rgba(171, 5, 228, 0.25) !important;
  transform: translateY(-1px);
}

@media (min-width: 992px) {
  .frameflow-light .ff-contact-section .row {
    align-items: stretch !important;
  }

  .frameflow-light .ff-contact-section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  .frameflow-light .ff-contact-section .ff-contact-visual,
  .frameflow-light .ff-contact-section .ff-contact-form-wrap {
    flex: 1 1 auto;
    width: 100%;
    height: 100% !important;
    min-height: 100%;
  }

  .frameflow-light .ff-contact-section .ff-contact-visual__panel,
  .frameflow-light .ff-contact-section .ff-contact-form-wrap {
    display: flex;
    flex-direction: column;
    height: 100% !important;
  }

  .frameflow-light .ff-contact-section .ff-contact-visual__channels {
    margin-top: auto;
  }

  .frameflow-light .ff-contact-section .ff-contact-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-height: 0;
  }

  .frameflow-light .ff-contact-section .ff-contact-form fieldset.mb-18,
  .frameflow-light .ff-contact-section .ff-contact-form fieldset:has(textarea) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 16px !important;
  }

  .frameflow-light .ff-contact-section .ff-contact-form textarea {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 140px !important;
    resize: vertical;
  }

  .frameflow-light .ff-contact-section .ff-contact-form .tf-btn {
    margin-top: auto;
  }
}

@media (max-width: 767px) {
  .frameflow-light .ff-contact-section,
  .frameflow-light .ff-contact-section.flat-spacing {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .frameflow-light .ff-contact-section .ff-contact-visual__panel,
  .frameflow-light .ff-contact-section .ff-contact-form-wrap {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .frameflow-light .ff-contact-section .ff-contact-visual__channels {
    margin-top: 16px;
    grid-template-columns: 1fr;
  }

  .frameflow-light .ff-contact-section .ff-contact-visual__title {
    font-size: clamp(24px, 6vw, 30px);
  }
}
