/* IT Tutor Pro — /7-days-free-access/ split lead page (matches live) */

.ittp-free-access-body {
  margin: 0;
  background: #fff;
}

.ittp-free-access-body .ittp-skip-link {
  position: absolute;
  left: -999px;
}

.ittp-free-access-body .ittp-skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: #fff;
  padding: 0.5rem 0.75rem;
}

.ittp-free-access {
  font-family: var(--ittp-font-family);
  color: var(--ittp-text);
  min-height: 100vh;
}

.ittp-free-access__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.ittp-free-access__form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.ittp-free-access__form-inner {
  width: min(100%, 26rem);
  text-align: center;
}

.ittp-free-access__logo {
  display: inline-flex;
  margin: 0 auto 1rem;
}

.ittp-free-access__logo img {
  display: block;
  width: 7.5rem;
  height: auto;
}

.ittp-free-access__title {
  margin: 0 0 1.25rem;
  font-family: var(--ittp-font-family);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: #3d4a57;
}

.ittp-free-access__form-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--ittp-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 1.15rem 1.15rem 1.25rem;
}

.ittp-free-access__form-fallback {
  margin: 0;
  color: var(--ittp-muted);
  text-align: center;
}

/* Gravity Forms — match live lead card */
.ittp-free-access__form-card .gform_wrapper,
.ittp-free-access__form-card .gform_wrapper.gravity-theme {
  margin: 0;
}

.ittp-free-access__form-card .gform_heading,
.ittp-free-access__form-card .gform_validation_errors {
  margin-bottom: 0.75rem;
}

.ittp-free-access__form-card .gfield {
  margin-bottom: 0.7rem !important;
}

.ittp-free-access__form-card .gfield_label,
.ittp-free-access__form-card .gform-field-label {
  display: none;
}

.ittp-free-access__form-card .ginput_container input,
.ittp-free-access__form-card .ginput_container select,
.ittp-free-access__form-card .ginput_container textarea {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid #d7dee7;
  border-radius: 6px;
  background: #fff;
  padding: 0.55rem 0.75rem;
  font: inherit;
  color: var(--ittp-text);
  box-shadow: none;
}

.ittp-free-access__form-card .ginput_container input::placeholder {
  color: #8a97a8;
  font-style: italic;
}

.ittp-free-access__form-card .ginput_complex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.ittp-free-access__form-card .gform_footer,
.ittp-free-access__form-card .gform_page_footer {
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
}

.ittp-free-access__form-card .gform_button,
.ittp-free-access__form-card input[type="submit"] {
  width: 100%;
  min-height: 2.85rem;
  border: 0;
  border-radius: 6px;
  background: var(--ittp-navy) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.ittp-free-access__form-card .gform_button:hover,
.ittp-free-access__form-card input[type="submit"]:hover {
  background: var(--ittp-navy-deep) !important;
}

.ittp-free-access__form-card .ginput_recaptcha {
  margin-bottom: 0.35rem;
}

/* Fluent Forms fallback (local — Gravity Forms not installed) */
.ittp-free-access__fluent {
  width: 100%;
}

.ittp-free-access__form-card .fluentform .ff-el-group {
  margin-bottom: 0.85rem;
}

.ittp-free-access__form-card .fluentform .ff-el-input--label label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0c2340;
}

.ittp-free-access__form-card .fluentform .ff-el-group:has([name="first_name"]),
.ittp-free-access__form-card .fluentform .ff-el-group:has([name="last_name"]) {
  display: inline-block;
  width: calc(50% - 0.4rem);
  vertical-align: top;
}

.ittp-free-access__form-card .fluentform .ff-el-group:has([name="first_name"]) {
  margin-right: 0.8rem;
}

@media (max-width: 520px) {
  .ittp-free-access__form-card .fluentform .ff-el-group:has([name="first_name"]),
  .ittp-free-access__form-card .fluentform .ff-el-group:has([name="last_name"]) {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}

.ittp-free-access__form-card .fluentform input,
.ittp-free-access__form-card .fluentform select,
.ittp-free-access__form-card .fluentform textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 0.65rem 0.85rem !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 1rem !important;
  box-shadow: none !important;
}

.ittp-free-access__form-card .fluentform .ff-btn-submit,
.ittp-free-access__form-card .fluentform button[type="submit"] {
  width: 100% !important;
  min-height: 2.85rem;
  margin-top: 0.35rem;
  border: 0 !important;
  border-radius: 8px !important;
  background: #119cd3 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  cursor: pointer;
}

.ittp-free-access__form-card .fluentform .ff-btn-submit:hover,
.ittp-free-access__form-card .fluentform button[type="submit"]:hover {
  background: #0e8bb8 !important;
}

/* Hide empty/broken CAPTCHA shells that leave a blank gap */
.ittp-free-access__form-card .gfield--type-captcha:has(.ginput_recaptcha:empty),
.ittp-free-access__form-card .gfield--type-captcha:has(iframe[src="about:blank"]),
.ittp-free-access__form-card .ff-el-group:has([data-name="mobile_otp"]):not(:has(input:not([type="hidden"]))),
.ittp-free-access__form-card .ff-el-group.ff_captcha:empty {
  display: none;
}

.ittp-free-access__promo {
  background: var(--ittp-navy);
  color: #fff;
  display: flex;
  align-items: stretch;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 0;
  overflow: hidden;
}

.ittp-free-access__promo-inner {
  width: min(100%, 34rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ittp-free-access__promo-title {
  margin: 0 0 1rem;
  font-family: var(--ittp-font-family);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.ittp-free-access__promo-text {
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.ittp-free-access__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.ittp-free-access__benefits li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.ittp-free-access__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #fff;
}

.ittp-free-access__check svg {
  width: 1.05rem;
  height: 1.05rem;
}

.ittp-free-access__hero {
  margin: auto 0 0;
  padding-top: 1.5rem;
  text-align: center;
}

.ittp-free-access__hero img {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin-inline: auto;
}

@media (max-width: 960px) {
  .ittp-free-access__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ittp-free-access__form-pane {
    min-height: auto;
    padding-block: 2rem;
  }

  .ittp-free-access__promo {
    min-height: auto;
    padding-bottom: 0;
  }

  .ittp-free-access__hero img {
    width: min(100%, 18rem);
  }
}

@media (max-width: 480px) {
  .ittp-free-access__form-pane {
    padding-inline: 1rem;
  }

  .ittp-free-access__form-card {
    padding: 1rem 0.9rem 1.1rem;
  }

  .ittp-free-access__form-card .ginput_complex {
    grid-template-columns: 1fr;
  }

  .ittp-free-access__promo {
    padding-inline: 1rem;
  }

  .ittp-free-access__title {
    font-size: 1.35rem;
  }
}
