/* Ensure form text and labels are visible */
.webToLeadForm input,
.webToLeadForm textarea,
.webToLeadForm select,
.webToLeadForm label,
.webToLeadForm button,
.webToLeadForm option,
.webToLeadForm * {
  color: #000 !important;
}

/* Responsive two-column grid for webFormv2 */
.webToLeadForm .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
  box-sizing: border-box;
}

.webToLeadForm .col-sm-4,
.webToLeadForm .col-sm-8 {
  padding: 0 0.5rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .webToLeadForm .col-sm-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
  .webToLeadForm .col-sm-8 {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
  }
}

@media (max-width: 767.98px) {
  .webToLeadForm .col-sm-4,
  .webToLeadForm .col-sm-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Basic form-control styling */
.webToLeadForm .form-control,
.webToLeadForm input,
.webToLeadForm textarea,
.webToLeadForm select {
  width: 100%;
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* Spacing around each field wrapper */
.webToLeadForm .form-group {
  margin-bottom: 1rem;
}


/* Ensure all form text is black */
.webToLeadForm,
.webToLeadForm input,
.webToLeadForm textarea,
.webToLeadForm select,
.webToLeadForm label,
.webToLeadForm .control-label,
.webToLeadForm option {
    color: #000 !important;
}
