.kommo-form {
  width: 100%;
  font-family: inherit;
}

.kommo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.kommo-form label {
  color: var(--kommo-label-color, #000);
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  line-height: 20px;
}

.kommo-required {
  color: #d63638;
  margin-left: 4px;
}

.kommo-form input,
.kommo-form select,
.kommo-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--kommo-input-border) !important;
  border-radius: var(--kommo-radius) !important;
  box-sizing: border-box;
  outline: none;
  background-color: #fff !important;
}

.kommo-form textarea {
  min-height: 110px;
  resize: vertical;
}

.btn-envio {
  background: var(--kommo-btn-bg, #000) !important;
  color: var(--kommo-btn-text, #fff) !important;
  border: none;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  border-radius: var(--kommo-radius, 6px);
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-envio:hover {
  background: var(--kommo-btn-bg-hover, #111) !important;
  color: var(--kommo-btn-text-hover, #fff) !important;
  border: none !important;
}

.btn-envio:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.kommo-msg {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.kommo-msg.ok {
  background: #e7f7ed;
  border: 1px solid #2aa84a;
  color: #0f6a2a;
}

.kommo-msg.err {
  background: #fdecec;
  border: 1px solid #d63638;
  color: #8a1213;
}

/* Mensaje (alias actual) */
.kommo-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* Mensaje con estilo de "caja" (más legible en errores/ok) */
.kommo-message.ok {
  background: #e7f7ed;
  border: 1px solid #2aa84a;
  color: #0f6a2a;
}

.kommo-message.err {
  background: #fdecec;
  border: 1px solid #d63638;
  color: #8a1213;
}

/* Aceptación WA: checkbox grande + texto a la derecha ocupando todo el ancho */
.kommo-acceptance-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
}

.kommo-acceptance-row input[type="checkbox"] {
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px;
  margin: 2px 0 0 0;
  accent-color: #d63638; /* rojo al tildar */
}

.kommo-acceptance-row .acceptance-text {
  width: calc(100% - 30px); /* 25px checkbox + 5px gap */
  display: block;
  line-height: 1.35;
  font-weight: 600;
  color: var(--kommo-label-color, #000);
}

.kommo-acceptance-row label {
  margin-top: 5px !important;
}


/* Centrar botón Enviar y dar espacio superior */
.kommo-form .btn-envio {
  display: block;
  margin: 20px auto 0 auto; /* 20px arriba, centrado */
}

/* Pantalla de éxito */
.kommo-success {
  text-align: center;
  padding: 24px 0;
}

.kommo-success-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #d63638; /* rojo */
  margin-bottom: 12px;
}

.kommo-success-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--kommo-label-color, #000);
  line-height: 1.3;
}