/* Gnosis Leads — form.css */

.gl-form-wrap {
  max-width: 600px;
  margin: 2rem auto;
  font-family: inherit;
}

.gl-form {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ---- Campos --------------------------------------------------------- */

.gl-field {
  margin-bottom: 1.25rem;
}

.gl-field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: #1e293b;
}

.gl-required {
  color: #dc2626;
  margin-left: 2px;
}

.gl-field input[type="text"],
.gl-field input[type="email"],
.gl-field select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.gl-field input:focus,
.gl-field select:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
  background: #fff;
}

/* intl-tel-input ocupa todo el ancho */
.gl-phone-wrap .iti {
  width: 100%;
}

.gl-phone-wrap .iti input[type="tel"] {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 3.5rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.gl-phone-wrap .iti input:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
  background: #fff;
}

.gl-field-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.3rem;
}

/* ---- Checkboxes de talleres ---------------------------------------- */

.gl-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.gl-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
  color: #334155;
}

.gl-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1e3a5f;
  cursor: pointer;
}

/* ---- Botón de envío ------------------------------------------------ */

.gl-submit-wrap {
  margin-top: 1.5rem;
}

.gl-submit-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}

.gl-submit-btn:hover:not(:disabled) {
  background: #c0392b;
  transform: translateY(-1px);
}

.gl-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ---- Mensajes ------------------------------------------------------ */

.gl-form-message {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.gl-form-message[hidden] {
  display: none;
}

.gl-form-message--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.gl-form-message--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ---- reCAPTCHA badge ----------------------------------------------- */

/* Ocultamos el badge flotante de Google (permitido si hay aviso en el form) */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gl-recaptcha-notice {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.gl-recaptcha-notice a {
  color: #94a3b8;
  text-decoration: underline;
}

/* ---- Responsive ---------------------------------------------------- */

@media (max-width: 480px) {
  .gl-form {
    padding: 1.25rem;
    border-radius: 8px;
  }
}
