.sf-lead-form {
  width: 100%;
}

.sf-lead-form .sf-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.sf-lead-form .sf-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: 20px;
  min-width: 0;
  box-sizing: border-box;
}

.sf-lead-form .sf-row .sf-field {
  margin-bottom: 0;
}

.sf-lead-form .sf-field--full {
  width: 100%;
  flex: none;
}

.sf-lead-form label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1px;
  color: #333;
}

.sf-lead-form label .sf-required {
  color: #c00;
  margin-left: 2px;
}

.sf-lead-form input[type="text"],
.sf-lead-form input[type="email"],
.sf-lead-form input[type="tel"],
.sf-lead-form select,
.sf-lead-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 15px;
  color: #333;
  background-color: #fff;
  box-sizing: border-box;
}

.sf-lead-form input[type="text"]:focus,
.sf-lead-form input[type="email"]:focus,
.sf-lead-form input[type="tel"]:focus,
.sf-lead-form select:focus,
.sf-lead-form textarea:focus {
  border-color: #4a8c3f;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 140, 63, 0.15);
}

.sf-lead-form textarea {
  height: 130px;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

.sf-lead-form .sf-row-half {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.sf-lead-form .sf-row-half .sf-field {
  flex: 0 0 calc(50% - 10px);
  margin-bottom: 0;
  min-width: 0;
  box-sizing: border-box;
}

.sf-lead-form .sf-submit {
  margin-top: 10px;
}

.sf-lead-form input[type="submit"] {
  background-color: #4a8c3f;
  color: #fff;
  border: none;
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sf-lead-form input[type="submit"]:hover {
  background-color: #3a6e31;
}

/* Validation states */
.sf-lead-form .sf-invalid {
  border-color: #c00 !important;
  box-shadow: 0 0 0 2px rgba(200, 0, 0, 0.15) !important;
}

.sf-lead-form .sf-error {
  display: block;
  color: #c00;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

#fnc-recaptcha-error {
  display: block;
  color: #c00;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .sf-lead-form .sf-row,
  .sf-lead-form .sf-row-half {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }

  .sf-lead-form .sf-row .sf-field,
  .sf-lead-form .sf-row-half .sf-field {
    margin-bottom: 20px;
    flex: 1;
  }
}
