/* ==========================================================================
   Inline Lead Form — phone-only форма (блоки 2Б та 6)
   ========================================================================== */

/* === СЕКЦІЯ ПРОПОЗИЦІЇ ПРОБНОГО УРОКУ (блок 2Б) === */

.trial-offer-section {
  padding: 2.5rem 2rem;
  margin-bottom: var(--section-spacing-desktop);
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  /* Green styling moved from .trial-offer__content — overrides glass-section defaults */
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 2px solid rgba(76, 175, 80, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Plain layout wrapper — all visual styling removed */
.trial-offer__content {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.trial-offer__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 0.75rem 0;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.trial-offer__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem 0;
  text-align: center;
  line-height: 1.5;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* === СПИСОК ПЕРЕВАГ === */

.trial-offer__benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.trial-offer__benefits li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 0.625rem;
}

.trial-offer__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(76, 175, 80, 0.95);
  font-weight: 700;
  font-size: 1rem;
}

.trial-offer__disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.75rem 0 0 0;
}

/* === INLINE FORM LAYOUT === */

.inline-lead-form {
  max-width: 550px;
  margin: 0 auto;
}

.inline-lead-form__row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.inline-lead-form__field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.inline-lead-form__field .form-group__input {
  box-sizing: border-box;
  height: 52px;
  padding: 0 14px;
  font-size: 16px;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
}

.inline-lead-form__button {
  flex-shrink: 0;
  height: 52px;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* === СЕКЦІЯ "ЩЕ ЛИШИЛИСЬ ПИТАННЯ?" (блок 6) === */

.questions-form-section {
  padding: var(--section-padding-desktop);
  margin-bottom: var(--section-spacing-desktop);
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.questions-form__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.questions-form__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.questions-form__subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

/* === SUCCESS STATE === */

.inline-lead-form__success {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

/* === TABLET === */

@media (width >= 768px) and (width < 1024px) {
  .trial-offer-section {
    padding: 2rem 1.5rem;
  }

  .trial-offer__title {
    font-size: 1.85rem;
  }

  .questions-form__title {
    font-size: 1.85rem;
  }
}

/* === MOBILE === */

@media (width < 768px) {
  .trial-offer-section {
    padding: 1.5rem 0.75rem;
    margin-bottom: var(--section-spacing-mobile);
    max-width: calc(100vw - 2rem);
  }

  .trial-offer__title {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .trial-offer__subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
  }

  .trial-offer__benefits li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .inline-lead-form__row {
    flex-direction: column;
    gap: 0.375rem;
  }

  .inline-lead-form__field {
    width: 100%;
  }

  .inline-lead-form__field .form-group__input {
    width: 100%;
    box-sizing: border-box;
  }

  .inline-lead-form__button {
    width: 100%;
    min-height: 52px;
    font-size: 0.95rem;
  }

  .questions-form-section {
    padding: var(--section-padding-mobile);
    margin-bottom: var(--section-spacing-mobile);
    max-width: calc(100vw - 2rem);
  }

  .questions-form__title {
    font-size: 1.5rem;
  }

  .questions-form__subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
}

/* === VERY SMALL MOBILE === */

@media (width < 360px) {
  .trial-offer-section {
    padding: 1.25rem 0.625rem;
  }

  .trial-offer__title {
    font-size: clamp(1.1rem, 5vw, 1.3rem);
  }

  .inline-lead-form__button {
    font-size: 0.85rem;
    padding: 0 1rem;
  }

  .questions-form__title {
    font-size: 1.3rem;
  }
}

/* === iOS Safari === */

@supports (-webkit-touch-callout: none) {
  .trial-offer-section {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .inline-lead-form__field .form-group__input {
    font-size: 16px;
  }
}

/* === FALLBACK (no backdrop-filter support) === */

@supports not (backdrop-filter: blur(10px)) {
  .trial-offer-section {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* === REDUCED MOTION === */

@media (prefers-reduced-motion: reduce) {
  .inline-lead-form__button {
    transition: none;
  }
}
