/* =========================================================
   CLIENT PRAISE — quote cleanup
========================================================= */

/* -----------------------------------------
   Base / layout
----------------------------------------- */
.client-praise blockquote {
  margin: 0;
  padding: 0 1rem 0 1.25rem;
  border-left: 4px solid color-mix(in srgb, var(--accent-color), transparent 35%) !important;
  background: #f6f6f6;
}

.client-praise cite {
  display: block;
  margin-top: 1rem;
  text-align: right;
}

/* -----------------------------------------
   Visuals
----------------------------------------- */
.client-praise .cta-list li,
.client-praise .cta-list li::before,
.client-praise .cta-list li::after,
.client-praise blockquote::before,
.client-praise blockquote::after {
  content: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

/* -----------------------------------------
   Typography
----------------------------------------- */
.client-praise blockquote {
  font-size: 1.2rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-style: italic;
}

.client-praise cite {
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-style: normal;
  font-weight: 600;
}

/* =========================================================
   START THE CONVERSATION — hero form
   Current scoped system only
========================================================= */

/* -----------------------------------------
   Base / layout
----------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 108px;
}

.stc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.stc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: repeat;
  background-size: 100px 100px;
  background-position: 0 0;
  transform: scale(1.08);
  opacity: 0.74;
}

.stc-hero__container {
  position: relative;
  z-index: 2;
}

.stc-hero__shell {
  width: min(100%, 560px);
  margin-inline: auto;
  padding-bottom: 3rem;
}

.stc-hero__card {
  border-radius: 24px;
  padding: 22px;
}

.stc-hero__header {
  margin-bottom: 18px;
}

.stc-hero__brand {
  display: block;
  width: 100%;
  margin: 0 auto 1.35rem;
  text-align: center;
  line-height: 1;
}

.stc-hero__brand-amicus,
.stc-hero__brand-ae {
  display: inline-block;
  position: relative;
}

.stc-form {
  display: grid;
  gap: 14px;
}

.stc-form__field {
  display: grid;
  gap: 6px;
}

.stc-form__field--hidden {
  display: none;
}

.stc-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stc-form__label--static {
  margin: 0;
}

.stc-form__input {
  width: 100%;
  border-radius: 18px;
  padding: 16px;
  outline: none;
}

.stc-form__select {
  appearance: none;
  padding-right: 46px;
}

.stc-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.stc-form__hint {
  margin: 0 0 6px;
}

.stc-form__status {
  min-height: 24px;
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.stc-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  gap: 12px;
  cursor: pointer;
}

.stc-form__submit-icon,
.stc-form__submit-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#contact-form .hero-form__status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.5;
}

#contact-form .stc-form__error[hidden] {
  display: none !important;
}

#contact-form .stc-form__error {
  display: block;
  margin: 0.12rem 0 0;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 600;
}

/* -----------------------------------------
   Visuals
----------------------------------------- */
.stc-hero::after {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 30%),
    rgba(8, 10, 14, 0.26);
}

.stc-hero__bg {
  background-image: url("https://www.amicusae.com/assets/img/backgrounds/mosaic.webp");
}

.stc-hero__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.stc-form__input {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #f5f7fb;
}

.stc-form__input::placeholder,
.stc-form__textarea::placeholder {
  color: #9da5b4;
}

.stc-form__input:hover,
.stc-form__select:hover,
.stc-form__textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.stc-form__input:focus-visible,
.stc-form__select:focus-visible,
.stc-form__textarea:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.stc-form__select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.85) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.85) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.stc-form__select:invalid {
  color: #9da5b4;
}

.stc-form__select optgroup {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-style: normal;
}

.stc-form__select option {
  color: #ffffff;
  background: #2a211d;
}

.stc-form__submit {
  background: #d86f52;
  color: #ffffff;
}

.stc-form__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.stc-form__submit:disabled {
  opacity: 0.45;
}

.stc-form__field.has-error .stc-form__input,
.stc-form__field.has-error .stc-form__select,
.stc-form__field.has-error .stc-form__textarea {
  border-color: rgba(240, 178, 162, 0.75);
  box-shadow: 0 0 0 4px rgba(240, 178, 162, 0.08);
}

#contact-form .stc-form__error {
  color: #e8ab9c;
}

#contact-form .hero-form__status.is-loading {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

#contact-form .hero-form__status.is-success {
  background: rgba(22, 101, 52, 0.08);
  border: 1px solid rgba(22, 101, 52, 0.18);
}

#contact-form .hero-form__status.is-error {
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.18);
}

/* -----------------------------------------
   Typography
----------------------------------------- */
.stc-hero__brand {
  font-family: "Gloock", serif;
  font-size: clamp(2.15rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.005em;
}

.stc-hero__brand-amicus,
.stc-hero__brand-ae {
  font-family: "Gloock", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.stc-hero__brand-amicus {
  color: #e7a08c;
}

.stc-hero__brand-ae {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.06);
}

.start-the-conversation .stc-hero .stc-hero__eyebrow {
  margin: 0 0 6px;
  color: #9da5b4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.start-the-conversation .stc-hero .stc-hero__title {
  margin: 0;
  max-width: 18ch;
  color: #ffffff;
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
}

.start-the-conversation .stc-hero p.stc-hero__intro {
  margin: 12px 0 0;
  max-width: 48ch;
  color: #e4ddd6;
  font-size: 1.12rem;
  line-height: 1.6;
}

.stc-form__label {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.stc-form__hint {
  color: #9da5b4;
  font-size: 0.95rem;
  line-height: 1.4;
}

.stc-form__submit {
  font: inherit;
  font-weight: 700;
}

.start-the-conversation .stc-hero p.stc-form__label--static {
  margin: 0;
  color: #ffffff;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

.start-the-conversation .stc-hero p.stc-form__hint {
  margin: 0 0 6px;
  color: #9da5b4;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

/* -----------------------------------------
   Effects / animation
----------------------------------------- */
.stc-hero__bg {
  animation: stcHeroBgDrift 36s linear infinite;
}

.stc-hero__brand-amicus {
  animation: stcSubtleGlow 3s ease-in-out infinite both;
}

.stc-form__input,
.stc-form__submit {
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.stc-form__input:focus-visible,
.stc-form__select:focus-visible,
.stc-form__textarea:focus-visible,
.stc-form__submit:hover {
  transform: translateY(-1px);
}

.stc-form__submit:disabled {
  transform: none;
}

@keyframes stcHeroBgDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 320px 320px;
  }
}

@keyframes stcSubtleGlow {
  0%,
  100% {
    text-shadow:
      0 0 6px rgba(226, 125, 96, 0.28),
      0 0 12px rgba(226, 125, 96, 0.16);
  }
  50% {
    text-shadow:
      0 0 10px rgba(226, 125, 96, 0.46),
      0 0 20px rgba(226, 125, 96, 0.24);
  }
}

/* =========================================================
   FLEX CAROUSEL — seam cleanup
========================================================= */

/* -----------------------------------------
   Base / layout
----------------------------------------- */
#flex-carousel.flex-carousel-section {
  position: relative;
  z-index: 3;
  overflow: hidden;
  margin: 0 !important;
  margin-top: -1px !important;
  padding-top: clamp(3.5rem, 6vw, 5rem) !important;
  padding-bottom: clamp(3.5rem, 6vw, 5rem) !important;
  border: 0 !important;
  box-shadow: none !important;
}

#flex-carousel.flex-carousel-section::before,
#flex-carousel.flex-carousel-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  z-index: 5;
}

#flex-carousel.flex-carousel-section::before {
  top: 0;
}

#flex-carousel.flex-carousel-section::after {
  bottom: 0;
}

#flex-carousel .section-title,
#flex-carousel .fc-container {
  margin-top: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

#flex-carousel .section-title {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
}

#flex-carousel .fc-container {
  margin-bottom: 0 !important;
}

/* -----------------------------------------
   Visuals
----------------------------------------- */
#flex-carousel.flex-carousel-section,
#testimonials.swiper-testimonials {
  background: #e3d8c6 !important;
}

#flex-carousel.flex-carousel-section::before,
#flex-carousel.flex-carousel-section::after {
  background: #e3d8c6;
}

#hero.hero.section.dark-background,
#testimonials.swiper-testimonials {
  border-top: 0 !important;
  box-shadow: none !important;
}

#hero.hero.section.dark-background {
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
}

#testimonials.swiper-testimonials {
  position: relative;
  z-index: 2;
  margin-top: -1px !important;
}

/* -----------------------------------------
   Responsive overrides
----------------------------------------- */
@media (max-width: 767.98px) {
  .stc-hero {
    padding: 108px 0 56px;
  }

  .stc-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stc-hero__card {
    border-radius: 20px;
  }

  .stc-hero__bg {
    background-size: 260px 260px;
  }

  @keyframes stcHeroBgDrift {
    from {
      background-position: 0 0;
    }
    to {
      background-position: 260px 260px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .stc-hero__bg,
  .stc-hero__brand-amicus {
    animation: none !important;
  }
}