/* thrust-crm-forms.css */
.crm-form {
  margin: 0 auto;
}

.g-recaptcha.inline {
  margin: 0 0 20px 0;
}

.crm-form-container .crm-thank-you-message + form {
  display: none;
}

.crm-form-field {
  margin-bottom: 20px;
}

.crm-form-field label {
  margin-bottom: 8px;
}

/* Text Inputs */
.crm-form-field input[type="text"],
.crm-form-field input[type="email"],
.crm-form-field input[type="number"],
.crm-form-field input[type="tel"],
.crm-form-field input[type="url"],
.crm-form-field input[type="password"] {
  width: 100%;
  padding: 12px 15px;
}

/* Textarea */
.crm-form-field textarea {
  width: 100%;
  padding: 12px 15px;
  min-height: 120px;
  resize: vertical;
}

/* Select Dropdown */
.crm-form-field select {
  width: 100%;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
  margin: 0 10px 0 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.radio-option span,
.checkbox-option span {
  font-size: 15px;
  color: #444;
}

/* File Input */
.crm-form-field input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed #ddd;
  border-radius: 4px;
  background: #f8f8f8;
}

/* Submit Button */
.crm-form-submit {
  margin-top: 25px;
}

/* Required Field Indicators */
.crm-form-field input:required,
.crm-form-field textarea:required,
.crm-form-field select:required {
  border-left: 3px solid #ff6b6b;
}

/* Responsive Adjustments */
@media (max-width: 480px) {  
  .radio-group,
  .checkbox-group {
      gap: 8px;
  }
}

.name-fields-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.name-subfield {
  position: relative;
  flex: 1 1 auto;
  min-width: 120px;
}

.name-subfield select,
.name-subfield input {
  width: 100%;
}

.name-sublabel {
  display: block;
  font-size: 0.8em;
  color: #666;
}

.name-sublabel-below {
  margin-top: 5px;
}

.name-sublabel-above {
  margin-bottom: 5px;
}