/* Landing page form -- shortcode [getLandingPageForm] */
.web-to-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin: 0 auto;
  padding-top: 1em;
}

/* Side-by-side rows */
.web-to-lead-form .form-row {
  display: flex;
  gap: 0.6em;
}

.web-to-lead-form .form-row .form-field {
  flex: 1;
  min-width: 0;
}

.web-to-lead-form .form-row .form-field .input {
  width: 100%;
}

/* Consistent field styling */
.web-to-lead-form .input,
.web-to-lead-form input[type="text"],
.web-to-lead-form input[type="email"],
.web-to-lead-form input[type="tel"],
.web-to-lead-form select {
  width: 100%;
  height: auto !important;
  padding: 0.75em;
  font-size: 16px;
  border: 1px solid #c5cdd4;
  border-radius: 6px;
  color: #333;
  background-color: #fff;
  box-sizing: border-box;
  margin-bottom: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.web-to-lead-form .input:focus,
.web-to-lead-form input[type="text"]:focus,
.web-to-lead-form input[type="email"]:focus,
.web-to-lead-form input[type="tel"]:focus,
.web-to-lead-form select:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.web-to-lead-form .input::placeholder,
.web-to-lead-form input::placeholder,
.web-to-lead-form textarea::placeholder {
  color: #8e99a4;
}

/* Match select placeholder color to inputs */
.web-to-lead-form select:invalid,
.web-to-lead-form select option[disabled] {
  color: #8e99a4;
}

.web-to-lead-form select option {
  color: #333;
}

/* Type of Matter label */
.web-to-lead-form label {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: -0.2em;
}

/* Textarea */
.web-to-lead-form textarea {
  width: 100%;
  padding: 0.75em;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #c5cdd4;
  border-radius: 6px;
  color: #333;
  background-color: #fff;
  box-sizing: border-box;
  margin-bottom: 0;
  min-height: 6em;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.web-to-lead-form textarea:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

/* "Tell Us More" label -- lighter weight */
.web-to-lead-form .et_pb_contact_form_label {
  font-weight: 400;
  font-size: 14px;
  color: #555;
}

/* Submit button */
.web-to-lead-form .slo-button {
  width: auto;
  align-self: center;
  padding: 0.8em 3em;
  margin-top: 0.25em;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

/* Validation error state */
.web-to-lead-form .field-error {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1) !important;
}

.web-to-lead-form .field-error-msg {
  display: block;
  color: #d93025;
  font-size: 13px;
  margin-top: 0.2em;
  line-height: 1.3;
}

/* Toast notification on failed submit */
.web-to-lead-form .form-toast {
  background: #fef2f2;
  border-left: 4px solid #d93025;
  color: #991b1b;
  font-size: 14px;
  font-weight: 500;
  padding: 0.7em 1em;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.web-to-lead-form .form-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stack rows on narrow screens */
@media (max-width: 480px) {
  .web-to-lead-form .form-row {
    flex-direction: column;
  }
}
