@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');

/* Bee Natural Contact Form - mobile-first v1.2 */
.bnclt-form-shell {
  --cream: #FDFBF7;
  --white: #ffffff;
  --charcoal: #2b2b2b;
  --muted: #665f55;
  --border: #eadfce;
  --green: #639A44;
  --green-dark: #4f7d36;
  --gold: #F2A51A;
  font-family: 'Open Sans', Arial, sans-serif;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  color: var(--charcoal);
  overflow: visible;
}

/* Fix for the temporary contact-page shortcode holder, so mobile is not squeezed */
.bn-shortcode-box:has(.bnclt-form-shell) {
  display: block !important;
  place-items: initial !important;
  text-align: left !important;
  min-height: auto !important;
  padding: clamp(14px, 3vw, 26px) !important;
}

.bn-form-card:has(.bnclt-form-shell) {
  overflow: visible !important;
}

.bnclt-form,
.bnclt-form * {
  box-sizing: border-box;
}

.bnclt-form {
  display: block;
  width: 100%;
}

.bnclt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

.bnclt-field {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
}

.bnclt-wide {
  grid-column: 1 / -1;
}

.bnclt-field label {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 900;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.25;
  margin: 0;
  text-align: left;
}

.bnclt-field input,
.bnclt-field select,
.bnclt-field textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 50px;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--charcoal) !important;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px !important; /* prevents iPhone zoom */
  line-height: 1.35 !important;
  padding: 13px 14px !important;
  outline: 0 !important;
  box-shadow: none !important;
  transition: all .2s ease;
  appearance: none;
}

.bnclt-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, #665f55 50%),
    linear-gradient(135deg, #665f55 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px !important;
}

.bnclt-field input:focus,
.bnclt-field select:focus,
.bnclt-field textarea:focus {
  border-color: rgba(99,154,68,.62) !important;
  box-shadow: 0 0 0 4px rgba(99,154,68,.12) !important;
}

.bnclt-field textarea {
  resize: vertical;
  min-height: 150px;
}

.bnclt-math {
  background: rgba(99,154,68,.08);
  border: 1px solid rgba(99,154,68,.18);
  border-radius: 18px;
  padding: 14px;
}

.bnclt-math-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.bnclt-math-row span {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(99,154,68,.12);
  border: 1px solid rgba(99,154,68,.20);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 900;
  white-space: nowrap;
  width: 100%;
}

.bnclt-math-row input {
  text-align: center;
  font-weight: 800;
}

.bnclt-submit {
  width: 100%;
  min-height: 54px;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--green) !important;
  color: #fff !important;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 900;
  font-size: 16px;
  margin-top: 16px;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 12px 28px rgba(99,154,68,.22);
}

.bnclt-submit:hover {
  background: var(--gold) !important;
  color: var(--charcoal) !important;
  transform: translateY(-1px);
}

.bnclt-small {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.bnclt-notice {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 900;
  line-height: 1.4;
}

.bnclt-success {
  background: rgba(99,154,68,.12);
  border: 1px solid rgba(99,154,68,.28);
  color: var(--green-dark);
}

.bnclt-error {
  background: rgba(196,59,45,.10);
  border: 1px solid rgba(196,59,45,.24);
  color: #8f2317;
}

.bnclt-honeypot {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Tablet and desktop */
@media (min-width: 760px) {
  .bnclt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .bnclt-math-row {
    grid-template-columns: auto 1fr;
  }

  .bnclt-math-row span {
    width: auto;
    min-width: 96px;
  }
}

/* Very narrow phone preview, including WP Customizer */
@media (max-width: 420px) {
  .bnclt-form-shell {
    max-width: 100%;
  }

  .bn-shortcode-box:has(.bnclt-form-shell) {
    padding: 10px !important;
    border-radius: 18px !important;
  }

  .bnclt-field label {
    font-size: 13px;
  }

  .bnclt-field input,
  .bnclt-field select,
  .bnclt-field textarea {
    border-radius: 12px !important;
    padding: 12px !important;
  }

  .bnclt-field textarea {
    min-height: 128px;
  }

  .bnclt-math {
    padding: 12px;
  }

  .bnclt-submit {
    min-height: 52px;
  }
}
