.ecf-form-wrapper {
  padding: 1.25rem;
  border: 1px solid #00000020;
  border-radius: 0.4rem;
  height: fit-content;
}

.ecf-form__title {
  margin-bottom: 0.5rem;
}

.ecf-form__description {
  margin-bottom: 1rem;
  color: #555;
}

.ecf-form__messages {
  display: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
}
.ecf-form-wrapper p {
}

.ecf-form__messages--success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.ecf-form__messages--error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.ecf-form__fields {
  display: flex;
  flex-wrap: wrap;
}

.ecf-form--cols-1 .ecf-field {
  flex: 0 0 100%;
  max-width: 100%;
}

.ecf-form--cols-2 .ecf-field {
  flex: 0 0 calc(50% - 0.5rem);
  max-width: calc(50% - 0.5rem);
}

@media (max-width: 600px) {
  .ecf-form--cols-2 .ecf-field {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.ecf-field {
  margin-bottom: 0.5rem;
}

.ecf-field--hidden {
  display: none;
}

.ecf-field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.ecf-field__required {
  color: #e74c3c;
  margin-left: 2px;
}

.ecf-field__input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.15s ease;
  background-color: #fff;
}

.ecf-field__input:focus {
  border-color: #007bff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.ecf-field__input--textarea {
  min-height: 120px;
  resize: vertical;
}

.ecf-field__input--select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 8px 10px;
  padding-right: 2rem;
}

.ecf-field__radio-group,
.ecf-field__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ecf-field__radio-label,
.ecf-field__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}

.ecf-field__radio,
.ecf-field__checkbox {
  margin-top: 3px;
  flex-shrink: 0;
}

.ecf-field__file-wrap {
  width: 100%;
}

.ecf-field__file-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  flex-wrap: wrap;
}

.ecf-field__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ecf-field__file-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #0b6eb7;
  color: #fff;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}

.ecf-field__file-btn:hover {
  background: #095a9c;
  color: #fff;
}

.ecf-field__file-name {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}

.ecf-field--error .ecf-field__input {
  border-color: #dc3545;
}

.ecf-field__error {
  display: none;
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.ecf-form__consent-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.ecf-form__consent-text a {
  color: #007bff;
  text-decoration: underline;
}

.ecf-form__consent-text p {
  margin: 0;
}

.ecf-form__submit {
  margin-top: 0.5rem;
}

.ecf-form__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.ecf-form__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.ecf-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.required-note span {
  font-size: 0.85rem;
  color: #dc3545;
}
