/* Contact form — styles carried over unchanged from the original site's form widget. */
#fjw-con *, #fjw-con *::before, #fjw-con *::after {
  box-sizing: border-box;
}
#fjw-con h1, #fjw-con h2, #fjw-con h3, #fjw-con h4,
#fjw-con h5, #fjw-con h6, #fjw-con p, #fjw-con ul,
#fjw-con ol, #fjw-con li {
  margin: 0; padding: 0;
}

/* ── Wrapper ── */
#fjw-con {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Arial, sans-serif;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px;
  -webkit-font-smoothing: antialiased;
}

/* ── Card ── */
#fjw-con .fjw-card {
  background: #ffffff;
  border-radius: 8px;
  border-top: 4px solid #35b647;
  box-shadow: 0 10px 40px rgba(20,28,36,0.14), 0 1px 4px rgba(20,28,36,0.08);
  overflow: hidden;
}

/* ── Header: dark industrial slate w/ corrugated-container stripes ── */
#fjw-con .fjw-head {
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.03) 0px,  rgba(255,255,255,0.03) 2px,
      transparent 2px, transparent 26px),
    linear-gradient(150deg, #161d24 0%, #1f2a34 55%, #27343f 100%);
  padding: 42px 48px 44px;
  text-align: center;
}
#fjw-con .fjw-head-icon {
  width: 62px; height: 62px;
  background: rgba(53,182,71,0.14);
  border: 2px solid rgba(97,206,112,0.45);
  border-radius: 6px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
#fjw-con .fjw-head h2 {
  font-family: 'Krona One', 'Space Grotesk', Arial, sans-serif;
  font-size: 19px; font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.35;
  margin-bottom: 10px;
}
#fjw-con .fjw-head p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}
#fjw-con .fjw-head-tel {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px;
  padding: 9px 18px;
  background: rgba(53,182,71,0.12);
  border: 1px solid rgba(97,206,112,0.35);
  border-radius: 5px;
  font-size: 15px; font-weight: 600;
  color: #61ce70;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
#fjw-con .fjw-head-tel:hover {
  background: rgba(53,182,71,0.22);
  border-color: rgba(97,206,112,0.6);
  color: #7fdd8c;
}

/* ── Form body ── */
#fjw-con .fjw-body {
  padding: 34px 48px 44px;
  transition: opacity 0.3s;
}

/* ── Field ── */
#fjw-con .fjw-field { margin-bottom: 20px; }
#fjw-con .fjw-label {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 12px; font-weight: 700;
  color: #4a545e;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
#fjw-con .fjw-req { color: #db3a22; }
#fjw-con .fjw-opt {
  font-size: 10.5px; font-weight: 500;
  color: #9aa4ad; letter-spacing: 0;
  text-transform: none;
}

#fjw-con .fjw-input {
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid #cdd5db;
  border-radius: 5px;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 15.5px; font-weight: 400;
  line-height: 1.4;
  color: #1f2a34;
  background: #f8faf9;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
#fjw-con .fjw-input::placeholder { color: #aeb8c0; opacity: 1; }
#fjw-con .fjw-input:focus {
  border-color: #35b647;
  box-shadow: 0 0 0 4px rgba(53,182,71,0.13);
  background: #ffffff;
}
#fjw-con .fjw-input.fjw-has-err {
  border-color: #db3a22;
  box-shadow: 0 0 0 4px rgba(219,58,34,0.09);
}

/* ── Select (service) ── */
#fjw-con select.fjw-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a545e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
#fjw-con select.fjw-input.fjw-placeholder,
#fjw-con select.fjw-input option[value=""] { color: #aeb8c0; }
#fjw-con select.fjw-input option { color: #1f2a34; }

/* ── Textarea ── */
#fjw-con .fjw-textarea {
  min-height: 130px;
  line-height: 1.55;
  font-family: 'Space Grotesk', Arial, sans-serif;
  resize: vertical;
}

#fjw-con .fjw-err-msg {
  font-size: 12.5px; color: #db3a22;
  margin-top: 5px;
  display: none;
  align-items: center; gap: 4px;
}
#fjw-con .fjw-err-msg.show { display: flex; }

/* ── Two-column rows ── */
#fjw-con .fjw-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Phone row ── */
#fjw-con .fjw-phone-row { display: flex; gap: 8px; }
#fjw-con .fjw-phone-pfx {
  display: flex; align-items: center; gap: 6px;
  padding: 13px 14px;
  border: 1px solid #cdd5db;
  border-radius: 5px;
  background: #f8faf9;
  font-size: 14px; color: #4a545e;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
#fjw-con .fjw-phone-row .fjw-input { flex: 1; }

/* ── Honeypot: visually gone, still in the DOM for bots ── */
#fjw-con .fjw-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── Divider ── */
#fjw-con .fjw-divider {
  border: none; border-top: 1px solid #eef1f3;
  margin: 4px 0 24px;
}

/* ── Submit button ── */
#fjw-con .fjw-btn {
  width: 100%;
  margin: 4px 0 0;
  padding: 16px 30px;
  background: #35b647;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 15.5px; font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(53,182,71,0.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
#fjw-con .fjw-btn:hover:not(:disabled) {
  background: #2da03d;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(53,182,71,0.42);
}
#fjw-con .fjw-btn:active:not(:disabled) { transform: translateY(0); }
#fjw-con .fjw-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Spinner ── */
#fjw-con .fjw-spin {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fjw-rotate 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes fjw-rotate { to { transform: rotate(360deg); } }

/* ── Privacy note ── */
#fjw-con .fjw-privacy {
  text-align: center;
  font-size: 11.5px; color: #9aa4ad;
  margin-top: 16px; line-height: 1.5;
}

/* ── Thank-you panel ── */
#fjw-con .fjw-ty {
  display: none;
  padding: 58px 48px;
  text-align: center;
}
#fjw-con .fjw-ty-circle {
  width: 76px; height: 76px;
  background: rgba(53,182,71,0.14);
  border: 2px solid rgba(53,182,71,0.35);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  animation: fjw-pop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes fjw-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
#fjw-con .fjw-ty h3 {
  font-family: 'Krona One', 'Space Grotesk', Arial, sans-serif;
  font-size: 20px; font-weight: 400;
  text-transform: uppercase;
  color: #1f2a34;
  margin-bottom: 12px;
}
#fjw-con .fjw-ty p {
  font-size: 15px; color: #5b656e;
  line-height: 1.65; margin-bottom: 28px;
}
#fjw-con .fjw-btn-ghost {
  padding: 12px 26px;
  border: 1px solid #cdd5db;
  border-radius: 5px;
  background: transparent;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 14px; font-weight: 600; color: #4a545e;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
#fjw-con .fjw-btn-ghost:hover {
  border-color: #35b647; color: #35b647; background: rgba(53,182,71,0.05);
}

/* ── Motion preference ── */
@media (prefers-reduced-motion: reduce) {
  #fjw-con .fjw-ty-circle { animation: none; }
  #fjw-con .fjw-btn:hover:not(:disabled) { transform: none; }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  #fjw-con { padding: 14px 10px; }
  #fjw-con .fjw-head { padding: 34px 24px 36px; }
  #fjw-con .fjw-body { padding: 28px 24px 36px; }
  #fjw-con .fjw-ty   { padding: 46px 24px; }
  #fjw-con .fjw-two-col { grid-template-columns: 1fr; gap: 20px; }
  #fjw-con .fjw-head h2 { font-size: 16px; }
}

/* Additions for the PHP rebuild */
#fjw-con label.fjw-label { cursor: pointer; }
#fjw-con .fjw-form-alert {
  margin-bottom: 20px; padding: 12px 14px;
  border: 1px solid rgba(219,58,34,0.35); border-radius: 5px;
  background: rgba(219,58,34,0.06); color: #db3a22; font-size: 14px;
}
