/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
/* ============================================================
   Fluent Forms – WiCS newsletter + contact (styled to match
   the original Bricks forms). Scoped to their Bricks wrappers.
   ============================================================ */

/* ---------- Home newsletter ---------- */
#brxe-nwsfrm .fluentform,
#brxe-nwsfrm .fluentform form,
#brxe-nwsfrm .fluentform fieldset { width: 100%; }
#brxe-nwsfrm .fluentform form { max-width: 520px; margin: 0 auto; }
#brxe-nwsfrm .fluentform fieldset {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
#brxe-nwsfrm .ff-el-group { margin: 0; padding: 0; width: auto; }
#brxe-nwsfrm .wics-ff-field-email { flex: 1 1 auto; min-width: 0; }
#brxe-nwsfrm .ff-el-input--label { display: none; }
#brxe-nwsfrm .ff-el-form-control {
  width: 100%;
  height: 55px;
  padding: 14px 22px;
  border: 1px solid #e3e9e8;
  border-radius: 999px;
  background: #eef6f4;
  color: #0b1a19;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 23.25px;
  box-shadow: none;
}
#brxe-nwsfrm .ff-el-form-control::placeholder { color: #5d6b6a; opacity: 1; }
#brxe-nwsfrm .ff-el-form-control:focus {
  outline: none;
  border-color: #006461;
  box-shadow: 0 0 0 2px rgba(0, 100, 97, .12);
}
#brxe-nwsfrm .ff_submit_btn_wrapper { flex: 0 0 auto; margin: 0; width: auto; }
#brxe-nwsfrm .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #006461;
  color: #fff;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 23.25px;
  box-shadow: none;
}
#brxe-nwsfrm .ff-btn-submit:hover,
#brxe-nwsfrm .ff-btn-submit:focus { background: #00504e; color: #fff; }

/* ---------- Footer newsletter ---------- */
#brxe-ftrsgn .fluentform,
#brxe-ftrsgn .fluentform form,
#brxe-ftrsgn .fluentform fieldset { width: 100%; }
#brxe-ftrsgn .fluentform form { width: 279px; max-width: none; margin: 0; }
#brxe-ftrsgn .fluentform fieldset {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
#brxe-ftrsgn .ff-el-group { margin: 0; padding: 0; width: auto; }
#brxe-ftrsgn .wics-ff-field-email { flex: 1 1 auto; min-width: 0; }
#brxe-ftrsgn .ff-el-input--label { display: none; }
#brxe-ftrsgn .ff-el-form-control {
  width: 100%;
  height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 21.7px;
  box-shadow: none;
}
#brxe-ftrsgn .ff-el-form-control::placeholder { color: rgba(255, 255, 255, .72); opacity: 1; }
#brxe-ftrsgn .ff-el-form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .45);
  box-shadow: none;
}
#brxe-ftrsgn .ff_submit_btn_wrapper { flex: 0 0 46px; width: 46px; margin: 0; }
#brxe-ftrsgn .ff-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfe8e4;
  color: #004c4a;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  position: relative;
}
#brxe-ftrsgn .ff-btn-submit::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='20' height='20' fill='none'%3E%3Cpath d='M4 10h11M11 5l5 5-5 5' stroke='%23004c4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
#brxe-ftrsgn .ff-btn-submit:hover,
#brxe-ftrsgn .ff-btn-submit:focus { background: #ffffff; }

/* ---------- Contact form ---------- */
#brxe-ctcard .fluentform { width: 100%; }
#brxe-ctcard .fluentform form { margin: 0; }
#brxe-ctcard .fluentform fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}
#brxe-ctcard .ff-el-group {
  margin: 0 0 18px;
  padding: 0;
  min-width: 0;
}
#brxe-ctcard .wics-ff-field-half { grid-column: span 1; }
#brxe-ctcard .wics-ff-field-full { grid-column: 1 / -1; }
#brxe-ctcard .wics-ff-field-checkbox {
  grid-column: 1 / -1;
  margin: -3px 0 22px;
}
#brxe-ctcard .ff_submit_btn_wrapper {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 55px;
  margin: 0;
}
#brxe-ctcard .ff-el-input--label { display: block; margin: 0 0 6px; line-height: 20.15px; }
#brxe-ctcard .ff-el-input--label label {
  display: block;
  margin: 0;
  color: #006461;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 20.15px;
}
#brxe-ctcard .ff-el-input--label.ff-el-is-required.asterisk-right label::after {
  content: "*";
  color: #006461;
  font-size: 13px;
  font-weight: 600;
  margin-left: 2px;
}
#brxe-ctcard .ff-el-form-control {
  width: 100%;
  height: 49px;
  padding: 12px 16px;
  border: 1px solid #e3e9e8;
  border-radius: 12px;
  background: #fff;
  color: #0b1a19;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 22.5px;
  box-shadow: none;
}
#brxe-ctcard textarea.ff-el-form-control {
  height: 140px;
  border-radius: 16px;
  line-height: 23.25px;
  resize: vertical;
}
#brxe-ctcard select.ff-el-form-control {
  height: 49px;
  padding: 12px 16px;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}
#brxe-ctcard .ff-el-form-control:focus {
  outline: none;
  border-color: #006461;
  box-shadow: 0 0 0 2px rgba(0, 100, 97, .12);
}
#brxe-ctcard .wics-ff-field-checkbox .ff-el-input--content { display: flex; align-items: center; }
#brxe-ctcard .ff-el-form-check { margin: 0; }
#brxe-ctcard .ff-el-form-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b1a19;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21.7px;
  cursor: pointer;
}
#brxe-ctcard .ff-el-form-check-input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #006461;
}
#brxe-ctcard .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #006461;
  color: #fff;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 23.25px;
  box-shadow: none;
}
#brxe-ctcard .ff-btn-submit:hover,
#brxe-ctcard .ff-btn-submit:focus { background: #00504e; color: #fff; }

/* ---------- Shared: error + success messages ---------- */
.brxe-form .ff-errors-in-stack,
#brxe-nwsfrm .ff-errors-in-stack,
#brxe-ftrsgn .ff-errors-in-stack,
#brxe-ctcard .ff-errors-in-stack { margin-top: 8px; }
#brxe-nwsfrm .ff-el-input--content .error,
#brxe-ftrsgn .ff-el-input--content .error,
#brxe-ctcard .ff-el-input--content .error {
  color: #b3261e;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 6px;
}
#brxe-nwsfrm .ff-message-success,
#brxe-ftrsgn .ff-message-success,
#brxe-ctcard .ff-message-success {
  color: inherit;
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

/* Desktop: keep the original form width (and card width). */
@media (min-width: 768px) {
  #brxe-ctcard .fluentform fieldset { width: 555px; }
}

/* ---------- Contact mobile ---------- */
@media (max-width: 767px) {
  #brxe-ctcard .fluentform fieldset { grid-template-columns: 1fr; }
  #brxe-ctcard .wics-ff-field-half,
  #brxe-ctcard .wics-ff-field-full,
  #brxe-ctcard .wics-ff-field-checkbox,
  #brxe-ctcard .ff_submit_btn_wrapper { grid-column: 1 / -1; }
}

/* ---------- Home newsletter mobile ---------- */
@media (max-width: 600px) {
  #brxe-nwsfrm .fluentform form { max-width: none; }
  #brxe-nwsfrm .fluentform fieldset { flex-direction: column; gap: 10px; }
  #brxe-nwsfrm .wics-ff-field-email,
  #brxe-nwsfrm .ff_submit_btn_wrapper { flex: 1 1 auto; width: 100%; }
  #brxe-nwsfrm .ff-btn-submit { width: 100%; }
}

/* ---------- Footer newsletter mobile ---------- */
@media (max-width: 767px) {
  #brxe-ftrsgn .fluentform form { width: 100%; }
}