/* =============================================================================
   ADHDity — 08-optin.css
   Section: 25. Opt-In Form (Fluent Forms / WordPress)
   ============================================================================= */

/* Container */
.elementor-widget-fluentform-fluent-form-widget .fluentform-widget-wrapper,
.fluentform-widget-wrapper {
  text-align: center; padding: 32px 24px 28px; max-width: 480px;
  margin: 0 auto; position: relative; border-radius: 20px;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 158, 87, 0.08) 0%, transparent 60%), #fefcfa;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.elementor-widget-fluentform-fluent-form-widget .fluentform-widget-wrapper::before,
.fluentform-widget-wrapper::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #f97316, #fb923c, #fdba74);
}

.fluentform-widget-heading .fluentform-widget-title {
  margin: 0 auto 4px; font-size: 16px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center; color: #f97316;
}

.ar-optin__title, h2.ar-optin__title {
  margin: 0 auto 8px !important; font-size: 24px !important; line-height: 1.2 !important;
  font-weight: 800 !important; letter-spacing: -0.02em; text-align: center !important;
  color: var(--ink, #1a1a1a) !important;
}

.ar-optin__subtitle, p.ar-optin__subtitle {
  margin: 0 auto 20px !important; max-width: 400px; font-weight: 500;
  font-size: 15px !important; line-height: 1.5 !important; text-align: center !important;
  color: var(--muted, #78716c) !important;
}

/* Pill list */
.ar-optin__list {
  list-style: none; padding: 0; margin: 0 auto 22px;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 8px; max-width: 400px;
}

.ar-optin__list li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px 6px 12px; font-size: 13.5px; font-weight: 600; color: #9a3412;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(251, 146, 60, 0.12));
  border: 1px solid rgba(249, 115, 22, 0.15); border-radius: 99px; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ar-optin__list li:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15); }

.ar-optin__list li::before {
  content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: #f97316; box-shadow: 0 0 6px rgba(249, 115, 22, 0.4);
}

/* Bullet list (checkmarks) */
.ar-optin__bullets { list-style: none; padding: 0; margin: 0 auto 24px; display: inline-block; text-align: left; }

.ar-optin__bullets li {
  position: relative; padding-left: 32px; margin: 10px 0;
  font-size: 15px; line-height: 1.55; font-weight: 500;
  color: var(--ink, #292524); transition: transform 0.2s ease;
}

.ar-optin__bullets li:hover { transform: translateX(3px); }

.ar-optin__bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 20px; height: 20px;
  border-radius: 7px; background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.ar-optin__bullets li::after {
  content: ""; position: absolute; left: 5.5px; top: calc(0.15em + 5px);
  width: 8px; height: 4.5px; border-left: 2.2px solid #fff;
  border-bottom: 2.2px solid #fff; transform: rotate(-45deg);
}

/* Form layout */
.fluentform-widget-wrapper .fluentform_wrapper_2,
.fluentform-widget-wrapper .frm-fluent-form,
.ar-optin__form { max-width: 340px; margin: 0 auto; display: grid; gap: 10px; }

.fluentform-widget-wrapper .ff-el-group { margin-bottom: 10px !important; text-align: center; }
.fluentform-widget-wrapper .ff-el-input--label { display: none; }

/* Email input */
.ff-el-input--content input[type="email"],
.ff-el-input--content input[type="text"],
.ff-el-input--content input,
.ar-optin__input {
  width: 100% !important; height: 48px !important; border-radius: 14px !important;
  border: 1.5px solid #e7e5e4 !important; padding: 0 10px !important;
  font-size: 14px !important; font-weight: 500; text-align: left;
  background: #fff !important; color: #1a1a1a !important;
  outline: none !important; box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ff-el-input--content input::placeholder, .ar-optin__input::placeholder { color: #a8a29e !important; font-weight: 400; text-align: left; }

.ff-el-input--content input:focus, .ar-optin__input:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transform: scale(1.01);
}

/* CTA button */
.fluentform-widget-wrapper .ff-btn-submit,
.ar-optin__cta {
  width: 100% !important; height: 50px !important; border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%) !important;
  background-size: 200% 200%; background-position: 0% 50%;
  color: #fff !important; font-size: 15px !important; font-weight: 800 !important;
  letter-spacing: 0.01em; text-align: center; cursor: pointer;
  position: relative; overflow: hidden; margin: 0 auto;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  transition: background-position 0.4s ease, box-shadow 0.25s ease, transform 0.12s ease;
}

.fluentform-widget-wrapper .ff-btn-submit::after,
.ar-optin__cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 0.5s ease;
}

.fluentform-widget-wrapper .ff-btn-submit:hover, .ar-optin__cta:hover {
  background-position: 100% 50%;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-1px);
}

.fluentform-widget-wrapper .ff-btn-submit:hover::after, .ar-optin__cta:hover::after { transform: translateX(100%); }

.fluentform-widget-wrapper .ff-btn-submit:active, .ar-optin__cta:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.25), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.fluent-forms {
  background: linear-gradient(to bottom, #ffffff 0%, #fbfbfb 100%);
  border-radius: 1px; padding: 1px; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.ar-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  .elementor-widget-fluentform-fluent-form-widget .fluentform-widget-wrapper,
  .fluentform-widget-wrapper { padding: 24px 18px 22px; border-radius: 16px; }
  .ar-optin__title, h2.ar-optin__title { font-size: 20px !important; }
  .ar-optin__list { gap: 6px; }
  .ar-optin__list li { font-size: 12.5px; padding: 5px 12px 5px 10px; }
  .fluentform-widget-wrapper .fluentform_wrapper_2,
  .fluentform-widget-wrapper .frm-fluent-form,
  .ar-optin__form { max-width: 100%; }
}
