/* Main form container */
.my-webform {
  max-width: 600px;        /* Restrict the form’s width for a cleaner, centered look */
  margin: 2rem auto;       /* Centers the form and provides vertical spacing */
  background-color: #fff;  /* White background for contrast */
  padding: 2rem;           /* Comfortable padding all around */
  border-radius: 8px;      /* Rounded corners for a modern feel */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
  font-family: 'Open Sans', sans-serif;     /* Pick a clean, readable font */
}

/* Form headings or titles (if you have any) */
.my-webform .form-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

/* Each form item wrapper */
.my-webform .form-item {
  margin-bottom: 1.25rem;
}

/* Labels */
.my-webform label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #333;
}

/* Text fields, email fields, select fields */
.my-webform input[type="text"],
.my-webform input[type="email"],
.my-webform input[type="tel"], /* if you have phone fields */
.my-webform select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  color: #555;
  box-sizing: border-box; /* Ensures padding doesn’t break the layout */
  transition: border-color 0.3s;
}

/* Focus states on input & select */
.my-webform input[type="text"]:focus,
.my-webform input[type="email"]:focus,
.my-webform input[type="tel"]:focus,
.my-webform select:focus {
  border-color: #007bff; /* Subtle highlight color on focus */
  outline: none;         /* Remove default browser outline */
}

/* Submit button */
.my-webform input[type="submit"],
.my-webform button.form-submit {
  background-color: #007bff; /* Primary color for CTA button */
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Hover state for button */
.my-webform input[type="submit"]:hover,
.my-webform button.form-submit:hover {
  background-color: #0056b3; /* Slightly darker hover color */
}

/* If you have error messages, style them: */
.my-webform .messages.error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
