/* Credy contact / demo form
   Clean replacement for the former Contact-Form-7 styling.
   Re-uses the theme's CSS custom properties (--secondary-100, --primary-200)
   that are defined in :root of assets/css/styles.min.css, so the look is identical. */

.credy-form {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  text-align: left;
}

.credy-form label {
  display: block;
  font-size: 1rem;
  line-height: 1.5rem;
  color: rgb(101 103 107);
}

.credy-input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  border-radius: 0.25rem;
  border: 1px solid rgb(210 211 214);
  background-color: #fff;
  padding: 0.75rem;
}

.credy-input::placeholder {
  opacity: 1;
  color: #9ca3af;
}

textarea.credy-input {
  height: 82px;
  resize: none;
}

.credy-submit {
  display: block;
  margin: 0 auto;
  width: auto;
  min-width: 130px;
  border: 0;
  cursor: pointer;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  font-size: 1.125rem;
  line-height: 24px;
  color: #fff;
  background: linear-gradient(to right, rgb(var(--secondary-100)), rgb(var(--primary-200)) 64%);
}

.credy-submit:hover {
  background: linear-gradient(to right, rgb(var(--primary-200)) 20%, rgb(var(--secondary-100)) 100%);
}

.credy-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.credy-form-result {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1rem;
}

.credy-form-result.success { color: #15803d; }
.credy-form-result.error   { color: #b91c1c; }
