/* =========================================================================
   Single post — Share row + Newsletter box + Contact form
   ========================================================================= */

.post-share {
  padding: 75px 0;
  background: #FAFAFA;
}

.post-share__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: start;
}

/* --- Left column --------------------------------------------------------- */
.post-share__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  gap: 32px;
}

/* --- Share row ----------------------------------------------------------- */
.post-share__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-share__label {
  color: #BDBDBD;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

.post-share__icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.post-share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.post-share__icon:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.post-share__icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

/* --- Toast notification -------------------------------------------------- */
.post-share__toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  z-index: 9999;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 40px;
  background: #293948;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(41, 57, 72, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.post-share__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --- Newsletter box ------------------------------------------------------ */
.post-share__nl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: 20px;
  background: #FFEDEA;
}

.post-share__nl-title {
  margin: 0;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 700;
  font-size: 24px;
  line-height: 135%;
  letter-spacing: 0.01em;
}

.post-share__nl-desc {
  margin: 0;
  color: #757575;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

/* Newsletter form — Fluent Form inline pill (email + submit) */
.post-share__nl-form .fluentform,
.post-share__nl-form form,
.post-share__nl-form fieldset {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.post-share__nl-form .ff-el-group {
  margin: 0 !important;
}

.post-share__nl-form .ff-el-input--label {
  display: none !important;
}

/* Pill wrapper: input + button side by side inside a white rounded bar */
.post-share__nl-form .ff-t-container.ff-column-container,
.post-share__nl-form .ff_columns_total_2 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 4px !important;
  background: #FFFFFF !important;
  border-radius: 40px !important;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.post-share__nl-form .ff-t-cell {
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Override Fluent's inline flex-basis AND their mobile flex-basis:100%!important */
.post-share__nl-form .ff-t-container.ff-column-container .ff-t-cell.ff-t-column-1,
.post-share__nl-form .ff_columns_total_2 .ff-t-cell.ff-t-column-1 {
  flex: 1 1 0 !important;
  flex-basis: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.post-share__nl-form .ff-t-container.ff-column-container .ff-t-cell.ff-t-column-2,
.post-share__nl-form .ff_columns_total_2 .ff-t-cell.ff-t-column-2 {
  flex: 0 0 auto !important;
  flex-basis: auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: stretch !important;
}

.post-share__nl-form .ff-t-cell .ff-el-group {
  width: 100%;
  display: flex;
  align-items: center;
}

.post-share__nl-form .ff-t-cell .ff-el-input--content {
  width: 100%;
  display: flex;
  align-items: center;
}

/* Email input — borderless, transparent, fills width */
.post-share__nl-form input[type="email"].ff-el-form-control,
.post-share__nl-form input[type="text"].ff-el-form-control {
  width: 100% !important;
  height: 40px !important;
  padding: 0 12px 0 20px !important;
  border: 0 !important;
  border-radius: 40px !important;
  background: transparent !important;
  color: #293948 !important;
  font-family: var(--font-hn) !important;
  font-weight: 300 !important;
  font-size: 16px !important;
  line-height: 150% !important;
  letter-spacing: 0.01em;
  box-sizing: border-box !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.post-share__nl-form input.ff-el-form-control::placeholder {
  color: #BDBDBD !important;
  opacity: 1;
}

/* Kill Fluent's rendered <style> tags inside the wrappers */
.post-share__nl-form style {
  display: none !important;
}

/* Submit button wrapper — line up flush, no extra space */
.post-share__nl-form .ff_submit_btn_wrapper,
.post-share__nl-form .ff-el-group.ff_submit_btn_wrapper,
.post-share__nl-form .ff-el-group.ff-text-left.ff_submit_btn_wrapper {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  height: 40px !important;
  line-height: 0 !important;
}

.post-share__nl-form .ff-btn-submit,
.post-share__nl-form .wpf_has_custom_css.ff-btn-submit,
.post-share__nl-form form .wpf_has_custom_css.ff-btn-submit {
  min-width: 0 !important;
  width: auto !important;
  height: 40px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 40px !important;
  background: #293948 !important;
  background-color: #293948 !important;
  color: #FFFFFF !important;
  font-family: var(--font-hn) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.post-share__nl-form .ff-btn-submit:hover,
.post-share__nl-form .wpf_has_custom_css.ff-btn-submit:hover,
.post-share__nl-form form .wpf_has_custom_css.ff-btn-submit:hover {
  background: #D85401 !important;
  background-color: #D85401 !important;
}

/* --- Right column (reuses clinic-cta__box styles) ------------------------- */
.post-share__right {
  display: block;
}

.post-share__box {
  height: 100%;
}

/* Override input/textarea/select radius inside the post-share form only */
.post-share__box.clinic-cta__box .clinic-cta__body input[type="text"].ff-el-form-control,
.post-share__box.clinic-cta__box .clinic-cta__body input[type="email"].ff-el-form-control,
.post-share__box.clinic-cta__box .clinic-cta__body input[type="tel"].ff-el-form-control,
.post-share__box.clinic-cta__box .clinic-cta__body input[type="number"].ff-el-form-control,
.post-share__box.clinic-cta__box .clinic-cta__body input[type="url"].ff-el-form-control,
.post-share__box.clinic-cta__box .clinic-cta__body textarea.ff-el-form-control,
.post-share__box.clinic-cta__box .clinic-cta__body select.ff-el-form-control {
  border-radius: 4px !important;
}

/* MISA WebForm in the article contact box. */
.post-share__box .clinic-cta__body #crmWebToEntityForm,
.post-share__box .clinic-cta__body #crmWebToEntityForm form,
.post-share__box .clinic-cta__body #crmWebToEntityForm table {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm table {
  border: 0;
  border-spacing: 0;
  background: transparent !important;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 40px;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm tr {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm tr:first-child {
  display: none;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm tr:nth-child(2),
.post-share__box .clinic-cta__body #crmWebToEntityForm tr:nth-child(5),
.post-share__box .clinic-cta__body #crmWebToEntityForm tr:nth-child(6),
.post-share__box .clinic-cta__body #crmWebToEntityForm tr:nth-child(7) {
  grid-column: 1 / -1;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm td {
  display: block;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0;
  color: #293948;
  font-family: var(--font-hn) !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.01em;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm tr:not(:last-child) td:first-child {
  margin-bottom: 10px;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm td span[style*='color:red'] {
  display: none;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm td > input[type='text'],
.post-share__box .clinic-cta__body #crmWebToEntityForm td > textarea {
  display: block;
  width: 100% !important;
  max-width: none !important;
  padding: 16px 20px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fafafa;
  color: #293948;
  font-family: var(--font-hn);
  font-size: 16px;
  font-weight: 300;
  line-height: 150%;
  box-sizing: border-box;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm td > textarea {
  min-height: 136px;
  resize: vertical;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm input::placeholder,
.post-share__box .clinic-cta__body #crmWebToEntityForm textarea::placeholder {
  color: #bdbdbd;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm tr:last-child td {
  padding-top: 4px !important;
  text-align: center !important;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm input[type='submit'] {
  min-width: 180px;
  padding: 8px 20px;
  border: 0;
  border-radius: 40px;
  background: #d85401;
  color: #fff !important;
  font-family: var(--font-hn);
  font-size: 16px !important;
  font-weight: 500;
  line-height: 150%;
  cursor: pointer;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm input[type='submit']:hover {
  background: #293948;
}

.post-share__box .clinic-cta__body #crmWebToEntityForm input[type='reset'] {
  display: none;
}

/* --- Responsive ---------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .post-share__grid {
    gap: 48px;
  }
}

@media screen and (max-width: 767px) {
  .post-share {
    padding: 48px 0;
  }

  .post-share__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .post-share__nl {
    padding: 24px;
  }

  .post-share__nl-title {
    font-size: 20px;
  }

  .post-share__box .clinic-cta__body #crmWebToEntityForm tbody {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-share__box .clinic-cta__body #crmWebToEntityForm tr {
    grid-column: 1 / -1;
  }
}
