/**
 * Contact form presentation.
 */

.eko-site .eko-contact-form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgb(31 31 31 / 8%);
  border-radius: var(--eko-radius-lg);
  background: var(--eko-color-mist);
  box-shadow: 0 24px 70px rgb(31 31 31 / 8%);
}

.eko-site .eko-contact-form-card h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.eko-site .eko-contact-form-card > p {
  margin-bottom: 1.75rem;
  color: var(--eko-color-muted);
}

.eko-site .fluentform {
  --eko-form-border: rgb(31 31 31 / 16%);
}

.eko-site .fluentform .ff-el-group {
  margin-bottom: 1.15rem;
}

.eko-site .fluentform .ff-el-input--label label {
  margin-bottom: 0.45rem;
  color: var(--eko-color-ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eko-site .fluentform input:not([type="checkbox"]),
.eko-site .fluentform select,
.eko-site .fluentform textarea {
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--eko-form-border);
  border-radius: 10px;
  background: var(--eko-color-white);
  color: var(--eko-color-ink);
  box-shadow: none;
}

.eko-site .fluentform textarea {
  min-height: 132px;
  resize: vertical;
}

.eko-site .fluentform input:focus,
.eko-site .fluentform select:focus,
.eko-site .fluentform textarea:focus {
  border-color: var(--eko-color-lime-dark);
  outline: 3px solid rgb(209 213 69 / 25%);
  box-shadow: none;
}

.eko-site .fluentform .ff-el-tc {
  align-items: flex-start;
}

.eko-site .fluentform .ff_tc_checkbox {
  padding-top: 0.15rem;
}

.eko-site .fluentform .ff_t_c {
  color: var(--eko-color-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.eko-site .fluentform .ff_t_c a {
  color: var(--eko-color-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eko-site .fluentform .ff-btn-submit {
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--eko-color-lime);
  border-radius: 999px;
  background: var(--eko-color-lime);
  color: var(--eko-color-ink);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  box-shadow: none;
}

.eko-site .fluentform .ff-btn-submit:hover,
.eko-site .fluentform .ff-btn-submit:focus {
  border-color: var(--eko-color-ink);
  background: var(--eko-color-ink);
  color: var(--eko-color-white);
}

.eko-site .fluentform .ff-el-is-error .ff-el-form-control {
  border-color: #b42318;
}

.eko-site .fluentform .error {
  color: #b42318;
  font-size: 0.82rem;
}

.eko-site .fluentform .ff-message-success {
  margin: 0;
  padding: 1.25rem;
  border: 0;
  border-left: 4px solid var(--eko-color-lime-dark);
  border-radius: 0 10px 10px 0;
  background: #f7f8e8;
  box-shadow: none;
}

@media (max-width: 849px) {
  .eko-site .eko-contact-form-card {
    margin-top: 1.5rem;
  }
}

/* Product lead forms are intentionally compact and single-column. */
.eko-product-modal .fluentform .ff-el-group {
  margin-bottom: 0.9rem;
}

.eko-product-modal .fluentform .ff-el-input--label label {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.eko-product-modal .fluentform input:not([type="checkbox"]),
.eko-product-modal .fluentform select {
  min-height: 48px;
}

.eko-product-modal .fluentform textarea {
  min-height: 110px;
}

.eko-product-modal .fluentform .ff_t_c {
  font-size: 0.78rem;
  line-height: 1.45;
}

.eko-product-modal .fluentform .ff_tc_label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
}

.eko-product-modal .fluentform .ff_tc_checkbox {
  flex: 0 0 auto;
  padding-top: 0.2rem;
}

.eko-product-modal .fluentform .ff_t_c {
  flex: 1 1 auto;
}

.eko-product-modal .fluentform .ff-btn-submit {
  width: 100%;
  min-height: 50px;
  border-radius: 4px;
}

.eko-product-modal .fluentform .ff-message-success {
  padding: 1.5rem;
}

.eko-product-modal .fluentform .ff-message-success h3 {
  margin-bottom: 0.45rem;
  font-size: 1.45rem;
}

.eko-product-modal .fluentform .ff-message-success p:last-child {
  margin-bottom: 0;
}
