.greenhouse-application-form {
  max-width: 800px;
  margin: 2rem auto;
  font-family: inherit;
}

.greenhouse-form-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.greenhouse-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.greenhouse-form-field label {
  color: #44194999;
  font-size: 16px;
}

/* Hide label when field has value */
.greenhouse-form-field input:not(:placeholder-shown) + label,
.greenhouse-form-field textarea:not(:placeholder-shown) + label,
.greenhouse-form-field select:not(:placeholder-shown) + label {
  opacity: 0;
}

/* Adjust textarea label position since it has different height */
.greenhouse-form-field textarea + label {
  top: 20px;
  transform: none;
}

.greenhouse-form-field-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.greenhouse-form-field-content.multiple-fields {
  /* border: 1px solid #44194999; */
  border-radius: 12px;
  padding: 15px 0;
}

.greenhouse-field-option {
  padding: 1rem;
  background-color: #ffffff;
  border: none;
  border-radius: 12px;
}

.greenhouse-field-separator {
  position: relative;
  text-align: center;
  margin: 0.5rem 0;
}

.greenhouse-field-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #ffffff;
  z-index: 1;
}

.greenhouse-field-separator span {
  position: relative;
  z-index: 2;
  background-color: #fff;
  padding: 0 1rem;
  color: #44194999;
  font-weight: 500;
  font-size: 0.875rem;
}

.greenhouse-field-help-text {
  color: #44194999;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.greenhouse-form-field input[type="text"],
.greenhouse-form-field input[type="email"],
.greenhouse-form-field input[type="tel"],
.greenhouse-form-field textarea,
.greenhouse-form-field select {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: 12px;
  transition: border-color 0.2s;
  font-size: 16px;
  background-color: #fff;
  color: #44194999;
}

/* Make sure placeholder is transparent to not overlap with label */
.greenhouse-form-field input::placeholder,
.greenhouse-form-field textarea::placeholder,
.greenhouse-form-field select::placeholder {
  color: transparent;
}

/* Special handling for file inputs since they can't have :placeholder-shown */
.greenhouse-form-field input[type="file"] + label {
  top: 20px;
  transform: none;
}

.greenhouse-form-field input[type="file"]:not(:focus) + label {
  opacity: 1;
}

/* Style the select dropdown arrow */
.greenhouse-form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23441949' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 25px center;
  padding-right: 50px;
}

/* Ensure file inputs maintain consistent styling */
.greenhouse-form-field input[type="file"] {
  padding: 20px 25px;
  border-radius: 12px;
}

/* Update error state to maintain new border-radius */
.greenhouse-form-field.has-error input,
.greenhouse-form-field.has-error textarea,
.greenhouse-form-field.has-error select {
  border-color: #dc3545;
  border-radius: 12px;
}

/* Ensure education fields maintain consistent styling */
.education-fields input[type="text"],
.education-fields input[type="email"],
.education-fields input[type="tel"],
.education-fields textarea,
.education-fields select {
  padding: 20px 25px;
  border-radius: 12px;
}

.greenhouse-form-field .required {
  color: #dc3545;
  margin-left: 0.1rem;
}

.greenhouse-error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.greenhouse-form-actions {
  margin-top: 2rem;
}

.greenhouse-submit-button {
  padding: 0.75rem 1.5rem;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.greenhouse-submit-button:hover {
  background-color: #005a87;
}

.greenhouse-submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.greenhouse-form-response {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.greenhouse-form-response.greenhouse-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.greenhouse-form-response.greenhouse-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* File input styling */
.greenhouse-form-field input[type="file"] {
  padding: 0.5rem;
  border: 1px dashed #ddd;
  border-radius: 4px;
  background-color: #F3F3F3;
}

.greenhouse-form-field input[type="file"]:hover {
  border-color: #0073aa;
}

/* Help text for file uploads */
.greenhouse-form-field .file-help-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Education Section Styles */
.education-fields {
  grid-column: 1 / -1;
  /* border: 1px solid #44194999; */
  border-radius: 12px;
  padding: 15px 0;
}

.education-fields h3,
.education-fields h4 {
  margin-bottom: 1em;
  color: var( --e-global-color-secondary );
}

.education-entry {
  position: relative;
  margin-bottom: 2em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #ffffff;
}

.education-entry:last-child {
  margin-bottom: 0;
}

.add-education {
  background-color: #0073aa;
  color: #fff;
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1em;
  transition: background-color 0.2s;
}

.add-education:hover {
  background-color: #005c8a;
}

.remove-education {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  background-color: #dc3232;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  transition: background-color 0.2s;
}

.remove-education:hover {
  background-color: #b32d2d;
}

.education-entry .greenhouse-form-field {
  margin-bottom: 1em;
}

.education-entry .date-inputs {
  display: flex;
  gap: 1em;
}

.education-entry .date-inputs .greenhouse-form-field {
  flex: 1;
}

/* Make file upload fields span both columns */
.greenhouse-form-field:has(input[type="file"]),
.greenhouse-form-field:has(.file-help-text) {
  grid-column: 1 / -1;
}

/* Responsive layout */
@media (max-width: 768px) {
  .greenhouse-form-fields {
    grid-template-columns: 1fr;
  }
}

.greenhouse-button-primary {
  background-color: #8A8BFF!important;
  border-radius: 56px!important;
  padding: 10px 15px!important;
  color: #ffffff!important;
  border: none!important;
  height: auto!important;
}

.greenhouse-button-secondary {
  background-color: #441949!important;
  border-radius: 56px!important;
  padding: 10px 15px!important;
  color: #ffffff!important;
  border: none!important;
  height: auto!important;
}