/* ===============================
   Estilos base de formularios CRM
   =============================== */

.ado-crm-form {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: #333;
  background: #fff;
  border-radius: 8px;
}

.ado-crm-form__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: #153965; /* Azul corporativo */
}

.ado-crm-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ado-crm-form__label {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

.ado-crm-form__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ado-crm-form__input:focus {
  border-color: #26a9e0;
  box-shadow: 0 0 0 2px rgba(38,169,224,0.2);
  outline: none;
}

.ado-crm-form__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ado-crm-form__check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.ado-crm-form__check input {
  accent-color: #26a9e0;
}

.ado-crm-form__link {
  font-size: 13px;
  color: #26a9e0;
  text-decoration: underline;
  transition: color 0.2s;
}
.ado-crm-form__link:hover {
  color: #153965;
}

/* Botones */
.ado-crm-form__submit {
  display: inline-block;
  padding: 12px 20px;
  background: #26a9e0;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.ado-crm-form__submit:hover {
  background: #1f93c4;
}

.ado-crm-form__submit:active {
  transform: scale(0.98);
}

.ado-crm-form__submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Avisos */
.ado-crm-form__notice {
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 4px;
  display: none;
}

.ado-crm-form__notice.is-error {
  display: block;
  background: #ffe8e8;
  color: #b00020;
}

.ado-crm-form__notice.is-success {
  display: block;
  background: #e6f7ed;
  color: #006400;
}

/* Captcha */
.ado-crm-form__captcha {
  margin-top: 6px;
}

/* Mensaje si no hay JS */
.ado-crm-form__noscript {
  margin-top: 10px;
  font-size: 13px;
  color: #b00020;
  text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  .ado-crm-form {
    padding: 16px;
    gap: 12px;
  }
  .ado-crm-form__title {
    font-size: 18px;
  }
  .ado-crm-form__input {
    font-size: 14px;
  }
  .ado-crm-form__submit {
    width: 100%;
  }
}
