/**
 * Contact form modal styles.
 *
 * Modal wrapper, overlay, and close button styles are provided by the theme
 * (_modal.scss). These overrides handle form-specific adjustments.
 */

/* Textarea border styling - since webform doesn't add form-atl__textarea-wrapper */
.modal-wrapper-atl .form-atl__textarea {
  border: 1px solid var(--text-text-placeholder-on-color);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
}

.modal-wrapper-atl .form-atl__textarea:active,
.modal-wrapper-atl .form-atl__textarea:focus {
  border-color: var(--local-white);
}

.modal-wrapper-atl .form-atl__textarea:focus-visible {
  outline: 0;
}

/* Error state for textarea */
.modal-wrapper-atl .form-atl__group--error .form-atl__textarea {
  border-color: var(--local-form-error) !important;
}

/* Light theme textarea */
.form-atl--light .form-atl__textarea {
  color: var(--text-text);
}

.form-atl--light .form-atl__textarea:active,
.form-atl--light .form-atl__textarea:focus {
  border-color: var(--button-cta);
}

.form-atl--light .form-atl__group--error .form-atl__textarea {
  border-color: var(--local-form-error-light) !important;
}
